mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 18:32:35 +01:00
Codechange: add and use GetToolTip instead of direct access
This commit is contained in:
@@ -1154,6 +1154,15 @@ void NWidgetCore::SetToolTip(StringID tool_tip)
|
||||
this->tool_tip = tool_tip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tool tip of the nested widget.
|
||||
* @return The tool tip string.
|
||||
*/
|
||||
StringID NWidgetCore::GetToolTip() const
|
||||
{
|
||||
return this->tool_tip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the text/image alignment of the nested widget.
|
||||
* @param align Alignment to use.
|
||||
|
||||
Reference in New Issue
Block a user