System messages should be yellow to distinguish them from normal

This commit is contained in:
teinarss
2019-03-27 19:17:02 +01:00
committed by abcdefg30
parent db487e1264
commit d9d2202599
16 changed files with 87 additions and 61 deletions

View File

@@ -105,10 +105,10 @@ namespace OpenRA.Network
localOrders.Add(order);
}
public Action<Color, string, string> AddChatLine = (c, n, s) => { };
void CacheChatLine(Color color, string name, string text)
public Action<string, Color, string, Color> AddChatLine = (n, nc, s, tc) => { };
void CacheChatLine(string name, Color nameColor, string text, Color textColor)
{
chatCache.Add(new ChatLine(color, name, text));
chatCache.Add(new ChatLine(name, nameColor, text, textColor));
}
public void TickImmediate()
@@ -219,12 +219,14 @@ namespace OpenRA.Network
public readonly Color Color;
public readonly string Name;
public readonly string Text;
public readonly Color TextColor;
public ChatLine(Color c, string n, string t)
public ChatLine(string name, Color nameColor, string text, Color textColor)
{
Color = c;
Name = n;
Text = t;
Color = nameColor;
Name = name;
Text = text;
TextColor = textColor;
}
}
}