OpenTTD Source 20241224-master-gee860a5c8e
ai_gui.cpp File Reference

Window for configuring the AIs More...

#include "../stdafx.h"
#include "../error.h"
#include "../company_base.h"
#include "../window_func.h"
#include "../network/network.h"
#include "../settings_func.h"
#include "../network/network_content.h"
#include "../core/geometry_func.hpp"
#include "ai.hpp"
#include "ai_gui.hpp"
#include "ai_config.hpp"
#include "ai_info.hpp"
#include "../script/script_gui.h"
#include "table/strings.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  AIConfigWindow
 Window to configure which AIs will start. More...
 

Functions

void ShowAIConfigWindow ()
 Open the AI config window.
 

Variables

static constexpr NWidgetPart _nested_ai_config_widgets []
 Widgets for the configure AI window.
 
static WindowDesc _ai_config_desc (WDP_CENTER, nullptr, 0, 0, WC_GAME_OPTIONS, WC_NONE, 0, _nested_ai_config_widgets)
 Window definition for the configure AI window.
 

Detailed Description

Window for configuring the AIs

Definition in file ai_gui.cpp.

Function Documentation

◆ ShowAIConfigWindow()

void ShowAIConfigWindow ( )

Open the AI config window.

Definition at line 324 of file ai_gui.cpp.

References CloseWindowByClass(), and WC_GAME_OPTIONS.

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

Variable Documentation

◆ _nested_ai_config_widgets

constexpr NWidgetPart _nested_ai_config_widgets[]
staticconstexpr

Widgets for the configure AI window.

Definition at line 30 of file ai_gui.cpp.