OpenTTD Source: src/company_gui.h Source File

OpenTTD Source 12.2

company_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 <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef COMPANY_GUI_H
11 #define COMPANY_GUI_H
12
13 #include "company_type.h"
14 #include "group.h"
15 #include "gfx_type.h"
16
17 TextColour GetDrawStringCompanyColour(CompanyID company);
18 void DrawCompanyIcon(CompanyID c, int x, int y);
19
20 void ShowCompanyLiveryWindow(CompanyID company, GroupID group);
21 void ShowCompanyStations(CompanyID company);
22 void ShowCompanyFinances(CompanyID company);
23 void ShowCompany(CompanyID company);
24
25 void InvalidateCompanyWindows(const Company *c);
26 void CloseCompanyWindows(CompanyID company);
27 void DirtyCompanyInfrastructureWindows(CompanyID company);
28
29 #endif /* COMPANY_GUI_H */
ShowCompanyFinances
void ShowCompanyFinances(CompanyID company)
Open the finances window of a company.
Definition: company_gui.cpp:477
InvalidateCompanyWindows
void InvalidateCompanyWindows(const Company *c)
Refresh all windows owned by a company.
Definition: company_cmd.cpp:183
group.h
TextColour
TextColour
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palett...
Definition: gfx_type.h:250
CloseCompanyWindows
void CloseCompanyWindows(CompanyID company)
Close all windows of a company.
Definition: window.cpp:1204
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:18
ShowCompanyStations
void ShowCompanyStations(CompanyID company)
Opens window with list of company's stations.
Definition: station_gui.cpp:784
GetDrawStringCompanyColour
TextColour GetDrawStringCompanyColour(CompanyID company)
Get the colour for DrawString-subroutines which matches the colour of the company.
Definition: company_cmd.cpp:131
DrawCompanyIcon
void DrawCompanyIcon(CompanyID c, int x, int y)
Draw the icon of a company.
Definition: company_cmd.cpp:143
GroupID
uint16 GroupID
Type for all group identifiers.
Definition: group_type.h:13
DirtyCompanyInfrastructureWindows
void DirtyCompanyInfrastructureWindows(CompanyID company)
Redraw all windows with company infrastructure counts.
Definition: company_gui.cpp:2709
gfx_type.h
Company
Definition: company_base.h:115
ShowCompany
void ShowCompany(CompanyID company)
Show the window with the overview of the company.
Definition: company_gui.cpp:2698
company_type.h