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

Function ShowCreateScenario

src/genworld_gui.cpp:1319–1323  ·  view source on GitHub ↗

Show the window to create a scenario. */

Source from the content-addressed store, hash-verified

1317
1318/** Show the window to create a scenario. */
1319void ShowCreateScenario()
1320{
1321 CloseWindowByClass(WC_GENERATE_LANDSCAPE);
1322 new CreateScenarioWindow(_create_scenario_desc, GLWM_SCENARIO);
1323}
1324
1325static constexpr std::initializer_list<NWidgetPart> _nested_generate_progress_widgets = {
1326 NWidget(WWT_CAPTION, COLOUR_GREY), SetStringTip(STR_GENERATION_WORLD, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),

Callers 1

OnClickMethod · 0.85

Calls 1

CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected