Codechange: Use GetWidgetString for goal, league and story windows. (#13700)

This commit is contained in:
Peter Nelson
2025-03-02 18:33:11 +00:00
committed by GitHub
parent 913eadd6b0
commit 2f75f3d147
3 changed files with 23 additions and 24 deletions

View File

@@ -296,10 +296,11 @@ public:
this->InitNested(table);
}
void SetStringParameters(WidgetID widget) const override
std::string GetWidgetString(WidgetID widget, StringID stringid) const override
{
if (widget != WID_SLT_CAPTION) return;
SetDParamStr(0, this->title);
if (widget != WID_SLT_CAPTION) return this->Window::GetWidgetString(widget, stringid);
return GetString(stringid, this->title);
}
void OnPaint() override