Codechange: Pass raw string to editable query window. (#13481)

This avoids separating string id and parameters. EncodedString is not needed as it is the raw text that is editable.
This commit is contained in:
Peter Nelson
2025-02-07 17:03:53 +00:00
committed by GitHub
parent 8c48f9fc49
commit c3643e3ee0
25 changed files with 60 additions and 115 deletions

View File

@@ -428,8 +428,7 @@ struct SignWindow : Window, SignList {
{
/* Display an empty string when the sign hasn't been edited yet */
if (!si->name.empty()) {
SetDParam(0, si->index);
this->name_editbox.text.Assign(STR_SIGN_NAME);
this->name_editbox.text.Assign(GetString(STR_SIGN_NAME, si->index));
} else {
this->name_editbox.text.DeleteAll();
}