Commit 27e43abb authored by mercury233's avatar mercury233

fix BUTTON_CMD_ACTIVATE ShowCancelOrFinishButton

parent 03bd9b95
...@@ -306,11 +306,13 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -306,11 +306,13 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
int step = mainGame->scrOption->isVisible() ? mainGame->scrOption->getPos() : 0; int step = mainGame->scrOption->isVisible() ? mainGame->scrOption->getPos() : 0;
selected_option = id - BUTTON_OPTION_0 + step; selected_option = id - BUTTON_OPTION_0 + step;
SetResponseSelectedOption(); SetResponseSelectedOption();
ShowCancelOrFinishButton(0);
break; break;
} }
case BUTTON_OPTION_OK: { case BUTTON_OPTION_OK: {
soundManager.PlaySoundEffect(SOUND_BUTTON); soundManager.PlaySoundEffect(SOUND_BUTTON);
SetResponseSelectedOption(); SetResponseSelectedOption();
ShowCancelOrFinishButton(0);
break; break;
} }
case BUTTON_ANNUMBER_1: case BUTTON_ANNUMBER_1:
...@@ -392,6 +394,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -392,6 +394,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
} else { } else {
command_card = clicked_card; command_card = clicked_card;
ShowSelectOption(); ShowSelectOption();
ShowCancelOrFinishButton(1);
} }
} else { } else {
selectable_cards.clear(); selectable_cards.clear();
......
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