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

Function windowFrameStyleMouseDown

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

Source from the content-addressed store, hash-verified

824 }
825
826 static void windowFrameStyleMouseDown(const Window& self, [[maybe_unused]] WidgetIndex_t wi)
827 {
828 auto& dropdown = self.widgets[Widx::window_frame_style];
829 Dropdown::show(self.x + dropdown.left, self.y + dropdown.top, dropdown.width() - 4, dropdown.height(), self.getColour(WindowColour::secondary), 3, 0x80);
830
831 Dropdown::add(0, StringIds::dropdown_stringid, StringIds::windowFrameStyleGradient);
832 Dropdown::add(1, StringIds::dropdown_stringid, StringIds::windowFrameStyleSolid);
833 Dropdown::add(2, StringIds::dropdown_stringid, StringIds::windowFrameStyleTranslucent);
834 Dropdown::setItemSelected(enumValue(Config::get().windowFrameStyle));
835 }
836
837 static void windowFrameStyleDropdown(int16_t selectedItem)
838 {

Callers 1

onMouseDownFunction · 0.85

Calls 8

showFunction · 0.85
setItemSelectedFunction · 0.85
enumValueFunction · 0.85
getColourMethod · 0.80
addFunction · 0.50
getFunction · 0.50
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected