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

@ -1,7 +1,6 @@
using System;
using Server.Items;
using Server.Targeting;
using Server.Utilities;
namespace Server.Commands
{

View file

@ -4,7 +4,6 @@ using System.Text;
using System.Text.Json;
using Server.Commands.Generic;
using Server.Json;
using Server.Utilities;
namespace Server.Commands;

View file

@ -2,7 +2,6 @@ using System;
using System.Globalization;
using System.Reflection;
using System.Reflection.Emit;
using Server.Utilities;
namespace Server.Commands.Generic
{

View file

@ -2,7 +2,6 @@ using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using Server.Utilities;
namespace Server.Commands.Generic
{

View file

@ -2,7 +2,6 @@ using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using Server.Utilities;
namespace Server.Commands.Generic
{

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>";
}
}

View file

@ -21,7 +21,6 @@ using System.Text.Json.Serialization;
using Server.Items;
using Server.Json;
using Server.Logging;
using Server.Utilities;
namespace Server.Commands;

View file

@ -8,7 +8,6 @@ using Server.Engines.Quests.Necro;
using Server.Engines.Spawners;
using Server.Items;
using Server.Network;
using Server.Utilities;
using MemoryExtensions = System.MemoryExtensions;
namespace Server.Commands

View file

@ -8,7 +8,6 @@ using Server.Engines.Quests.Necro;
using Server.Engines.Spawners;
using Server.Items;
using Server.Network;
using Server.Utilities;
using MemoryExtensions = System.MemoryExtensions;
namespace Server.Commands