コード例 #1
0
ファイル: MenuBarInGame.cs プロジェクト: theboot999/Bushfire
        public override void Update(Input input)
        {
            base.Update(input);

            if (GetButtonPress("MainMenu"))
            {
                if (GameController.inGameState == InGameState.INMENU)
                {
                    GameController.inGameState = InGameState.WAITINGONEXIT;
                }
            }
            if (GetButtonPress("Back"))
            {
                ScreenController.RemoveContainer(this, true);
                GameController.inGameState = InGameState.RUNNING;
            }

            if (GetButtonPress("Video"))
            {
                ScreenController.RemoveContainer(this, true);
                ScreenController.AddContainer(new VideoInGame());
            }

            if (GetButtonPress("Audio"))
            {
                ScreenController.RemoveContainer(this, true);
                ScreenController.AddContainer(new AudioInGame());
            }

            if (GetButtonPress("Controls"))
            {
                ScreenController.RemoveContainer(this, true);
                ScreenController.AddContainer(new ControlsInGame());
            }
        }
コード例 #2
0
ファイル: AudioInGame.cs プロジェクト: theboot999/Bushfire
        public override void Update(Input input)
        {
            base.Update(input);

            if (GetButtonPress("Back"))
            {
                ScreenController.RemoveContainer(this, true);
                ScreenController.AddContainer(new MenuBarInGame());
            }
        }
コード例 #3
0
 private void ToggleMiniViewShow()
 {
     if (townPanel.containerState == ContainerState.Normal)
     {
         ScreenController.RemoveContainer(townPanel, true);
     }
     else
     {
         townPanel.SetFadeIn();
         ScreenController.AddContainer(townPanel);
     }
 }
コード例 #4
0
 private void ToggleHelpInformation()
 {
     if (helpInformation.containerState == ContainerState.Normal)
     {
         ScreenController.RemoveContainer(helpInformation, true);
     }
     else
     {
         helpInformation.SetFadeIn();
         ScreenController.AddContainer(helpInformation);
     }
 }
コード例 #5
0
ファイル: MiniViewToggle.cs プロジェクト: theboot999/Bushfire
        //so pressing the x isnt triggering miniviewshow = false;

        private void ToggleMiniViewShow()
        {
            if (miniView.containerState == ContainerState.Normal)
            {
                ScreenController.RemoveContainer(miniView, true);
            }
            else
            {
                miniView.SetFadeIn();
                ScreenController.AddContainer(miniView);
            }
        }