| 227 | } |
| 228 | |
| 229 | void 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 | |
| 246 | void Scene_Shop::UpdateBuySelection() { |
| 247 | status_window->SetItemId(buy_window->GetItemId()); |