emulation of old chat system

This commit is contained in:
Chris Forbes
2010-07-14 21:11:06 +12:00
parent 093e445564
commit 5e912a316d
3 changed files with 49 additions and 23 deletions

View File

@@ -28,6 +28,7 @@ namespace OpenRA.Widgets
{
const int logLength = 10;
public string Notification = "";
public bool DrawBackground = true;
public List<ChatLine> recentLines = new List<ChatLine>();
@@ -42,7 +43,9 @@ namespace OpenRA.Widgets
var pos = RenderOrigin;
var chatLogArea = new Rectangle(pos.X, pos.Y, Bounds.Width, Bounds.Height);
var chatpos = new int2(chatLogArea.X + 10, chatLogArea.Bottom - 6);
WidgetUtils.DrawPanel("dialog3", chatLogArea);
if (DrawBackground)
WidgetUtils.DrawPanel("dialog3", chatLogArea);
var renderer = Game.chrome.renderer;
var font = renderer.RegularFont;