Skip to content

Commit

Permalink
Fix lua
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Jul 26, 2024
1 parent 8a6a6ce commit afd7ffe
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Scoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ do
GameTooltip:SetOwner(frame, "ANCHOR_NONE")
GameTooltip:SetPoint("TOPLEFT", frame, "BOTTOMLEFT")
GameTooltip:ClearLines()
addon:updateTooltip(frame)
addon:updateTooltip()
GameTooltip:Show()
end,
OnLeave = function()
Expand Down Expand Up @@ -144,13 +144,6 @@ do
function addon:updateTooltip()
local size = C_CurrencyInfo.GetCurrencyListSize()

local function renderItem(name, count, icon, max)
local t = ""
t = t..fmtIcon(icon)..normal(name)..highlight(count)
if (mx and mx > 0) then t = t.."/"..mx end
return t
end

GameTooltip:AddLine(L["Scoreboard"].."\n")
if not addon.db.disableUsageText then
GameTooltip:AddLine(muted(L["usageDescription"]).."\n")
Expand All @@ -163,7 +156,7 @@ do
GameTooltip:AddLine(highlight(c.name).."\n")
end
else
if not c.isUnused then
if not c.isTypeUnused then
-- @todo stylize the count when nearing limit?
local ltext = fmtIcon(c.iconFileID)..c.name
local rtext = highlight(c.quantity)
Expand Down

0 comments on commit afd7ffe

Please sign in to comment.