public MainMenuUIHandler() { mmm = LKernel.GetG<MainMenuManager>(); GameType = GameTypeEnum.None; LevelManager.OnLevelLoad += new LevelEvent(OnLevelLoad); mmm.OnGameType_SelectSinglePlayer += new MainMenuButtonPressEvent(OnGameType_SelectSinglePlayer); mmm.OnGameType_SelectNetworkedHost += new MainMenuButtonPressEvent(OnGameType_SelectNetworkedHost); mmm.OnGameType_SelectNetworkedClient += new MainMenuButtonPressEvent(OnGameType_SelectNetworkedClient); mmm.OnGameType_SelectOptions += new MainMenuButtonPressEvent(OnGameType_SelectOptions); mmm.OnHostInfo_SelectBack += new MainMenuButtonPressEvent(OnHostInfo_SelectBack); mmm.OnHostInfo_SelectNext += new MainMenuButtonPressEvent(OnHostInfo_SelectNext); mmm.OnClientInfo_SelectBack += new MainMenuButtonPressEvent(OnClientInfo_SelectBack); mmm.OnClientInfo_SelectNext += new MainMenuButtonPressEvent(OnClientInfo_SelectNext); mmm.OnLevelSelect_SelectBack += new MainMenuButtonPressEvent(OnLevelSelect_SelectBack); mmm.OnLevelSelect += new MainMenuLevelSelectEvent(OnLevelSelect); mmm.OnLobby_SelectBack += new MainMenuButtonPressEvent(OnLobby_SelectBack); mmm.OnLobby_SelectNext += new MainMenuButtonPressEvent(OnLobby_SelectNext); mmm.OnCharacterSelect_SelectBack += new MainMenuButtonPressEvent(OnCharacterSelect_SelectBack); // no OnCharacterSelect because we don't need to do anything //mmm.OnCharacterSelect += new MainMenuCharacterSelectEvent(OnCharacterSelect); mmm.OnOptions_SelectOK += new MainMenuButtonPressEvent(OnOptions_SelectOK); }
public MainMenuMultiplayerHandler() { mmm = LKernel.GetG<MainMenuManager>(); netMgr = LKernel.GetG<NetworkManager>(); mmm.OnLevelSelect += new MainMenuLevelSelectEvent(OnLevelSelect); mmm.OnCharacterSelect += new MainMenuCharacterSelectEvent(OnCharacterSelect); mmm.OnHostInfo_SelectNext += new MainMenuButtonPressEvent(OnHostInfo_SelectNext); mmm.OnClientInfo_SelectNext += new MainMenuButtonPressEvent(OnClientInfo_SelectNext); mmm.OnLobby_SelectNext += new MainMenuButtonPressEvent(OnLobbyForward); mmm.OnLobby_SelectBack += new MainMenuButtonPressEvent(OnLobbyBack); mmm.OnLevelSelect_SelectBack += new MainMenuButtonPressEvent(OnLevelSelect_SelectBack); var LobbyGUI= LKernel.Get<UIMain>().GetGUI("menu lobby gui"); LobbyLabel = LobbyGUI.GetControl<Label>("lobby label"); }