OpenTTD Source  20240917-master-g9ab0a47812
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 
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);
28 
29 #endif /* COMPANY_GUI_H */
ShowCompanyFinances
void ShowCompanyFinances(CompanyID company)
Open the finances window of a company.
Definition: company_gui.cpp:546
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:18
InvalidateCompanyWindows
void InvalidateCompanyWindows(const Company *c)
Refresh all windows owned by a company.
Definition: company_cmd.cpp:201
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:260
CloseCompanyWindows
void CloseCompanyWindows(CompanyID company)
Close all windows of a company.
Definition: window.cpp:1168
ShowCompanyStations
void ShowCompanyStations(CompanyID company)
Opens window with list of company's stations.
Definition: station_gui.cpp:814
GetDrawStringCompanyColour
TextColour GetDrawStringCompanyColour(CompanyID company)
Get the colour for DrawString-subroutines which matches the colour of the company.
Definition: company_cmd.cpp:149
DrawCompanyIcon
void DrawCompanyIcon(CompanyID c, int x, int y)
Draw the icon of a company.
Definition: company_cmd.cpp:161
DirtyCompanyInfrastructureWindows
void DirtyCompanyInfrastructureWindows(CompanyID company)
Redraw all windows with company infrastructure counts.
Definition: company_gui.cpp:2584
GroupID
uint16_t GroupID
Type for all group identifiers.
Definition: group_type.h:13
gfx_type.h
Company
Definition: company_base.h:133
ShowCompany
void ShowCompany(CompanyID company)
Show the window with the overview of the company.
Definition: company_gui.cpp:2573
company_type.h