added portraits and others

This commit is contained in:
Sebastian Bularca
2026-04-05 22:37:09 +02:00
parent c2bbf30a73
commit 419201f2a5
19 changed files with 910 additions and 28 deletions

View File

@@ -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)]