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

Method UpdateHelp

src/window_settings.cpp:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void Window_Settings::UpdateHelp() {
183 if (index >= 0 && index < static_cast<int>(GetFrame().options.size())) {
184 help_window->SetText(GetFrame().options[index].help);
185 if (help_window2) {
186 help_window2->SetText(GetFrame().options[index].help2);
187 help_window2->SetVisible(!GetFrame().options[index].help2.empty());
188 }
189 } else {
190 help_window->SetText("");
191 if (help_window2) {
192 help_window2->SetVisible(false);
193 }
194 }
195}
196
197template <typename Param, typename Action>
198void Window_Settings::AddOption(const Param& param,

Callers

nothing calls this directly

Calls 4

SetTextMethod · 0.80
sizeMethod · 0.45
SetVisibleMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected