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()); } }
public override void Update(Input input) { base.Update(input); if (GetButtonPress("Back")) { ScreenController.RemoveContainer(this, true); ScreenController.AddContainer(new MenuBarInGame()); } }
private void ToggleMiniViewShow() { if (townPanel.containerState == ContainerState.Normal) { ScreenController.RemoveContainer(townPanel, true); } else { townPanel.SetFadeIn(); ScreenController.AddContainer(townPanel); } }
private void ToggleHelpInformation() { if (helpInformation.containerState == ContainerState.Normal) { ScreenController.RemoveContainer(helpInformation, true); } else { helpInformation.SetFadeIn(); ScreenController.AddContainer(helpInformation); } }
//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); } }