Commit 92952c95 authored by mercury233's avatar mercury233 Committed by DailyShana

enable confirming extra and removed when observing (#1835)

parent 3f510151
...@@ -1040,6 +1040,24 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -1040,6 +1040,24 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame->wCardSelect->setText(formatBuffer); mainGame->wCardSelect->setText(formatBuffer);
break; break;
} }
case LOCATION_REMOVED: {
if (remove[hovered_controler].size() == 0)
break;
for (int32 i = (int32)remove[hovered_controler].size() - 1; i >= 0; --i)
selectable_cards.push_back(remove[hovered_controler][i]);
myswprintf(formatBuffer, L"%ls(%d)", dataManager.GetSysString(1005), remove[hovered_controler].size());
mainGame->wCardSelect->setText(formatBuffer);
break;
}
case LOCATION_EXTRA: {
if (extra[hovered_controler].size() == 0)
break;
for (int32 i = (int32)extra[hovered_controler].size() - 1; i >= 0; --i)
selectable_cards.push_back(extra[hovered_controler][i]);
myswprintf(formatBuffer, L"%ls(%d)", dataManager.GetSysString(1006), extra[hovered_controler].size());
mainGame->wCardSelect->setText(formatBuffer);
break;
}
} }
if(selectable_cards.size()) if(selectable_cards.size())
ShowSelectCard(true); ShowSelectCard(true);
......
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