OpenTTD Source: src/script/script_gui.h Source File

OpenTTD Source 14.0-RC3

script_gui.h
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 <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef SCRIPT_GUI_HPP
11 #define SCRIPT_GUI_HPP
12
13 #include "../company_type.h"
14 #include "../textfile_type.h"
15
16 void ShowScriptListWindow(CompanyID slot, bool show_all);
17 Window *ShowScriptDebugWindow(CompanyID show_company = INVALID_COMPANY, bool new_window = false);
18 void ShowScriptSettingsWindow(CompanyID slot);
19 void ShowScriptTextfileWindow(TextfileType file_type, CompanyID slot);
20 void ShowScriptDebugWindowIfScriptError();
21 void InitializeScriptGui();
22
23 #endif /* SCRIPT_GUI_HPP */
ShowScriptDebugWindow
Window * ShowScriptDebugWindow(CompanyID show_company, bool new_window)
Open the Script debug window and select the given company.
Definition: script_gui.cpp:1303
ShowScriptListWindow
void ShowScriptListWindow(CompanyID slot, bool show_all)
Open the Script list window to chose a script for the given company slot.
Definition: script_gui.cpp:276
InitializeScriptGui
void InitializeScriptGui()
Reset the Script windows to their initial state.
Definition: script_gui.cpp:1337
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:18
ShowScriptSettingsWindow
void ShowScriptSettingsWindow(CompanyID slot)
Open the Script settings window to change the Script settings for a Script.
Definition: script_gui.cpp:620
ShowScriptDebugWindowIfScriptError
void ShowScriptDebugWindowIfScriptError()
Open the AI debug window if one of the AI scripts has crashed.
Definition: script_gui.cpp:1343
INVALID_COMPANY
@ INVALID_COMPANY
An invalid company.
Definition: company_type.h:30
Window
Data structure for an opened window.
Definition: window_gui.h:267
TextfileType
TextfileType
Additional text files accompanying Tar archives.
Definition: textfile_type.h:14
ShowScriptTextfileWindow
void ShowScriptTextfileWindow(TextfileType file_type, CompanyID slot)
Open the Script version of the textfile window.
Definition: script_gui.cpp:662