OpenTTD Source 20241224-master-gf74b0cf984
intro_gui.cpp File Reference

The main menu GUI. More...

#include "stdafx.h"
#include "error.h"
#include "gui.h"
#include "window_gui.h"
#include "window_func.h"
#include "textbuf_gui.h"
#include "help_gui.h"
#include "network/network.h"
#include "genworld.h"
#include "network/network_gui.h"
#include "network/network_content.h"
#include "network/network_survey.h"
#include "landscape_type.h"
#include "landscape.h"
#include "strings_func.h"
#include "fios.h"
#include "ai/ai_gui.hpp"
#include "game/game_gui.hpp"
#include "gfx_func.h"
#include "core/geometry_func.hpp"
#include "language.h"
#include "rev.h"
#include "highscore.h"
#include "signs_base.h"
#include "viewport_func.h"
#include "vehicle_base.h"
#include <regex>
#include "widgets/intro_widget.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "safeguards.h"

Go to the source code of this file.

Data Structures

struct  IntroGameViewportCommand
 A viewport command for the main menu background (intro game). More...
 
struct  SelectGameWindow
 

Functions

void ShowSelectGameWindow ()
 
static void AskExitGameCallback (Window *, bool confirmed)
 
void AskExitGame ()
 
static void AskExitToGameMenuCallback (Window *, bool confirmed)
 
void AskExitToGameMenu ()
 

Variables

static constexpr NWidgetPart _nested_select_game_widgets []
 
static WindowDesc _select_game_desc (WDP_CENTER, nullptr, 0, 0, WC_SELECT_GAME, WC_NONE, WDF_NO_CLOSE, _nested_select_game_widgets)
 

Detailed Description

The main menu GUI.

Definition in file intro_gui.cpp.

Function Documentation

◆ AskExitGame()

void AskExitGame ( )

Definition at line 479 of file intro_gui.cpp.

◆ AskExitGameCallback()

static void AskExitGameCallback ( Window ,
bool  confirmed 
)
static

Definition at line 471 of file intro_gui.cpp.

◆ AskExitToGameMenu()

void AskExitToGameMenu ( )

Definition at line 499 of file intro_gui.cpp.

◆ AskExitToGameMenuCallback()

static void AskExitToGameMenuCallback ( Window ,
bool  confirmed 
)
static

Definition at line 491 of file intro_gui.cpp.

◆ ShowSelectGameWindow()

void ShowSelectGameWindow ( )

Definition at line 466 of file intro_gui.cpp.

Variable Documentation

◆ _nested_select_game_widgets

constexpr NWidgetPart _nested_select_game_widgets[]
staticconstexpr

Definition at line 380 of file intro_gui.cpp.