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

            CreateInfoFrame();

            switch (selectedTab)
            {
            case InfoFrameTab.Crew:
                CrewManager.CreateCrewFrame(CrewManager.characters, infoFrame.children[0] as GUIFrame);
                break;

            case InfoFrameTab.Mission:
                CreateMissionInfo(infoFrame.children[0] as GUIFrame);
                break;

            case InfoFrameTab.ManagePlayers:
                GameMain.Server.ManagePlayersFrame(infoFrame.children[0] as GUIFrame);
                break;
            }

            return(true);
        }