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

Method IsItemEnabled

src/window_command.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool Window_Command::IsItemEnabled(int index) {
68 if (index < 0 || index >= static_cast<int>(commands_enabled.size())) {
69 return false;
70 }
71
72 return commands_enabled[index];
73}
74
75void Window_Command::SetItemText(unsigned index, std::string_view text) {
76 if (index < commands.size()) {

Callers 4

vUpdateMethod · 0.80
UpdateMainMethod · 0.80
UpdateButtonOptionMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected