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

Method vUpdate

src/scene_debug.cpp:414–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void Scene_Debug::vUpdate() {
415 range_window->Update();
416 if (range_index != range_window->GetIndex()){
417 range_index = range_window->GetIndex();
418 UpdateDetailWindow();
419 RefreshDetailWindow();
420 }
421 var_window->Update();
422
423 if (stringview_window->GetActive())
424 stringview_window->Update();
425
426 if (numberinput_window->GetActive())
427 numberinput_window->Update();
428
429 if (choices_window->GetActive())
430 choices_window->Update();
431
432 if (interpreter_window->GetActive())
433 interpreter_window->Update();
434
435 if (Input::IsTriggered(Input::CANCEL)) {
436 UpdateFrameValueFromUi();
437 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Cancel));
438 Pop();
439
440 const auto sz = GetStackSize();
441 if ((mode == eInterpreter) && sz == 4) {
442 Pop(); //skip over choices window
443 }
444 } else if (Input::IsTriggered(Input::DECISION)) {
445 UpdateFrameValueFromUi();
446 if (mode == eMain) {
447 auto next_mode = static_cast<Mode>(range_window->GetIndex() + range_page * 10 + 1);
448 if (next_mode > eMain && next_mode <= GetNumMainMenuItems()) {
449 if (!range_window->IsItemEnabled(range_window->GetIndex())) {
450 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Buzzer));
451 } else {
452 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Decision));
453 mode = next_mode;
454 }
455 }
456 }
457
458 const auto sz = GetStackSize();
459 const auto& frame = GetFrame();
460
461 if (frame.uimode == eUiRangeList && !range_window->IsItemEnabled(range_window->GetIndex())) {
462 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Buzzer));
463 UpdateArrows();
464 return;
465 }
466
467 switch (mode) {
468 case eMain:
469 case eLastMainMenuOption:
470 break;
471 case eSave:

Callers

nothing calls this directly

Calls 15

GetActiveMethod · 0.80
SePlayMethod · 0.80
IsItemEnabledMethod · 0.80
GetGoldMethod · 0.80
GetMaxItemCountMethod · 0.80
GetLevelMethod · 0.80
GetMaxLevelMethod · 0.80
GetMoveSpeedMethod · 0.80
GetSelectedActionMethod · 0.80
SetShowDetailMethod · 0.80
GetShowDetailMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected