OpenTTD Source 20250520-master-gecadf1b322
game_gui.cpp File Reference

Window for configuring the Game Script More...

#include "../stdafx.h"
#include "../error.h"
#include "../settings_gui.h"
#include "../querystring_gui.h"
#include "../window_func.h"
#include "../network/network.h"
#include "../network/network_content.h"
#include "../dropdown_type.h"
#include "../dropdown_func.h"
#include "../timer/timer.h"
#include "../timer/timer_window.h"
#include "../core/string_consumer.hpp"
#include "game.hpp"
#include "game_gui.hpp"
#include "game_config.hpp"
#include "game_info.hpp"
#include "../script/script_gui.h"
#include "../script_config.hpp"
#include "table/strings.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  GSConfigWindow
 Window to configure which GSs will start. More...
 

Functions

void ShowGSConfigWindow ()
 Open the GS config window.
 

Variables

static constexpr NWidgetPart _nested_gs_config_widgets []
 Widgets for the configure GS window.
 
static WindowDesc _gs_config_desc (WDP_CENTER, "settings_gs_config", 500, 350, WC_GAME_OPTIONS, WC_NONE, {}, _nested_gs_config_widgets)
 Window definition for the configure GS window.
 

Detailed Description

Window for configuring the Game Script

Definition in file game_gui.cpp.

Function Documentation

◆ ShowGSConfigWindow()

void ShowGSConfigWindow ( )

Open the GS config window.

Definition at line 425 of file game_gui.cpp.

References CloseWindowByClass(), and WC_GAME_OPTIONS.

Referenced by MenuClickSettings(), and GenerateLandscapeWindow::OnClick().

Variable Documentation

◆ _nested_gs_config_widgets

constexpr NWidgetPart _nested_gs_config_widgets[]
staticconstexpr

Widgets for the configure GS window.

Definition at line 36 of file game_gui.cpp.