MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / onDropdown

Function onDropdown

src/OpenLoco/src/Ui/Windows/ToolbarTopAlt.cpp:281–301  ·  view source on GitHub ↗

0x0043D5A6

Source from the content-addressed store, hash-verified

279
280 // 0x0043D5A6
281 static void onDropdown(Window& window, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, int16_t itemIndex)
282 {
283 switch (widgetIndex)
284 {
285 case Common::Widx::loadsave_menu:
286 loadsaveMenuDropdown(&window, widgetIndex, itemIndex);
287 break;
288
289 case Common::Widx::audio_menu:
290 audioMenuDropdown(&window, widgetIndex, itemIndex);
291 break;
292
293 case Widx::map_generation_menu:
294 mapGenerationMenuDropdown(&window, widgetIndex, itemIndex);
295 break;
296
297 default:
298 Common::onDropdown(&window, widgetIndex, itemIndex);
299 break;
300 }
301 }
302
303 // 0x0043D2F3
304 static void prepareDraw(Window& window)

Callers

nothing calls this directly

Calls 3

loadsaveMenuDropdownFunction · 0.70
audioMenuDropdownFunction · 0.70

Tested by

no test coverage detected