MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ToolbarScenDatePanel

Function ToolbarScenDatePanel

src/toolbar_gui.cpp:1194–1198  ·  view source on GitHub ↗

* Called when clicking at the date panel of the scenario editor toolbar. */

Source from the content-addressed store, hash-verified

1192 * Called when clicking at the date panel of the scenario editor toolbar.
1193 */
1194static CallBackFunction ToolbarScenDatePanel(Window *w)
1195{
1196 ShowQueryString(GetString(STR_JUST_INT, _settings_game.game_creation.starting_year), STR_MAPGEN_START_DATE_QUERY_CAPT, 8, w, CS_NUMERAL, QueryStringFlag::EnableDefault);
1197 return CBF_NONE;
1198}
1199
1200static CallBackFunction ToolbarScenDateBackward(Window *w)
1201{

Callers

nothing calls this directly

Calls 2

ShowQueryStringFunction · 0.85
GetStringFunction · 0.70

Tested by

no test coverage detected