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

Method SetItemEnabled

src/window_command.cpp:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void Window_Command::SetItemEnabled(int index, bool enabled) {
63 DrawItem(index, enabled ? Font::ColorDefault : Font::ColorDisabled);
64 commands_enabled[index] = enabled;
65}
66
67bool Window_Command::IsItemEnabled(int index) {
68 if (index < 0 || index >= static_cast<int>(commands_enabled.size())) {

Callers 6

vUpdateMethod · 0.80
RefreshMethod · 0.80
PushUiChoicesMethod · 0.80
UpdateRangeListWindowMethod · 0.80
CreateMainWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected