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

Function onDropdown

src/OpenLoco/src/Ui/Windows/CompanyWindow.cpp:332–338  ·  view source on GitHub ↗

0x0043228E

Source from the content-addressed store, hash-verified

330
331 // 0x0043228E
332 static void onDropdown(Window& self, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, int16_t itemIndex)
333 {
334 if (widgetIndex == Common::widx::company_select)
335 {
336 Common::switchCompany(&self, itemIndex);
337 }
338 }
339
340 // 0x004325DF
341 static void renameCompanyOwnerName(Window* self, const char* input)

Callers

nothing calls this directly

Calls 7

setErrorTitleFunction · 0.85
getItemArgumentFunction · 0.85
CompanyIdEnum · 0.85
scrollToLatestDataFunction · 0.85
switchCompanyFunction · 0.70
doCommandFunction · 0.50
invalidateMethod · 0.45

Tested by

no test coverage detected