v1.0.6.0: Tooltip icons for action bars, status effects, party cooldowns; World Object Tooltip quest/NPC icons
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -364,7 +364,7 @@ namespace HSUI.Interface.GeneralElements
|
||||
if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(text))
|
||||
{
|
||||
string body = string.IsNullOrEmpty(text) ? title : text;
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(body, title, slot.ActionId, "");
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(body, title, slot.ActionId, "", slot.IconId > 0 ? slot.IconId : null);
|
||||
if (IsTooltipDebugEnabled())
|
||||
Plugin.Logger.Information($"[HSUI Tooltip DBG] ActionBar tooltip (main overlay): slot={i} title='{title}'");
|
||||
}
|
||||
@@ -423,7 +423,7 @@ namespace HSUI.Interface.GeneralElements
|
||||
if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(text))
|
||||
{
|
||||
string body = string.IsNullOrEmpty(text) ? title : text;
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(body, title, slot.ActionId, "");
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(body, title, slot.ActionId, "", slot.IconId > 0 ? slot.IconId : null);
|
||||
if (IsTooltipDebugEnabled())
|
||||
Plugin.Logger.Information($"[HSUI Tooltip DBG] ActionBar tooltip (overlay): slot={i} title='{title}'");
|
||||
}
|
||||
|
||||
@@ -283,10 +283,13 @@ namespace HSUI.Interface.Party
|
||||
// tooltip
|
||||
if (Config.ShowTooltips)
|
||||
{
|
||||
uint? iconId = hoveringCooldown.Data.IconId > 0 ? hoveringCooldown.Data.IconId : null;
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(
|
||||
hoveringCooldown.TooltipText(),
|
||||
hoveringCooldown.Data.Name,
|
||||
hoveringCooldown.Data.ActionId
|
||||
hoveringCooldown.Data.ActionId,
|
||||
"",
|
||||
iconId
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -304,10 +304,13 @@ namespace HSUI.Interface.PartyCooldowns
|
||||
pos = origin + new Vector2(pos.X - size.Y + 1, pos.Y);
|
||||
if (Config.ShowTooltips && ImGui.IsMouseHoveringRect(pos, pos + _barConfig.Size))
|
||||
{
|
||||
uint? iconId = cooldown.Data.IconId > 0 ? cooldown.Data.IconId : null;
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(
|
||||
cooldown.TooltipText(),
|
||||
cooldown.Data.Name,
|
||||
cooldown.Data.ActionId
|
||||
cooldown.Data.ActionId,
|
||||
"",
|
||||
iconId
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -468,11 +468,13 @@ namespace HSUI.Interface.StatusEffects
|
||||
// tooltip
|
||||
if (Config.ShowTooltips)
|
||||
{
|
||||
uint? iconId = data.Data.Icon > 0 ? data.Data.Icon : null;
|
||||
TooltipsHelper.Instance.ShowTooltipOnCursor(
|
||||
EncryptedStringsHelper.GetString(data.Data.Description.ToDalamudString().ToString()),
|
||||
EncryptedStringsHelper.GetString(data.Data.Name.ToString()),
|
||||
data.Status.StatusId,
|
||||
GetStatusActorName(data.Status)
|
||||
GetStatusActorName(data.Status),
|
||||
iconId
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user