MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / InputMapSize

Method InputMapSize

src/openrct2-ui/windows/MapGen.cpp:289–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287 }
288
289 void InputMapSize(WidgetIndex callingWidget, int32_t currentValue)
290 {
291 Formatter ft;
292 ft.Add<int16_t>(kMinimumMapSizePractical);
293 ft.Add<int16_t>(kMaximumMapSizePractical);
294
295 // Practical map size is 2 lower than the technical map size
296 currentValue -= 2;
297 WindowTextInputOpen(
298 this, callingWidget, STR_MAP_SIZE_2, STR_ENTER_MAP_SIZE, ft, STR_FORMAT_INTEGER, currentValue, 4);
299 }
300
301 void SharedMouseUp(WidgetIndex widgetIndex)
302 {

Callers

nothing calls this directly

Calls 1

WindowTextInputOpenFunction · 0.85

Tested by

no test coverage detected