Move chat display into a widget

This commit is contained in:
Paul Chote
2010-07-10 20:43:29 +12:00
parent fdf570398a
commit 50f3aecf53
10 changed files with 21 additions and 125 deletions

View File

@@ -102,7 +102,6 @@ namespace OpenRA.Widgets
TextBuffer += c;
}
int blinkCycle = 10;
bool showCursor = true;
public override void Tick(World world)
@@ -133,7 +132,7 @@ namespace OpenRA.Widgets
// Right align and scissor when the text overflows
if (textSize.X > Bounds.Width - 2*margin)
{
textPos += new int2(Bounds.Width - 2*margin - textSize.X,0);
textPos += new int2(Bounds.Width - 2*margin - textSize.X,0);
Game.chrome.renderer.Device.EnableScissor(pos.X + margin, pos.Y, Bounds.Width - 2*margin, Bounds.Bottom);
}