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

Function onDropdown

src/OpenLoco/src/Ui/Windows/Options.cpp:479–493  ·  view source on GitHub ↗

0x004BFBE8

Source from the content-addressed store, hash-verified

477
478 // 0x004BFBE8
479 static void onDropdown(Window& self, WidgetIndex_t wi, [[maybe_unused]] const WidgetId id, int16_t item_index)
480 {
481 switch (wi)
482 {
483 case Widx::screen_mode_btn:
484 screenModeDropdown(self, item_index);
485 break;
486 case Widx::display_resolution_btn:
487 resolutionDropdown(self, item_index);
488 break;
489 case Widx::frame_limit_btn:
490 frameLimitDropdown(self, item_index);
491 break;
492 }
493 }
494
495 // 0x004C01F5
496 static void onUpdate(Window& self)

Callers

nothing calls this directly

Calls 14

screenModeDropdownFunction · 0.85
resolutionDropdownFunction · 0.85
frameLimitDropdownFunction · 0.85
vehicleZoomDropdownFunction · 0.85
windowFrameStyleDropdownFunction · 0.85
audioDeviceDropdownFunction · 0.85
languageDropdownFunction · 0.85
heightsLabelsDropdownFunction · 0.85
distanceSpeedDropdownFunction · 0.85
currencyDropdownFunction · 0.85

Tested by

no test coverage detected