| 180 | } |
| 181 | |
| 182 | void 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 | |
| 197 | template <typename Param, typename Action> |
| 198 | void Window_Settings::AddOption(const Param& param, |
nothing calls this directly
no test coverage detected