Exemple #1
0
    public void Building_InGame_off()
    {
        menu_Build_InGame.Close();

        //Turn off in-game build mode on close
        Buildings.instance.StopBuildingPurchase();
    }
Exemple #2
0
    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);
    }
Exemple #3
0
 public void DevMenu_off()
 {
     menu_Dev.Close();
 }
Exemple #4
0
 public void LevelData_off()
 {
     menu_LevelData.Close();
 }
Exemple #5
0
 public void Level_off()
 {
     menu_Levels.Close();
 }
Exemple #6
0
 public void Building_off()
 {
     menu_Building.Close();
 }
Exemple #7
0
 public void Resources_off()
 {
     menu_Resources.Close();
 }
Exemple #8
0
 public void Painting_off()
 {
     menu_Painting.Close();
 }
Exemple #9
0
 public void EdgeInput_off()
 {
     menu_EdgeInput.Close();
 }
Exemple #10
0
 public void Pause_off()
 {
     menu_Pause.Close();
 }
Exemple #11
0
 public void Config_off()
 {
     menu_Config.Close();
 }
Exemple #12
0
 public void Popup_off()
 {
     menuPopup.Close();
 }