public void Building_InGame_off() { menu_Build_InGame.Close(); //Turn off in-game build mode on close Buildings.instance.StopBuildingPurchase(); }
void Start() { //===== INIT all menus to fix flags // - add any new menus to InitMenus() function InitMenus(); //===== Default states of menus DevMenu_on(); Config_off(); Painting_off(); Building_off(); Resources_off(); Level_off(); LevelData_off(); Pause_off(); //Calling direct close to prevent config XML save menu_Sound.Close(); //===== IN GAME MENUS - Default states //Do not turn off the in-game building menu, so the buttons can register correctly when it is on or turned on //Building_InGame_off(); //===== Add Key input handlers MessageKit <keyTracker> .addObserver((int)InputMsg.key_esc, DevMenu_keyPress); MessageKit <keyTracker> .addObserver((int)InputMsg.key_paint, PaintMenu_keyPress); MessageKit <keyTracker> .addObserver((int)InputMsg.key_build, Building_keyPress); }
public void DevMenu_off() { menu_Dev.Close(); }
public void LevelData_off() { menu_LevelData.Close(); }
public void Level_off() { menu_Levels.Close(); }
public void Building_off() { menu_Building.Close(); }
public void Resources_off() { menu_Resources.Close(); }
public void Painting_off() { menu_Painting.Close(); }
public void EdgeInput_off() { menu_EdgeInput.Close(); }
public void Pause_off() { menu_Pause.Close(); }
public void Config_off() { menu_Config.Close(); }
public void Popup_off() { menuPopup.Close(); }