MCPcopy Create free account
hub / github.com/EasyRPG/Player / UpdateCommandSelection

Method UpdateCommandSelection

src/scene_shop.cpp:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void Scene_Shop::UpdateCommandSelection() {
230 if (Input::IsTriggered(Input::CANCEL)) {
231 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Cancel));
232 Scene::Pop();
233 } else if (Input::IsTriggered(Input::DECISION)) {
234 switch (shop_window->GetChoice()) {
235 case Buy:
236 case Sell:
237 SetMode(shop_window->GetChoice());
238 break;
239 case Leave:
240 Scene::Pop();
241 break;
242 }
243 }
244}
245
246void Scene_Shop::UpdateBuySelection() {
247 status_window->SetItemId(buy_window->GetItemId());

Callers

nothing calls this directly

Calls 2

SePlayMethod · 0.80
GetChoiceMethod · 0.80

Tested by

no test coverage detected