1
0
Fork 0

Codechange: Move to GetWidgetString for help window.

pull/13733/head
Peter Nelson 2025-03-03 12:00:20 +00:00
parent aec1046d19
commit 57cb8c583f
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 4 additions and 2 deletions

View File

@ -76,11 +76,13 @@ struct GameManualTextfileWindow : public TextfileWindow {
this->OnClick({ 0, 0 }, WID_TF_WRAPTEXT, 1);
}
void SetStringParameters(WidgetID widget) const override
std::string GetWidgetString(WidgetID widget, StringID stringid) const override
{
if (widget == WID_TF_CAPTION) {
SetDParamStr(0, this->filename);
return GetString(stringid, this->filename);
}
return this->Window::GetWidgetString(widget, stringid);
}
void AfterLoadText() override