1
0
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:
Rubidium
2025-01-03 10:09:36 +01:00
committed by rubidium42
parent f0a74fcabb
commit 56d4d3cc7a
3 changed files with 14 additions and 4 deletions

View File

@@ -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.