mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Refactor format tokens
This commit is contained in:
@@ -270,7 +270,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
result.MaxWidth = GetOptionalInt(desc["maxWidth"]);
|
||||
result.MinHeight = GetOptionalInt(desc["minHeight"]);
|
||||
result.MaxHeight = GetOptionalInt(desc["maxHeight"]);
|
||||
result.Title = language_convert_string(desc["title"].as_string());
|
||||
result.Title = desc["title"].as_string();
|
||||
result.Id = GetOptionalInt(desc["id"]);
|
||||
result.TabIndex = GetOptionalInt(desc["tabIndex"]);
|
||||
|
||||
@@ -1077,7 +1077,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex);
|
||||
if (customWidgetInfo != nullptr)
|
||||
{
|
||||
customWidgetInfo->Text = language_convert_string(value);
|
||||
customWidgetInfo->Text = value;
|
||||
w->widgets[widgetIndex].string = customWidgetInfo->Text.data();
|
||||
widget_invalidate(w, widgetIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user