Skip to content

Commit

Permalink
GUI: Updated the tooltip hooks to allow hiding untracked items
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Sep 14, 2024
1 parent 3c877a0 commit a6a4cb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/GUI/GameTooltipHooks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ local function onTooltipSetUnit(tooltip, data)
local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, itemSellPrice =
GetItemInfo(v.itemId)
if itemLink or itemName or v.name then
if v.known and R.db.profile.hideKnownItemsInTooltip then
if (v.known and R.db.profile.hideKnownItemsInTooltip) or (not v.enabled and R.db.profile.hideUntrackedItemsInTooltip) then
GameTooltip:Show()
else
if not blankAdded and R.db.profile.blankLineBeforeTooltipAdditions then
Expand Down Expand Up @@ -317,7 +317,7 @@ local function onTooltipSetUnit(tooltip, data)
local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, itemSellPrice =
GetItemInfo(vv.itemId)
if itemLink or itemName or vv.name then
if vv.known and R.db.profile.hideKnownItemsInTooltip then
if (vv.known and R.db.profile.hideKnownItemsInTooltip) or (not vv.enabled and R.db.profile.hideUntrackedItemsInTooltip) then
GameTooltip:Show()
else
if not blankAdded and R.db.profile.blankLineBeforeTooltipAdditions then
Expand Down Expand Up @@ -386,7 +386,7 @@ local function processItem(id, tooltip)
local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, itemSellPrice =
GetItemInfo(v.itemId)
if itemLink or itemName or v.name then
if v.known and R.db.profile.hideKnownItemsInTooltip then
if (v.known and R.db.profile.hideKnownItemsInTooltip) or (not v.enabled and R.db.profile.hideUntrackedItemsInTooltip) then
tooltip:Show()
else
if not blankAdded and R.db.profile.blankLineBeforeTooltipAdditions then
Expand Down Expand Up @@ -448,7 +448,7 @@ local function processItem(id, tooltip)
itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, itemSellPrice =
GetItemInfo(vv.itemId)
if itemLink or itemName or vv.name then
if vv.known and R.db.profile.hideKnownItemsInTooltip then
if (vv.known and R.db.profile.hideKnownItemsInTooltip) or (not vv.enabled and R.db.profile.hideUntrackedItemsInTooltip) then
tooltip:Show()
else
if
Expand Down

0 comments on commit a6a4cb1

Please sign in to comment.