split Widget static bits into Ui static class
This commit is contained in:
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
public void SetTooltip(string id, WidgetArgs args)
|
||||
{
|
||||
RemoveTooltip();
|
||||
tooltip = Widget.LoadWidget(id, this, new WidgetArgs(args) {{ "tooltipContainer", this }});
|
||||
tooltip = Ui.LoadWidget(id, this, new WidgetArgs(args) {{ "tooltipContainer", this }});
|
||||
}
|
||||
|
||||
public void RemoveTooltip()
|
||||
@@ -45,7 +45,9 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
}
|
||||
|
||||
public override void Draw() { BeforeRender(); }
|
||||
|
||||
public override Rectangle GetEventBounds() { return Rectangle.Empty; }
|
||||
|
||||
public override int2 ChildOrigin
|
||||
{
|
||||
get
|
||||
@@ -62,6 +64,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
}
|
||||
|
||||
public override string GetCursor(int2 pos) { return null; }
|
||||
|
||||
public override Widget Clone() { throw new NotImplementedException(); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user