Lobby player listing working with widgets

This commit is contained in:
alzeih
2010-04-24 19:38:58 +12:00
parent bd4f66b433
commit 53865f974e
6 changed files with 291 additions and 110 deletions

View File

@@ -36,6 +36,15 @@ namespace OpenRA.Widgets
GetText = () => { return Text; };
}
public LabelWidget(Widget other)
: base(other)
{
Text = (other as LabelWidget).Text;
Align = (other as LabelWidget).Align;
Bold = (other as LabelWidget).Bold;
GetText = (other as LabelWidget).GetText;
}
public override void Draw(World world)
{
if (!IsVisible())
@@ -56,5 +65,10 @@ namespace OpenRA.Widgets
font.DrawText(text, position, Color.White);
base.Draw(world);
}
public override Widget Clone()
{
return new LabelWidget(this);
}
}
}