v1.0.8.0: Action Chat Link, hotbar job-specific persistence fix
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user