PvP nameplates: correct GC icons (62601/62602/62603), configurable GC IDs, Role/Job icon for enemy players
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1327,6 +1327,34 @@ namespace HSUI.Interface.GeneralElements
|
||||
}
|
||||
}
|
||||
|
||||
if (slot.SlotType == RaptureHotbarModule.HotbarSlotType.MainCommand ||
|
||||
slot.SlotType == RaptureHotbarModule.HotbarSlotType.ExtraCommand)
|
||||
{
|
||||
if (Plugin.DataManager.GetExcelSheet<MainCommand>()?.TryGetRow(slot.ActionId, out var mcRow) == true)
|
||||
{
|
||||
string name = mcRow.Name.ToString();
|
||||
string desc = "";
|
||||
try
|
||||
{
|
||||
string descRaw = mcRow.Description.ToDalamudString().ToString();
|
||||
if (!string.IsNullOrEmpty(descRaw))
|
||||
{
|
||||
try
|
||||
{
|
||||
var evaluated = Plugin.SeStringEvaluator.Evaluate(mcRow.Description.AsSpan());
|
||||
desc = evaluated.ExtractText();
|
||||
if (string.IsNullOrEmpty(desc)) desc = descRaw;
|
||||
}
|
||||
catch { desc = descRaw; }
|
||||
if (!string.IsNullOrEmpty(desc))
|
||||
desc = EncryptedStringsHelper.GetString(desc);
|
||||
}
|
||||
}
|
||||
catch { /* ignore */ }
|
||||
return (name, desc ?? "");
|
||||
}
|
||||
}
|
||||
|
||||
return (slot.SlotType.ToString(), "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user