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

Function stationNamesScaleMouseDown

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

0x004BFF72

Source from the content-addressed store, hash-verified

793
794 // 0x004BFF72
795 static void stationNamesScaleMouseDown(const Window& self, [[maybe_unused]] WidgetIndex_t wi)
796 {
797 auto& dropdown = self.widgets[Widx::station_names_min_scale];
798 Dropdown::show(self.x + dropdown.left, self.y + dropdown.top, dropdown.width() - 4, dropdown.height(), self.getColour(WindowColour::secondary), 4, 0x80);
799
800 Dropdown::add(0, StringIds::dropdown_stringid, StringIds::full_scale);
801 Dropdown::add(1, StringIds::dropdown_stringid, StringIds::half_scale);
802 Dropdown::add(2, StringIds::dropdown_stringid, StringIds::quarter_scale);
803 Dropdown::add(3, StringIds::dropdown_stringid, StringIds::eighth_scale);
804 Dropdown::setItemSelected(Config::get().stationNamesMinScale);
805 }
806
807 // 0x004C0000
808 static void stationNamesScaleDropdown(int16_t ax)

Callers 1

onMouseDownFunction · 0.85

Calls 7

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

Tested by

no test coverage detected