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:
parent
05535ec9d1
commit
26dfde19ee
109 changed files with 473 additions and 752 deletions
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Commands
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ using System.Text;
|
|||
using System.Text.Json;
|
||||
using Server.Commands.Generic;
|
||||
using Server.Json;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Commands;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Commands.Generic
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Commands.Generic
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Commands.Generic
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ using System.Text.Json.Serialization;
|
|||
using Server.Items;
|
||||
using Server.Json;
|
||||
using Server.Logging;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Commands;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue