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

Function stationNamesScaleDropdown

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

0x004C0000

Source from the content-addressed store, hash-verified

806
807 // 0x004C0000
808 static void stationNamesScaleDropdown(int16_t ax)
809 {
810 if (ax == -1)
811 {
812 return;
813 }
814
815 if (ax == Config::get().stationNamesMinScale)
816 {
817 return;
818 }
819
820 auto& cfg = OpenLoco::Config::get();
821 cfg.stationNamesMinScale = ax;
822 OpenLoco::Config::write();
823 Gfx::invalidateScreen();
824 }
825
826 static void windowFrameStyleMouseDown(const Window& self, [[maybe_unused]] WidgetIndex_t wi)
827 {

Callers 1

onDropdownFunction · 0.85

Calls 3

writeFunction · 0.85
invalidateScreenFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected