| 293 | } |
| 294 | |
| 295 | static void MenuOptionsScreen_EnumClick(void* screen, void* widget) { |
| 296 | struct MenuOptionsScreen* s = (struct MenuOptionsScreen*)screen; |
| 297 | struct ButtonWidget* btn = (struct ButtonWidget*)widget; |
| 298 | |
| 299 | struct MenuOptionMetaEnum* meta = (struct MenuOptionMetaEnum*)btn->meta.ptr; |
| 300 | int raw = meta->GetValue(); |
| 301 | |
| 302 | raw = (raw + 1) % meta->count; |
| 303 | meta->SetValue(raw); |
| 304 | MenuOptionsScreen_Update(s, btn); |
| 305 | } |
| 306 | |
| 307 | void MenuOptionsScreen_AddEnum(struct MenuOptionsScreen* s, const char* name, |
| 308 | const char* const* names, int namesCount, |
nothing calls this directly
no test coverage detected