Skip to main content

LoggedInWindow

A class in Root.Township, Alta.Meta.UI.ServerManagement.

Switches a main menu window to its logged-in panel once the player is logged in. Client only.

Constructors​

MemberWhat it is
LoggedInWindow()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private Panel loggedInPanelPanel to show after login.
private Window targetWindowThe window to watch.

Methods​

3 private and internal methods
MemberWhat it is
private void Awake()Subscribes to the target window's Started event.
private void HandleLogin()Unsubscribes from LoginManager.LoggedIn and switches to the logged-in panel.
private void WindowStarted(Window obj)When the window starts, switches panels now if already logged in, otherwise waits for LoginManager.LoggedIn.