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

@@ -520,8 +520,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ "WINDOW_RIGHT", Game.Renderer.Resolution.Width },
{ "WINDOW_BOTTOM", Game.Renderer.Resolution.Height },
{ "PARENT_RIGHT", parentBounds.Width },
{ "PARENT_LEFT", parentBounds.Left },
{ "PARENT_TOP", parentBounds.Top },
{ "PARENT_BOTTOM", parentBounds.Height }
};