OpenTTD Source: src/ai/ai_gui.cpp File Reference

OpenTTD Source 15.0-RC2

Data Structures | Functions | Variables
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 std::initializer_list< NWidgetPart > | _nested_ai_config_widgets
| Widgets for the configure AI window.
static WindowDesc | _ai_config_desc (WDP_CENTER, {}, 0, 0, WC_GAME_OPTIONS, WC_NONE, {}, _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 334 of file ai_gui.cpp.

References CloseWindowByClass(), and WC_GAME_OPTIONS.

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

## Variable Documentation

## ◆ _nested_ai_config_widgets

constexpr std::initializer_list<NWidgetPart> _nested_ai_config_widgets
| staticconstexpr

Widgets for the configure AI window.

Definition at line 31 of file ai_gui.cpp.