8 class SCR_MenuLoadingComponent
16 protected static DialogUI m_DialogToDisplay =
null;
19 static ref ScriptInvoker m_OnMenuOpening =
new ScriptInvoker;
23 static bool LoadLastMenu()
31 if (lastMenu.IsEmpty())
34 GetGame().GetMenuManager().OpenMenu(lastMenu.ToInt());
38 if (!lastAdditionalMenu.IsEmpty())
39 GetGame().GetMenuManager().OpenMenu(lastAdditionalMenu.ToInt());
43 if (!lastAdditionalDialog.IsEmpty())
44 OpenAdditionalDialog(lastAdditionalDialog.ToInt());
46 m_OnMenuOpening.Invoke(lastMenu.ToInt());
55 if (additionalMenu != -1)
58 if (additionalDialog != -1)
63 static void ClearLastMenu()
72 protected static bool JoinInvite()
74 ClientLobbyApi lobby =
GetGame().GetBackendApi().GetClientLobby();
77 Room invited = lobby.GetInviteRoom();
82 Print(
"[SCR_MenuLoadingComponent] Client is invited to room: " + invited +
", name: " + invited.Name());
89 serverBrowser.JoinProcess_Init(invited);