New dialog type for tooltips etc

This commit is contained in:
Paul Chote
2010-04-10 18:21:58 +12:00
committed by Chris Forbes
parent 9f5c08728d
commit ea46f413d1
6 changed files with 119 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ namespace OpenRA.Widgets
{
class BackgroundWidget : Widget
{
public readonly string Background = "dialog";
public override void Draw(World world)
{
if (!Visible)
@@ -30,7 +31,7 @@ namespace OpenRA.Widgets
return;
}
WidgetUtils.DrawPanel("dialog", Bounds, null);
WidgetUtils.DrawPanel(Background, Bounds, null);
base.Draw(world);
}
}