示例#1
0
 public void CloseGui()
 {
     // Close gui
     ActiveGui.OnClose();
     // Restore parent gui
     ActiveGui = (GuiForm)ActiveGui.Parent;
     Mode = ActiveGui == null ? GameMode.InGame : GameMode.Gui;
 }
示例#2
0
 internal void OpenGui(GuiForm gui)
 {
     // Save parent
     gui.Parent = ActiveGui;
     // Open new gui
     ActiveGui = gui;
     gui.Show();
     Mode = GameMode.Gui;
 }