4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
10 /** @file company_widget.h Types related to the company widgets. */
12 #ifndef WIDGETS_COMPANY_WIDGET_H
13 #define WIDGETS_COMPANY_WIDGET_H
15 /** Widgets of the #CompanyWindow class. */
17 WID_C_CAPTION
, ///< Caption of the window.
19 WID_C_FACE
, ///< View of the face.
20 WID_C_FACE_TITLE
, ///< Title for the face.
22 WID_C_DESC_INAUGURATION
, ///< Inauguration.
23 WID_C_DESC_COLOUR_SCHEME
, ///< Colour scheme.
24 WID_C_DESC_COLOUR_SCHEME_EXAMPLE
, ///< Colour scheme example.
25 WID_C_DESC_VEHICLE
, ///< Vehicles.
26 WID_C_DESC_VEHICLE_COUNTS
, ///< Vehicle count.
27 WID_C_DESC_COMPANY_VALUE
, ///< Company value.
28 WID_C_DESC_INFRASTRUCTURE
, ///< Infrastructure.
29 WID_C_DESC_INFRASTRUCTURE_COUNTS
, ///< Infrastructure count.
31 WID_C_SELECT_DESC_OWNERS
, ///< Owners.
32 WID_C_DESC_OWNERS
, ///< Owner in Owners.
34 WID_C_SELECT_BUTTONS
, ///< Selection widget for the button bar.
35 WID_C_NEW_FACE
, ///< Button to make new face.
36 WID_C_COLOUR_SCHEME
, ///< Button to change colour scheme.
37 WID_C_PRESIDENT_NAME
, ///< Button to change president name.
38 WID_C_COMPANY_NAME
, ///< Button to change company name.
39 WID_C_BUY_SHARE
, ///< Button to buy a share.
40 WID_C_SELL_SHARE
, ///< Button to sell a share.
42 WID_C_SELECT_VIEW_BUILD_HQ
, ///< Panel about HQ.
43 WID_C_VIEW_HQ
, ///< Button to view the HQ.
44 WID_C_BUILD_HQ
, ///< Button to build the HQ.
46 WID_C_SELECT_RELOCATE
, ///< Panel about 'Relocate HQ'.
47 WID_C_RELOCATE_HQ
, ///< Button to relocate the HQ.
49 WID_C_VIEW_INFRASTRUCTURE
, ///< Panel about infrastructure.
51 WID_C_HAS_PASSWORD
, ///< Has company password lock.
52 WID_C_SELECT_MULTIPLAYER
, ///< Multiplayer selection panel.
53 WID_C_COMPANY_PASSWORD
, ///< Button to set company password.
54 WID_C_COMPANY_JOIN
, ///< Button to join company.
57 /** Widgets of the #CompanyFinancesWindow class. */
58 enum CompanyFinancesWidgets
{
59 WID_CF_CAPTION
, ///< Caption of the window.
60 WID_CF_TOGGLE_SIZE
, ///< Toggle windows size.
61 WID_CF_SEL_PANEL
, ///< Select panel or nothing.
62 WID_CF_EXPS_CATEGORY
, ///< Column for expenses category strings.
63 WID_CF_EXPS_PRICE1
, ///< Column for year Y-2 expenses.
64 WID_CF_EXPS_PRICE2
, ///< Column for year Y-1 expenses.
65 WID_CF_EXPS_PRICE3
, ///< Column for year Y expenses.
66 WID_CF_TOTAL_PANEL
, ///< Panel for totals.
67 WID_CF_SEL_MAXLOAN
, ///< Selection of maxloan column.
68 WID_CF_BALANCE_VALUE
, ///< Bank balance value.
69 WID_CF_LOAN_VALUE
, ///< Loan.
70 WID_CF_LOAN_LINE
, ///< Line for summing bank balance and loan.
71 WID_CF_TOTAL_VALUE
, ///< Total.
72 WID_CF_MAXLOAN_GAP
, ///< Gap above max loan widget.
73 WID_CF_MAXLOAN_VALUE
, ///< Max loan widget.
74 WID_CF_SEL_BUTTONS
, ///< Selection of buttons.
75 WID_CF_INCREASE_LOAN
, ///< Increase loan.
76 WID_CF_REPAY_LOAN
, ///< Decrease loan..
77 WID_CF_INFRASTRUCTURE
, ///< View company infrastructure.
81 /** Widgets of the #SelectCompanyLiveryWindow class. */
82 enum SelectCompanyLiveryWidgets
{
83 WID_SCL_CAPTION
, ///< Caption of window.
84 WID_SCL_CLASS_GENERAL
, ///< Class general.
85 WID_SCL_CLASS_RAIL
, ///< Class rail.
86 WID_SCL_CLASS_ROAD
, ///< Class road.
87 WID_SCL_CLASS_SHIP
, ///< Class ship.
88 WID_SCL_CLASS_AIRCRAFT
, ///< Class aircraft.
89 WID_SCL_SPACER_DROPDOWN
, ///< Spacer for dropdown.
90 WID_SCL_PRI_COL_DROPDOWN
, ///< Dropdown for primary colour.
91 WID_SCL_SEC_COL_DROPDOWN
, ///< Dropdown for secondary colour.
92 WID_SCL_MATRIX
, ///< Matrix.
97 * Widgets of the #SelectCompanyManagerFaceWindow class.
98 * Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
99 * this order is needed for the WE_CLICK event of DrawFaceStringLabel().
101 enum SelectCompanyManagerFaceWidgets
{
102 WID_SCMF_CAPTION
, ///< Caption of window.
103 WID_SCMF_TOGGLE_LARGE_SMALL
, ///< Toggle for large or small.
104 WID_SCMF_SELECT_FACE
, ///< Select face.
105 WID_SCMF_CANCEL
, ///< Cancel.
106 WID_SCMF_ACCEPT
, ///< Accept.
107 WID_SCMF_MALE
, ///< Male button in the simple view.
108 WID_SCMF_FEMALE
, ///< Female button in the simple view.
109 WID_SCMF_MALE2
, ///< Male button in the advanced view.
110 WID_SCMF_FEMALE2
, ///< Female button in the advanced view.
111 WID_SCMF_SEL_LOADSAVE
, ///< Selection to display the load/save/number buttons in the advanced view.
112 WID_SCMF_SEL_MALEFEMALE
, ///< Selection to display the male/female buttons in the simple view.
113 WID_SCMF_SEL_PARTS
, ///< Selection to display the buttons for setting each part of the face in the advanced view.
114 WID_SCMF_RANDOM_NEW_FACE
, ///< Create random new face.
115 WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
, ///< Toggle for large or small.
116 WID_SCMF_FACE
, ///< Current face.
117 WID_SCMF_LOAD
, ///< Load face.
118 WID_SCMF_FACECODE
, ///< Get the face code.
119 WID_SCMF_SAVE
, ///< Save face.
120 WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT
, ///< Text about moustache and earring.
121 WID_SCMF_TIE_EARRING_TEXT
, ///< Text about tie and earring.
122 WID_SCMF_LIPS_MOUSTACHE_TEXT
, ///< Text about lips and moustache.
123 WID_SCMF_HAS_GLASSES_TEXT
, ///< Text about glasses.
124 WID_SCMF_HAIR_TEXT
, ///< Text about hair.
125 WID_SCMF_EYEBROWS_TEXT
, ///< Text about eyebrows.
126 WID_SCMF_EYECOLOUR_TEXT
, ///< Text about eyecolour.
127 WID_SCMF_GLASSES_TEXT
, ///< Text about glasses.
128 WID_SCMF_NOSE_TEXT
, ///< Text about nose.
129 WID_SCMF_CHIN_TEXT
, ///< Text about chin.
130 WID_SCMF_JACKET_TEXT
, ///< Text about jacket.
131 WID_SCMF_COLLAR_TEXT
, ///< Text about collar.
132 WID_SCMF_ETHNICITY_EUR
, ///< Text about ethnicity european.
133 WID_SCMF_ETHNICITY_AFR
, ///< Text about ethnicity african.
134 WID_SCMF_HAS_MOUSTACHE_EARRING
, ///< Has moustache or earring.
135 WID_SCMF_HAS_GLASSES
, ///< Has glasses.
136 WID_SCMF_EYECOLOUR_L
, ///< Eyecolour left.
137 WID_SCMF_EYECOLOUR
, ///< Eyecolour.
138 WID_SCMF_EYECOLOUR_R
, ///< Eyecolour right.
139 WID_SCMF_CHIN_L
, ///< Chin left.
140 WID_SCMF_CHIN
, ///< Chin.
141 WID_SCMF_CHIN_R
, ///< Chin right.
142 WID_SCMF_EYEBROWS_L
, ///< Eyebrows left.
143 WID_SCMF_EYEBROWS
, ///< Eyebrows.
144 WID_SCMF_EYEBROWS_R
, ///< Eyebrows right.
145 WID_SCMF_LIPS_MOUSTACHE_L
, ///< Lips / Moustache left.
146 WID_SCMF_LIPS_MOUSTACHE
, ///< Lips / Moustache.
147 WID_SCMF_LIPS_MOUSTACHE_R
, ///< Lips / Moustache right.
148 WID_SCMF_NOSE_L
, ///< Nose left.
149 WID_SCMF_NOSE
, ///< Nose.
150 WID_SCMF_NOSE_R
, ///< Nose right.
151 WID_SCMF_HAIR_L
, ///< Hair left.
152 WID_SCMF_HAIR
, ///< Hair.
153 WID_SCMF_HAIR_R
, ///< Hair right.
154 WID_SCMF_JACKET_L
, ///< Jacket left.
155 WID_SCMF_JACKET
, ///< Jacket.
156 WID_SCMF_JACKET_R
, ///< Jacket right.
157 WID_SCMF_COLLAR_L
, ///< Collar left.
158 WID_SCMF_COLLAR
, ///< Collar.
159 WID_SCMF_COLLAR_R
, ///< Collar right.
160 WID_SCMF_TIE_EARRING_L
, ///< Tie / Earring left.
161 WID_SCMF_TIE_EARRING
, ///< Tie / Earring.
162 WID_SCMF_TIE_EARRING_R
, ///< Tie / Earring right.
163 WID_SCMF_GLASSES_L
, ///< Glasses left.
164 WID_SCMF_GLASSES
, ///< Glasses.
165 WID_SCMF_GLASSES_R
, ///< Glasses right.
168 /** Widgets of the #CompanyInfrastructureWindow class. */
169 enum CompanyInfrastructureWidgets
{
170 WID_CI_CAPTION
, ///< Caption of window.
171 WID_CI_RAIL_DESC
, ///< Description of rail.
172 WID_CI_RAIL_COUNT
, ///< Count of rail.
173 WID_CI_ROAD_DESC
, ///< Description of road.
174 WID_CI_ROAD_COUNT
, ///< Count of road.
175 WID_CI_WATER_DESC
, ///< Description of water.
176 WID_CI_WATER_COUNT
, ///< Count of water.
177 WID_CI_STATION_DESC
, ///< Description of station.
178 WID_CI_STATION_COUNT
, ///< Count of station.
179 WID_CI_TOTAL_DESC
, ///< Description of total.
180 WID_CI_TOTAL
, ///< Count of total.
183 /** Widgets of the #BuyCompanyWindow class. */
184 enum BuyCompanyWidgets
{
185 WID_BC_CAPTION
, ///< Caption of window.
186 WID_BC_FACE
, ///< Face button.
187 WID_BC_QUESTION
, ///< Question text.
188 WID_BC_NO
, ///< No button.
189 WID_BC_YES
, ///< Yes button.
192 #endif /* WIDGETS_COMPANY_WIDGET_H */