Remove PARENT_TOP and PARENT_LEFT from integer expressions for widgets

PARENT_TOP and PARENT_LEFT should be 0 so they are not very useful substitutions. They are replaced with 0 or removed if that was the whole value for a field.
This commit is contained in:
Ivaylo Draganov
2024-10-03 17:43:16 +03:00
committed by Gustas
parent c0839d4521
commit a69ea79d83
5 changed files with 53 additions and 6 deletions

View File

@@ -293,8 +293,6 @@ namespace OpenRA.Widgets
substitutions.Add("WINDOW_RIGHT", Game.Renderer.Resolution.Width);
substitutions.Add("WINDOW_BOTTOM", Game.Renderer.Resolution.Height);
substitutions.Add("PARENT_RIGHT", parentBounds.Width);
substitutions.Add("PARENT_LEFT", parentBounds.Left);
substitutions.Add("PARENT_TOP", parentBounds.Top);
substitutions.Add("PARENT_BOTTOM", parentBounds.Height);
var readOnlySubstitutions = new ReadOnlyDictionary<string, int>(substitutions);