ColorBlockWidget tweaks + Widget Refactoring
This commit is contained in:
@@ -82,9 +82,15 @@ namespace OpenRA.Widgets
|
||||
|
||||
public int2 DrawPosition()
|
||||
{
|
||||
return new int2(Bounds.X, Bounds.Y) + ((Parent == null) ? int2.Zero : Parent.DrawPosition());
|
||||
return new int2(Bounds.X, Bounds.Y) + ParentPosition();
|
||||
}
|
||||
|
||||
public int2 ParentPosition()
|
||||
{
|
||||
return (Parent == null) ? int2.Zero : Parent.DrawPosition();
|
||||
}
|
||||
|
||||
|
||||
public virtual void Initialize()
|
||||
{
|
||||
// Parse the YAML equations to find the widget bounds
|
||||
|
||||
Reference in New Issue
Block a user