v1.0.8.0: Action Chat Link, hotbar job-specific persistence fix

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-01 23:40:50 -05:00
parent 9f41c18c0b
commit 78b37a3f15
9 changed files with 268 additions and 16 deletions
+19 -1
View File
@@ -621,7 +621,7 @@ namespace HSUI.Interface.GeneralElements
displaySlot->Set(slotType, id);
displaySlot->LoadIconId();
}
module->SetAndSaveSlot(barId, (uint)releaseIdx, slotType, id);
ActionBarsManager.SetAndSaveSlotInternal(module, barId, (uint)releaseIdx, slotType, id, displaySlot);
uint iconId = GetIconIdForPayload(slotType, id);
if (iconId == 0)
{
@@ -1050,6 +1050,24 @@ namespace HSUI.Interface.GeneralElements
return false;
}
/// <summary>Maps HoverActionKind to HotbarSlotType for tooltip lookups. Returns Empty if not supported.</summary>
public static RaptureHotbarModule.HotbarSlotType GetHotbarSlotTypeForHover(HoverActionKind kind) =>
GetHotbarSlotTypeFromHoverActionKind(kind);
/// <summary>
/// Gets tooltip (title, text, iconId) for an action when hovered in chat or elsewhere.
/// Used by global tooltip to show action details when hovering over linked actions in chat.
/// </summary>
public static (string title, string text, uint iconId)? GetActionTooltipForHover(RaptureHotbarModule.HotbarSlotType slotType, uint actionId)
{
if (actionId == 0) return null;
var slot = new ActionBarsManager.SlotInfo(0, false, true, 0, 0, actionId, slotType, "", 0, 0);
var (title, text) = GetSlotTooltip(slot);
if (string.IsNullOrEmpty(title) && string.IsNullOrEmpty(text)) return null;
uint iconId = GetIconIdForPayload(slotType, actionId);
return (title, string.IsNullOrEmpty(text) ? title : text, iconId);
}
private static RaptureHotbarModule.HotbarSlotType GetHotbarSlotTypeFromHoverActionKind(HoverActionKind kind)
{
return kind switch