public virtual void ClosePauseDialog() { if (Control.GameState == GameStateEnum.OnDialog) { Control.Game.State = GameStateEnum.Running; } PauseDialog.Close(); }
public virtual void RunDialog(object param = null) { //caso finalize, forçamos a exibição do dialog do resultado if (Control.GameState == GameStateEnum.Paused) { PauseDialog.Close(); } if (Control.GameState == GameStateEnum.OnDialog) { return; } else { Control.Game.State = GameStateEnum.OnDialog; } //Teste Control.GameSong.Stop(); InternalDialog.LoadContent(Result.CreateData()); InternalDialog.Execute(); }