mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
Codechange: prepare for replacement of SetStringParameter by GetWidgetString
This commit is contained in:
@@ -499,6 +499,13 @@ bool Window::SetFocusedWidget(WidgetID widget_index)
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string Window::GetWidgetString([[maybe_unused]] WidgetID widget, StringID stringid) const
|
||||
{
|
||||
if (stringid == STR_NULL) return {};
|
||||
this->SetStringParameters(widget);
|
||||
return GetString(stringid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when window gains focus
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user