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

Method RefreshCommandWindow

src/scene_battle_rpg2k.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void Scene_Battle_Rpg2k::RefreshCommandWindow() {
145 if (Player::IsRPG2k3() && Feature::HasRpg2kBattleSystem() && !lcf::Data::system.easyrpg_use_rpg2k_battle_commands) {
146 int index = command_window->GetIndex();
147 auto commands = GetBattleCommandNames2k3(active_actor);
148 command_window->ReplaceCommands(std::move(commands));
149 command_window->SetIndex(index);
150 } else {
151 command_window->SetItemText(1, active_actor->GetSkillName());
152 }
153}
154
155void Scene_Battle_Rpg2k::SetState(Scene_Battle::State new_state) {
156 previous_state = state;

Callers

nothing calls this directly

Calls 5

GetSkillNameMethod · 0.80
GetIndexMethod · 0.45
ReplaceCommandsMethod · 0.45
SetIndexMethod · 0.45
SetItemTextMethod · 0.45

Tested by

no test coverage detected