Commit 38a642b6 authored by mercury233's avatar mercury233

show btnReplaySwap only when paused

parent c4e368c1
...@@ -54,6 +54,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -54,6 +54,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
break; break;
soundManager.PlaySoundEffect(SOUND_BUTTON); soundManager.PlaySoundEffect(SOUND_BUTTON);
mainGame->btnReplayStart->setVisible(false); mainGame->btnReplayStart->setVisible(false);
mainGame->btnReplaySwap->setVisible(false);
mainGame->btnReplayPause->setVisible(true); mainGame->btnReplayPause->setVisible(true);
mainGame->btnReplayStep->setVisible(false); mainGame->btnReplayStep->setVisible(false);
mainGame->btnReplayUndo->setVisible(false); mainGame->btnReplayUndo->setVisible(false);
...@@ -65,6 +66,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -65,6 +66,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
break; break;
soundManager.PlaySoundEffect(SOUND_BUTTON); soundManager.PlaySoundEffect(SOUND_BUTTON);
mainGame->btnReplayStart->setVisible(true); mainGame->btnReplayStart->setVisible(true);
mainGame->btnReplaySwap->setVisible(true);
mainGame->btnReplayPause->setVisible(false); mainGame->btnReplayPause->setVisible(false);
mainGame->btnReplayStep->setVisible(true); mainGame->btnReplayStep->setVisible(true);
mainGame->btnReplayUndo->setVisible(true); mainGame->btnReplayUndo->setVisible(true);
......
...@@ -228,6 +228,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) { ...@@ -228,6 +228,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
mainGame->wReplay->setVisible(true); mainGame->wReplay->setVisible(true);
mainGame->wReplayControl->setVisible(true); mainGame->wReplayControl->setVisible(true);
mainGame->btnReplayStart->setVisible(false); mainGame->btnReplayStart->setVisible(false);
mainGame->btnReplaySwap->setVisible(false);
mainGame->btnReplayPause->setVisible(true); mainGame->btnReplayPause->setVisible(true);
mainGame->btnReplayStep->setVisible(false); mainGame->btnReplayStep->setVisible(false);
mainGame->btnReplayUndo->setVisible(false); mainGame->btnReplayUndo->setVisible(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment