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

Function audioMenuDropdown

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

0x0043D7C1

Source from the content-addressed store, hash-verified

204
205 // 0x0043D7C1
206 static void audioMenuDropdown([[maybe_unused]] Window* window, [[maybe_unused]] WidgetIndex_t widgetIndex, int16_t itemIndex)
207 {
208 if (itemIndex == -1)
209 {
210 itemIndex = Dropdown::getHighlightedItem();
211 }
212
213 switch (itemIndex)
214 {
215 case 0:
216 Audio::toggleSound();
217 break;
218 }
219 }
220
221 // 0x004402BC
222 static void mapGenerationMenuMouseDown(Window* window, WidgetIndex_t widgetIndex)

Callers 1

onDropdownFunction · 0.70

Calls 2

getHighlightedItemFunction · 0.85
toggleSoundFunction · 0.85

Tested by

no test coverage detected