Use the font dictionary everywhere

This commit is contained in:
Paul Chote
2011-05-16 17:59:30 +12:00
parent e1c8658fdc
commit d7f009b218
17 changed files with 45 additions and 55 deletions

View File

@@ -266,7 +266,7 @@ namespace OpenRA.Mods.Cnc.Widgets
public void AddChatLine(Color c, string from, string text)
{
var name = from+":";
var font = Game.Renderer.RegularFont;
var font = Game.Renderer.Fonts["Regular"];
var nameSize = font.Measure(from);
var template = chatTemplate.Clone() as ContainerWidget;