OpenTTD Source: src/widgets/company_widget.h File Reference

OpenTTD Source 15.3

Enumerations
company_widget.h File Reference

Types related to the company widgets. More...

Go to the source code of this file.

## Enumerations
enum | CompanyWidgets : WidgetID { WID_C_CAPTION , WID_C_FACE , WID_C_FACE_TITLE , WID_C_DESC_INAUGURATION , WID_C_DESC_COLOUR_SCHEME , WID_C_DESC_COLOUR_SCHEME_EXAMPLE , WID_C_DESC_VEHICLE , WID_C_DESC_VEHICLE_COUNTS , WID_C_DESC_COMPANY_VALUE , WID_C_DESC_INFRASTRUCTURE , WID_C_DESC_INFRASTRUCTURE_COUNTS , WID_C_SELECT_BUTTONS , WID_C_NEW_FACE , WID_C_COLOUR_SCHEME , WID_C_PRESIDENT_NAME , WID_C_COMPANY_NAME , WID_C_SELECT_VIEW_BUILD_HQ , WID_C_VIEW_HQ , WID_C_BUILD_HQ , WID_C_SELECT_RELOCATE , WID_C_RELOCATE_HQ , WID_C_VIEW_INFRASTRUCTURE , WID_C_SELECT_GIVE_MONEY , WID_C_GIVE_MONEY , WID_C_SELECT_HOSTILE_TAKEOVER , WID_C_HOSTILE_TAKEOVER , WID_C_SELECT_MULTIPLAYER , WID_C_COMPANY_JOIN }
| Widgets of the CompanyWindow class. More...
enum | CompanyFinancesWidgets : WidgetID { WID_CF_CAPTION , WID_CF_TOGGLE_SIZE , WID_CF_SEL_PANEL , WID_CF_EXPS_CATEGORY , WID_CF_EXPS_PRICE1 , WID_CF_EXPS_PRICE2 , WID_CF_EXPS_PRICE3 , WID_CF_TOTAL_PANEL , WID_CF_SEL_MAXLOAN , WID_CF_BALANCE_VALUE , WID_CF_LOAN_VALUE , WID_CF_BALANCE_LINE , WID_CF_OWN_VALUE , WID_CF_INTEREST_RATE , WID_CF_MAXLOAN_VALUE , WID_CF_SEL_BUTTONS , WID_CF_INCREASE_LOAN , WID_CF_REPAY_LOAN , WID_CF_INFRASTRUCTURE }
| Widgets of the CompanyFinancesWindow class. More...
enum | SelectCompanyLiveryWidgets : WidgetID { WID_SCL_CAPTION , WID_SCL_CLASS_GENERAL , WID_SCL_CLASS_RAIL , WID_SCL_CLASS_ROAD , WID_SCL_CLASS_SHIP , WID_SCL_CLASS_AIRCRAFT , WID_SCL_GROUPS_RAIL , WID_SCL_GROUPS_ROAD , WID_SCL_GROUPS_SHIP , WID_SCL_GROUPS_AIRCRAFT , WID_SCL_SPACER_DROPDOWN , WID_SCL_PRI_COL_DROPDOWN , WID_SCL_SEC_COL_DROPDOWN , WID_SCL_SEC_COL_DROP_SEL , WID_SCL_MATRIX , WID_SCL_MATRIX_SCROLLBAR }
| Widgets of the SelectCompanyLiveryWindow class. More...
enum | SelectCompanyManagerFaceWidgets : WidgetID { WID_SCMF_CAPTION , WID_SCMF_TOGGLE_LARGE_SMALL , WID_SCMF_SELECT_FACE , WID_SCMF_CANCEL , WID_SCMF_ACCEPT , WID_SCMF_SEL_LOADSAVE , WID_SCMF_SEL_PARTS , WID_SCMF_SEL_RESIZE , WID_SCMF_RANDOM_NEW_FACE , WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON , WID_SCMF_FACE , WID_SCMF_LOAD , WID_SCMF_FACECODE , WID_SCMF_SAVE , WID_SCMF_STYLE , WID_SCMF_PARTS , WID_SCMF_PARTS_SCROLLBAR }
| Widgets of the SelectCompanyManagerFaceWindow class. More...
enum | CompanyInfrastructureWidgets : WidgetID { WID_CI_CAPTION , WID_CI_LIST , WID_CI_SCROLLBAR }
| Widgets of the CompanyInfrastructureWindow class. More...
enum | BuyCompanyWidgets : WidgetID { WID_BC_CAPTION , WID_BC_FACE , WID_BC_QUESTION , WID_BC_NO , WID_BC_YES }
| Widgets of the BuyCompanyWindow class. More...

