fix: Consolidates Color/Center html (#1762)

### Summary
- Fixes bad color in virtual check gump
- Consolidates the Color/Center html strings for all gumps
This commit is contained in:
Kamron Batman 2024-05-07 23:56:32 -07:00 • committed by GitHub
parent 05535ec9d1
commit 26dfde19ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
109 changed files with 473 additions and 752 deletions

View file

@ -349,7 +349,7 @@ public static class HelpInfo
AddBackground(0, 0, width, height, 5054);
AddHtml(10, 10, width - 20, 20, Color(Center(info.Name), 0xFF0000));
AddHtml(10, 10, width - 20, 20, info.Name.Center(0xFF0000));
using var sb = ValueStringBuilder.Create();
@ -402,9 +402,5 @@ public static class HelpInfo
AddHtml(10, 40, width - 20, height - 80, sb.ToString(), false, true);
}
public static string Color(string text, int color) => $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
public static string Center(string text) => $"<CENTER>{text}</CENTER>";
}
}