Exemple #1
0
        private bool SelectInfoFrameTab(GUIButton button, object userData)
        {
            selectedTab = (InfoFrameTab)userData;

            CreateInfoFrame();

            switch (selectedTab)
            {
            case InfoFrameTab.Crew:
                CrewManager.CreateCrewListFrame(CrewManager.GetCharacters(), infoFrameContent);
                break;

            case InfoFrameTab.Mission:
                CreateMissionInfo(infoFrameContent);
                break;

            case InfoFrameTab.MyCharacter:
                if (GameMain.NetworkMember == null)
                {
                    return(false);
                }
                GameMain.NetLobbyScreen.CreatePlayerFrame(infoFrameContent);
                break;

            case InfoFrameTab.ManagePlayers:
                //TODO: fix
                //GameMain.Server.ManagePlayersFrame(infoFrameContent);
                break;
            }

            return(true);
        }
Exemple #2
0
        private bool SelectInfoFrameTab(GUIButton button, object userData)
        {
            selectedTab = (InfoFrameTab)userData;

            CreateInfoFrame();

            switch (selectedTab)
            {
            case InfoFrameTab.Crew:
                CrewManager.CreateCrewListFrame(CrewManager.GetCharacters(), infoFrameContent);
                break;

            case InfoFrameTab.Mission:
                CreateMissionInfo(infoFrameContent);
                break;

            case InfoFrameTab.ManagePlayers:
                GameMain.Server.ManagePlayersFrame(infoFrameContent);
                break;
            }

            return(true);
        }