## Detailed Description

Types related to the company widgets.

Definition in file company_widget.h.

## Enumeration Type Documentation

## ◆ BuyCompanyWidgets

enum BuyCompanyWidgets : WidgetID

Widgets of the BuyCompanyWindow class.

Enumerator
WID_BC_CAPTION | Caption of window.
WID_BC_FACE | Face button.
WID_BC_QUESTION | Question text.
WID_BC_NO | No button.
WID_BC_YES | Yes button.

Definition at line 130 of file company_widget.h.

## ◆ CompanyFinancesWidgets

enum CompanyFinancesWidgets : WidgetID

Widgets of the CompanyFinancesWindow class.

Enumerator
WID_CF_CAPTION | Caption of the window.
WID_CF_TOGGLE_SIZE | Toggle windows size.
WID_CF_SEL_PANEL | Select panel or nothing.
WID_CF_EXPS_CATEGORY | Column for expenses category strings.
WID_CF_EXPS_PRICE1 | Column for year Y-2 expenses.
WID_CF_EXPS_PRICE2 | Column for year Y-1 expenses.
WID_CF_EXPS_PRICE3 | Column for year Y expenses.
WID_CF_TOTAL_PANEL | Panel for totals.
WID_CF_SEL_MAXLOAN | Selection of maxloan column.
WID_CF_BALANCE_VALUE | Bank balance value.
WID_CF_LOAN_VALUE | Loan.
WID_CF_BALANCE_LINE | Available cash.
WID_CF_OWN_VALUE | Own funds, not including loan.
WID_CF_INTEREST_RATE | Loan interest rate.
WID_CF_MAXLOAN_VALUE | Max loan widget.
WID_CF_SEL_BUTTONS | Selection of buttons.
WID_CF_INCREASE_LOAN | Increase loan.
WID_CF_REPAY_LOAN | Decrease loan..
WID_CF_INFRASTRUCTURE | View company infrastructure.

Definition at line 55 of file company_widget.h.

## ◆ CompanyInfrastructureWidgets

enum CompanyInfrastructureWidgets : WidgetID

Widgets of the CompanyInfrastructureWindow class.

Enumerator
WID_CI_CAPTION | Caption of window.
WID_CI_LIST | Infrastructure list.
WID_CI_SCROLLBAR | Infrastructure list scrollbar.

Definition at line 123 of file company_widget.h.

## ◆ CompanyWidgets

enum CompanyWidgets : WidgetID

Widgets of the CompanyWindow class.

