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

Method StartNumberInputProcessing

src/window_message.cpp:220–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void Window_Message::StartNumberInputProcessing() {
221 number_input_window->SetMaxDigits(pending_message.GetNumberInputDigits());
222 if (IsFaceEnabled() && !Main_Data::game_system->IsMessageFaceRightPosition()) {
223 number_input_window->SetX(Player::message_box_offset_x + LeftMargin + FaceSize + RightFaceMargin);
224 } else {
225 number_input_window->SetX(x);
226 }
227 number_input_window->SetY(y + contents_y - 2);
228 number_input_window->SetActive(true);
229 if (IsVisible() && !IsOpeningOrClosing()) {
230 number_input_window->SetVisible(true);
231 }
232 number_input_window->Update();
233}
234
235void Window_Message::ShowGoldWindow() {
236 if (Game_Battle::IsBattleRunning()) {

Callers

nothing calls this directly

Calls 8

SetMaxDigitsMethod · 0.80
GetNumberInputDigitsMethod · 0.80
SetXMethod · 0.45
SetYMethod · 0.45
SetActiveMethod · 0.45
SetVisibleMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected