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

Function rotateMenuMouseDown

src/OpenLoco/src/Ui/Windows/ToolbarTopCommon.cpp:135–143  ·  view source on GitHub ↗

0x0043A5C5

Source from the content-addressed store, hash-verified

133
134 // 0x0043A5C5
135 void rotateMenuMouseDown(Window* window, WidgetIndex_t widgetIndex)
136 {
137 auto interface = ObjectManager::get<InterfaceSkinObject>();
138
139 Dropdown::add(0, StringIds::menu_sprite_stringid, { interface->img + InterfaceSkin::ImageIds::toolbar_menu_rotate_clockwise, StringIds::menu_rotate_clockwise });
140 Dropdown::add(1, StringIds::menu_sprite_stringid, { interface->img + InterfaceSkin::ImageIds::toolbar_menu_rotate_anti_clockwise, StringIds::menu_rotate_anti_clockwise });
141 Dropdown::showBelow(window, widgetIndex, 2, 25, (1 << 6));
142 Dropdown::setHighlightedItem(0);
143 }
144
145 // 0x0043ADF6
146 void viewMenuMouseDown(Window* window, WidgetIndex_t widgetIndex)

Callers 1

onMouseDownFunction · 0.85

Calls 3

showBelowFunction · 0.85
setHighlightedItemFunction · 0.85
addFunction · 0.50

Tested by

no test coverage detected