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

@ -766,4 +766,54 @@ public enum SeIconChar
/// The Japanese Eorzea time icon unicode character.
/// </summary>
EorzeaTimeJa = 0xE0DB,
/// <summary>
/// The boxed, outlined number 0 icon unicode character.
/// </summary>
BoxedOutlinedNumber0 = 0xE0E0,
/// <summary>
/// The boxed, outlined number 1 icon unicode character.
/// </summary>
BoxedOutlinedNumber1 = 0xE0E1,
/// <summary>
/// The boxed, outlined number 2 icon unicode character.
/// </summary>
BoxedOutlinedNumber2 = 0xE0E2,
/// <summary>
/// The boxed, outlined number 3 icon unicode character.
/// </summary>
BoxedOutlinedNumber3 = 0xE0E3,
/// <summary>
/// The boxed, outlined number 4 icon unicode character.
/// </summary>
BoxedOutlinedNumber4 = 0xE0E4,
/// <summary>
/// The boxed, outlined number 5 icon unicode character.
/// </summary>
BoxedOutlinedNumber5 = 0xE0E5,
/// <summary>
/// The boxed, outlined number 6 icon unicode character.
/// </summary>
BoxedOutlinedNumber6 = 0xE0E6,
/// <summary>
/// The boxed, outlined number 7 icon unicode character.
/// </summary>
BoxedOutlinedNumber7 = 0xE0E7,
/// <summary>
/// The boxed, outlined number 8 icon unicode character.
/// </summary>
BoxedOutlinedNumber8 = 0xE0E8,
/// <summary>
/// The boxed, outlined number 9 icon unicode character.
/// </summary>
BoxedOutlinedNumber9 = 0xE0E9,
}

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