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

Method PushUiChoices

src/scene_debug.cpp:259–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void Scene_Debug::PushUiChoices(std::vector<std::string> choices, std::vector<bool> choices_enabled) {
260 Push(eUiChoices);
261
262 choices_window->ReplaceCommands(choices);
263 choices_window->SetY(Player::menu_offset_y + (choices.size() + 1) * 8 + 72);
264 choices_window->SetHeight((choices.size() + 1) * 16);
265 choices_window->SetVisible(true);
266 choices_window->SetActive(true);
267 choices_window->Refresh();
268
269 for (int i = 0; i < static_cast<int>(choices_enabled.size()); i++) {
270 choices_window->SetItemEnabled(i, choices_enabled[i]);
271 }
272
273 RefreshDetailWindow();
274 UpdateRangeListWindow();
275}
276
277void Scene_Debug::PushUiStringView() {
278 const auto str_id = GetFrame().value;

Callers

nothing calls this directly

Calls 8

SetItemEnabledMethod · 0.80
ReplaceCommandsMethod · 0.45
SetYMethod · 0.45
sizeMethod · 0.45
SetHeightMethod · 0.45
SetVisibleMethod · 0.45
SetActiveMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected