This commit is contained in:
Chris Forbes
2010-04-24 17:43:44 +12:00
committed by alzeih
parent 471a5c29c8
commit 70ebec36eb
3 changed files with 6 additions and 3 deletions

View File

@@ -91,7 +91,9 @@ namespace OpenRA.Widgets
public virtual void Initialize()
{
// Parse the YAML equations to find the widget bounds
Rectangle parentBounds = (Parent == null) ? new Rectangle(0,0,Game.viewport.Width,Game.viewport.Height) : Parent.Bounds;
Rectangle parentBounds = (Parent == null)
? new Rectangle(0,0,Game.viewport.Width,Game.viewport.Height)
: Parent.Bounds;
Dictionary<string, int> substitutions = new Dictionary<string, int>();
substitutions.Add("WINDOW_RIGHT", Game.viewport.Width);