Enumerator
WID_C_CAPTION | Caption of the window.
WID_C_FACE | View of the face.
WID_C_FACE_TITLE | Title for the face.
WID_C_DESC_INAUGURATION | Inauguration.
WID_C_DESC_COLOUR_SCHEME | Colour scheme.
WID_C_DESC_COLOUR_SCHEME_EXAMPLE | Colour scheme example.
WID_C_DESC_VEHICLE | Vehicles.
WID_C_DESC_VEHICLE_COUNTS | Vehicle count.
WID_C_DESC_COMPANY_VALUE | Company value.
WID_C_DESC_INFRASTRUCTURE | Infrastructure.
WID_C_DESC_INFRASTRUCTURE_COUNTS | Infrastructure count.
WID_C_SELECT_BUTTONS | Selection widget for the button bar.
WID_C_NEW_FACE | Button to make new face.
WID_C_COLOUR_SCHEME | Button to change colour scheme.
WID_C_PRESIDENT_NAME | Button to change president name.
WID_C_COMPANY_NAME | Button to change company name.
WID_C_SELECT_VIEW_BUILD_HQ | Panel about HQ.
WID_C_VIEW_HQ | Button to view the HQ.
WID_C_BUILD_HQ | Button to build the HQ.
WID_C_SELECT_RELOCATE | Panel about 'Relocate HQ'.
WID_C_RELOCATE_HQ | Button to relocate the HQ.
WID_C_VIEW_INFRASTRUCTURE | Panel about infrastructure.
WID_C_SELECT_GIVE_MONEY | Selection widget for the give money button.
WID_C_GIVE_MONEY | Button to give money.
WID_C_SELECT_HOSTILE_TAKEOVER | Selection widget for the hostile takeover button.
WID_C_HOSTILE_TAKEOVER | Button to hostile takeover another company.
WID_C_SELECT_MULTIPLAYER | Multiplayer selection panel.
WID_C_COMPANY_JOIN | Button to join company.

Definition at line 14 of file company_widget.h.

## ◆ SelectCompanyLiveryWidgets

enum SelectCompanyLiveryWidgets : WidgetID

Widgets of the SelectCompanyLiveryWindow class.

Enumerator
WID_SCL_CAPTION | Caption of window.
WID_SCL_CLASS_GENERAL | Class general.
WID_SCL_CLASS_RAIL | Class rail.
WID_SCL_CLASS_ROAD | Class road.
WID_SCL_CLASS_SHIP | Class ship.
WID_SCL_CLASS_AIRCRAFT | Class aircraft.
WID_SCL_GROUPS_RAIL | Rail groups.
WID_SCL_GROUPS_ROAD | Road groups.
WID_SCL_GROUPS_SHIP | Ship groups.
WID_SCL_GROUPS_AIRCRAFT | Aircraft groups.
WID_SCL_SPACER_DROPDOWN | Spacer for dropdown.
WID_SCL_PRI_COL_DROPDOWN | Dropdown for primary colour.
WID_SCL_SEC_COL_DROPDOWN | Dropdown for secondary colour.
WID_SCL_SEC_COL_DROP_SEL | Container for secondary color dropdown, which can be hidden.
WID_SCL_MATRIX | Matrix.
WID_SCL_MATRIX_SCROLLBAR | Matrix scrollbar.

Definition at line 79 of file company_widget.h.

## ◆ SelectCompanyManagerFaceWidgets

enum SelectCompanyManagerFaceWidgets : WidgetID

Widgets of the SelectCompanyManagerFaceWindow class.

Enumerator
WID_SCMF_CAPTION | Caption of window.
WID_SCMF_TOGGLE_LARGE_SMALL | Toggle for large or small.
WID_SCMF_SELECT_FACE | Select face.
WID_SCMF_CANCEL | Cancel.
WID_SCMF_ACCEPT | Accept.
WID_SCMF_SEL_LOADSAVE | Selection to display the load/save/number buttons in the advanced view.
WID_SCMF_SEL_PARTS | Selection to display the buttons for setting each part of the face in the advanced view.
WID_SCMF_SEL_RESIZE | Selection to display the resize button.
WID_SCMF_RANDOM_NEW_FACE | Create random new face.
WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON | Toggle for large or small.
WID_SCMF_FACE | Current face.
WID_SCMF_LOAD | Load face.
WID_SCMF_FACECODE | Get the face code.
WID_SCMF_SAVE | Save face.
WID_SCMF_STYLE | Style selector widget.
WID_SCMF_PARTS | Face configuration parts widget.
WID_SCMF_PARTS_SCROLLBAR | Scrollbar for configuration parts widget.

Definition at line 102 of file company_widget.h.