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

Method CreateBattleCommandWindow

src/scene_battle_rpg2k.cpp:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void Scene_Battle_Rpg2k::CreateBattleCommandWindow() {
132 std::vector<std::string> commands = {
133 ToString(lcf::Data::terms.command_attack),
134 ToString(lcf::Data::terms.command_skill),
135 ToString(lcf::Data::terms.command_defend),
136 ToString(lcf::Data::terms.command_item)
137 };
138
139 command_window.reset(new Window_Command(std::move(commands), option_command_mov));
140 command_window->SetHeight(80);
141 command_window->SetY(Player::screen_height - Player::menu_offset_y - 80);
142}
143
144void Scene_Battle_Rpg2k::RefreshCommandWindow() {
145 if (Player::IsRPG2k3() && Feature::HasRpg2kBattleSystem() && !lcf::Data::system.easyrpg_use_rpg2k_battle_commands) {

Callers

nothing calls this directly

Calls 3

resetMethod · 0.45
SetHeightMethod · 0.45
SetYMethod · 0.45

Tested by

no test coverage detected