MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnDropdownSelect

Method OnDropdownSelect

src/toolbar_gui.cpp:2402–2407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2400 }
2401
2402 void OnDropdownSelect(WidgetID widget, int index, int) override
2403 {
2404 CallBackFunction cbf = _scen_toolbar_dropdown_procs[widget](index);
2405 if (cbf != CBF_NONE) _last_started_action = cbf;
2406 SndClickBeep();
2407 }
2408
2409 EventState OnHotkey(int hotkey) override
2410 {

Callers

nothing calls this directly

Calls 1

SndClickBeepFunction · 0.85

Tested by

no test coverage detected