forked from Shardstone/trail-into-darkness
added portraits and others
This commit is contained in:
@@ -17,7 +17,8 @@ namespace Jovian.InGameLogging {
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Log(string message, string hexColor) {
|
||||
store.Add(channel, $"<color={hexColor}>{message}</color>");
|
||||
var prefix = hexColor.Length > 0 && hexColor[0] == '#' ? "" : "#";
|
||||
store.Add(channel, $"<color={prefix}{hexColor}>{message}</color>");
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
||||
Reference in New Issue
Block a user