mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
feat: add enum for special SE codepoints
This commit is contained in:
parent
d2fdbafa57
commit
65c3ce192d
2 changed files with 188 additions and 3 deletions
181
Dalamud/Game/Chat/SeIconChar.cs
Normal file
181
Dalamud/Game/Chat/SeIconChar.cs
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Dalamud.Game.Chat
|
||||
{
|
||||
/// <summary>
|
||||
/// Special unicode characters with game-related symbols that work both in-game and in any dalamud window.
|
||||
/// </summary>
|
||||
public enum SeIconChar {
|
||||
BotanistSprout = 0xE034,
|
||||
ItemLevel = 0xE033,
|
||||
AutoTranslateOpen = 0xE040,
|
||||
AutoTranslateClose = 0xE041,
|
||||
HighQuality = 0xE03C,
|
||||
Clock = 0xE031,
|
||||
Gil = 0xE049,
|
||||
Hyadelyn = 0xE048,
|
||||
|
||||
MouseNoClick = 0xE050,
|
||||
MouseLeftClick = 0xE051,
|
||||
MouseRightClick = 0xE052,
|
||||
MouseBothClick = 0xE053,
|
||||
MouseWheel = 0xE054,
|
||||
Mouse1 = 0xE055,
|
||||
Mouse2 = 0xE056,
|
||||
Mouse3 = 0xE057,
|
||||
Mouse4 = 0xE058,
|
||||
Mouse5 = 0xE059,
|
||||
|
||||
LevelEn = 0xE06A,
|
||||
LevelDe = 0xE06B,
|
||||
LevelFr = 0xE06C,
|
||||
|
||||
Experience = 0xE0BC,
|
||||
ExperienceFilled = 0xE0BD,
|
||||
|
||||
TimeAm = 0xE06D,
|
||||
TimePm = 0xE06E,
|
||||
|
||||
ArrowRight = 0xE06F,
|
||||
ArrowDown = 0xE035,
|
||||
|
||||
Number0 = 0xE060,
|
||||
Number1 = 0xE061,
|
||||
Number2 = 0xE062,
|
||||
Number3 = 0xE063,
|
||||
Number4 = 0xE064,
|
||||
Number5 = 0xE065,
|
||||
Number6 = 0xE066,
|
||||
Number7 = 0xE067,
|
||||
Number8 = 0xE068,
|
||||
Number9 = 0xE069,
|
||||
|
||||
BoxedNumber0 = 0xE08F,
|
||||
BoxedNumber1 = 0xE090,
|
||||
BoxedNumber2 = 0xE091,
|
||||
BoxedNumber3 = 0xE092,
|
||||
BoxedNumber4 = 0xE093,
|
||||
BoxedNumber5 = 0xE094,
|
||||
BoxedNumber6 = 0xE095,
|
||||
BoxedNumber7 = 0xE096,
|
||||
BoxedNumber8 = 0xE097,
|
||||
BoxedNumber9 = 0xE098,
|
||||
BoxedNumber10 = 0xE099,
|
||||
BoxedNumber11 = 0xE09A,
|
||||
BoxedNumber12 = 0xE09B,
|
||||
BoxedNumber13 = 0xE09C,
|
||||
BoxedNumber14 = 0xE09D,
|
||||
BoxedNumber15 = 0xE09E,
|
||||
BoxedNumber16 = 0xE09F,
|
||||
BoxedNumber17 = 0xE0A0,
|
||||
BoxedNumber18 = 0xE0A1,
|
||||
BoxedNumber19 = 0xE0A2,
|
||||
BoxedNumber20 = 0xE0A3,
|
||||
BoxedNumber21 = 0xE0A4,
|
||||
BoxedNumber22 = 0xE0A5,
|
||||
BoxedNumber23 = 0xE0A6,
|
||||
BoxedNumber24 = 0xE0A7,
|
||||
BoxedNumber25 = 0xE0A8,
|
||||
BoxedNumber26 = 0xE0A9,
|
||||
BoxedNumber27 = 0xE0AA,
|
||||
BoxedNumber28 = 0xE0AB,
|
||||
BoxedNumber29 = 0xE0AC,
|
||||
BoxedNumber30 = 0xE0AD,
|
||||
BoxedNumber31 = 0xE0AE,
|
||||
|
||||
BoxedPlus = 0xE0AF,
|
||||
BoxedQuestionMark = 0xE070,
|
||||
BoxedStar = 0xE0C0,
|
||||
|
||||
BoxedRoman1 = 0xE0C1,
|
||||
BoxedRoman2 = 0xE0C2,
|
||||
BoxedRoman3 = 0xE0C3,
|
||||
BoxedRoman4 = 0xE0C4,
|
||||
BoxedRoman5 = 0xE0C5,
|
||||
BoxedRoman6 = 0xE0C6,
|
||||
|
||||
BoxedLetterA = 0xE071,
|
||||
BoxedLetterB = 0xE072,
|
||||
BoxedLetterC = 0xE073,
|
||||
BoxedLetterD = 0xE074,
|
||||
BoxedLetterE = 0xE075,
|
||||
BoxedLetterF = 0xE076,
|
||||
BoxedLetterG = 0xE077,
|
||||
BoxedLetterH = 0xE078,
|
||||
BoxedLetterI = 0xE079,
|
||||
BoxedLetterJ = 0xE07A,
|
||||
BoxedLetterK = 0xE07B,
|
||||
BoxedLetterL = 0xE07C,
|
||||
BoxedLetterM = 0xE07D,
|
||||
BoxedLetterN = 0xE07E,
|
||||
BoxedLetterO = 0xE07F,
|
||||
BoxedLetterP = 0xE080,
|
||||
BoxedLetterQ = 0xE081,
|
||||
BoxedLetterR = 0xE082,
|
||||
BoxedLetterS = 0xE083,
|
||||
BoxedLetterT = 0xE084,
|
||||
BoxedLetterU = 0xE085,
|
||||
BoxedLetterV = 0xE086,
|
||||
BoxedLetterW = 0xE087,
|
||||
BoxedLetterX = 0xE088,
|
||||
BoxedLetterY = 0xE089,
|
||||
BoxedLetterZ = 0xE08A,
|
||||
|
||||
Circle = 0xE04A,
|
||||
Square = 0xE04B,
|
||||
Cross = 0xE04C,
|
||||
Triangle = 0xE04D,
|
||||
Hexagon = 0xE042,
|
||||
Prohibited = 0xE043,
|
||||
|
||||
|
||||
Dice = 0xE03E,
|
||||
Debuff = 0xE05B,
|
||||
Buff = 0xE05C,
|
||||
CrossWorld = 0xE05D,
|
||||
|
||||
EurekaLevel = 0xE03A,
|
||||
|
||||
LinkMarker = 0xE0BB,
|
||||
|
||||
Glamoured = 0xE03B,
|
||||
GlamouredDyed = 0xE04E,
|
||||
|
||||
QuestSync = 0xE0BE,
|
||||
QuestRepeatable = 0xE0BF,
|
||||
|
||||
ImeHiragana = 0xE020,
|
||||
ImeKatakana = 0xE021,
|
||||
ImeAlphanumeric = 0xE022,
|
||||
ImeKatakanaHalfWidth = 0xE023,
|
||||
ImeAlphanumericHalfWidth = 0xE024,
|
||||
|
||||
Instance1 = 0xE0B1,
|
||||
Instance2 = 0xE0B2,
|
||||
Instance3 = 0xE0B3,
|
||||
Instance4 = 0xE0B4,
|
||||
Instance5 = 0xE0B5,
|
||||
Instance6 = 0xE0B6,
|
||||
Instance7 = 0xE0B7,
|
||||
Instance8 = 0xE0B8,
|
||||
Instance9 = 0xE0B9,
|
||||
InstanceMerged = 0xE0BA,
|
||||
|
||||
LocalTimeEn = 0xE0D0,
|
||||
ServerTimeEn = 0xE0D1,
|
||||
EorzeaTimeEn = 0xE0D2,
|
||||
LocalTimeDe = 0xE0D3,
|
||||
ServerTimeDe = 0xE0D4,
|
||||
EorzeaTimeDe = 0xE0D5,
|
||||
LocalTimeFr = 0xE0D6,
|
||||
ServerTimeFr = 0xE0D7,
|
||||
EorzeaTimeFr = 0xE0D8,
|
||||
LocalTimeJa = 0xE0D9,
|
||||
ServerTimeJa = 0xE0DA,
|
||||
EorzeaTimeJa = 0xE0DB,
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using System.Numerics;
|
||||
using Dalamud.Game.Chat;
|
||||
using Dalamud.Game.ClientState.Actors.Types;
|
||||
using Dalamud.Game.ClientState.Actors.Types.NonPlayer;
|
||||
using ImGuiNET;
|
||||
|
|
@ -15,8 +16,6 @@ namespace Dalamud.Interface
|
|||
|
||||
private int currentKind;
|
||||
|
||||
private const string FontTestString = "E000E010\nE020E030\nE040E050\nE060E070\nE080E090\nE0A0E0B0\nE0C0E0D0\nE0E0E0F0\nE100E110\nE120E130\nE140E150\nE160E170\nE180E190\nE1A0E1B0\nE1C0E1D0\nE1E0E1F0\nE200E210\nE220E230\nE240E250\nE260E270\nE280E290\nE2A0E2B0\nE2C0E2D0\nE2E0E2F0\nE300E310\nE320E330\nE340E350\nE360E370\nE380E390\nE3A0E3B0\nE3C0E3D0\nE3E0E3F0\nE400";
|
||||
|
||||
public DalamudDataWindow(Dalamud dalamud) {
|
||||
this.dalamud = dalamud;
|
||||
|
||||
|
|
@ -108,7 +107,12 @@ namespace Dalamud.Interface
|
|||
}
|
||||
break;
|
||||
case 3:
|
||||
ImGui.TextUnformatted(FontTestString);
|
||||
var specialChars = string.Empty;
|
||||
for (var i = 0xE020; i <= 0xE0DB; i++) {
|
||||
specialChars += $"0x{i:X} - {(SeIconChar) i} - {(char) i}\n";
|
||||
}
|
||||
|
||||
ImGui.TextUnformatted(specialChars);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue