| 14 | { |
| 15 | |
| 16 | OptionsMenu::OptionsMenu() : Stage(), menuform(ui().getForm("options")) |
| 17 | { |
| 18 | auto options = config().getOptions(); |
| 19 | auto listbox = menuform->findControlTyped<ListBox>("LISTBOX_OPTIONS"); |
| 20 | for (auto §ion : options) |
| 21 | { |
| 22 | if (!section.first.empty()) |
| 23 | { |
| 24 | listbox->addItem(mksp<TextButton>(section.first, ui().getFont("smalfont"))); |
| 25 | for (auto &opt : section.second) |
| 26 | { |
| 27 | listbox->addItem(createOptionRow(opt)); |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | OptionsMenu::~OptionsMenu() = default; |
| 34 |
nothing calls this directly
no test coverage detected