Add support for boxed outlined numbers in SeIconChar (#2088)

This commit is contained in:
nebel 2024-11-16 09:34:49 +09:00 committed by GitHub
parent c1fbba2a27
commit abcb99d4ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 57 additions and 2 deletions

View file

@ -1,6 +1,8 @@
using Dalamud.Game.Text;
using ImGuiNET;
using System.Linq;
namespace Dalamud.Interface.Internal.Windows.Data.Widgets;
/// <summary>
@ -28,8 +30,11 @@ internal class SeFontTestWidget : IDataWindowWidget
{
var specialChars = string.Empty;
for (var i = 0xE020; i <= 0xE0DB; i++)
specialChars += $"0x{i:X} - {(SeIconChar)i} - {(char)i}\n";
var min = (char)Enum.GetValues<SeIconChar>().Min();
var max = (char)Enum.GetValues<SeIconChar>().Max();
for (var i = min; i <= max; i++)
specialChars += $"0x{(int)i:X} - {(SeIconChar)i} - {i}\n";
ImGui.TextUnformatted(specialChars);
}