OpenTTD Source 20260206-master-g4d4e37dbf1
script_gui.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef SCRIPT_GUI_HPP
11#define SCRIPT_GUI_HPP
12
13#include "../company_type.h"
14#include "../textfile_type.h"
15
16struct Window;
17
18void ShowScriptListWindow(CompanyID slot, bool show_all);
19Window *ShowScriptDebugWindow(CompanyID show_company = CompanyID::Invalid(), bool new_window = false);
20void ShowScriptSettingsWindow(CompanyID slot);
21void ShowScriptTextfileWindow(Window *parent, TextfileType file_type, CompanyID slot);
24
25#endif /* SCRIPT_GUI_HPP */
Types related to companies.
void ShowScriptDebugWindowIfScriptError()
Open the AI debug window if one of the AI scripts has crashed.
void ShowScriptSettingsWindow(CompanyID slot)
Open the Script settings window to change the Script settings for a Script.
void ShowScriptTextfileWindow(Window *parent, TextfileType file_type, CompanyID slot)
Open the Script version of the textfile window.
Window * ShowScriptDebugWindow(CompanyID show_company=CompanyID::Invalid(), bool new_window=false)
Open the Script debug window and select the given company.
void ShowScriptListWindow(CompanyID slot, bool show_all)
Open the Script list window to chose a script for the given company slot.
void InitializeScriptGui()
Reset the Script windows to their initial state.
Data structure for an opened window.
Definition window_gui.h:274
Window * parent
Parent window.
Definition window_gui.h:329
Types related to textfiles.
TextfileType
Additional text files accompanying Tar archives.