OpenTTD Source  20241108-master-g80f628063a
ButtonCommon Class Referenceabstract

Button shown for either a company or client in the client-list. More...

Inheritance diagram for ButtonCommon:
Button< T >

Public Member Functions

 ButtonCommon (SpriteID sprite, StringID tooltip, Colours colour, bool disabled=false)
 
virtual void OnClick (struct NetworkClientListWindow *w, Point pt)=0
 OnClick handler for when the button is pressed.
 

Data Fields

SpriteID sprite
 The sprite to use on the button.
 
StringID tooltip
 The tooltip of the button.
 
Colours colour
 The colour of the button.
 
bool disabled
 Is the button disabled?
 
uint height
 Calculated height of the button.
 
uint width
 Calculated width of the button.
 

Detailed Description

Button shown for either a company or client in the client-list.

These buttons are dynamic and strongly depends on which company/client what buttons are available. This class allows dynamically creating them as the current Widget system does not.

Definition at line 1360 of file network_gui.cpp.


The documentation for this class was generated from the following file: