Definition at line 1484 of file network_gui.cpp.
◆ ClientButtonLine()
| ClientButtonLine::ClientButtonLine |
( |
ClientPoolID | client_pool_id | ) |
|
|
inline |
◆ Draw()
| void ClientButtonLine::Draw |
( |
Rect | r | ) |
const |
|
inlineoverridevirtual |
Draw the button line.
- Parameters
-
Implements ButtonLine.
Definition at line 1488 of file network_gui.cpp.
References _current_text_dir, _network_own_client_id, Rect::CentreToHeight(), NetworkClientInfo::client_id, CLIENT_ID_SERVER, NetworkClientInfo::client_name, ButtonLine::DrawButtons(), DrawString(), FS_NORMAL, GetCharacterHeight(), GetScaledSpriteSize(), GetString(), Rect::Indent(), SA_CENTER, WidgetDimensions::scaled, TD_RTL, and Rect::WithWidth().
◆ GetTooltip()
Get tooptip for a given point on the line.
- Parameters
-
| r | Rect of line. |
| pt | Point of interest. |
- Returns
- EncodedString of tooltip, or
std::nullopt if none.
Reimplemented from ButtonLine.
Definition at line 1514 of file network_gui.cpp.
References _current_text_dir, _network_own_client_id, NetworkClientInfo::client_id, CLIENT_ID_SERVER, Rect::Contains(), GetEncodedString(), GetScaledSpriteSize(), ButtonLine::GetTooltip(), Point, TD_RTL, and Rect::WithWidth().
◆ client_pool_id
The documentation for this class was generated from the following file: