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

Method InputNumber

src/window_message.cpp:814–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814void Window_Message::InputNumber() {
815 number_input_window->SetVisible(true);
816 if (Input::IsTriggered(Input::DECISION)) {
817 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Decision));
818 Main_Data::game_variables->Set(pending_message.GetNumberInputVariable(), number_input_window->GetNumber());
819 Game_Map::SetNeedRefresh(true);
820 number_input_window->SetNumber(0);
821 number_input_window->SetActive(false);
822 }
823}
824
825void Window_Message::SetWaitForNonPrintable(int frames) {
826 if (!instant_speed) {

Callers

nothing calls this directly

Calls 7

SePlayMethod · 0.80
SetNumberMethod · 0.80
SetVisibleMethod · 0.45
SetMethod · 0.45
GetNumberMethod · 0.45
SetActiveMethod · 0.45

Tested by

no test coverage detected