Skip to content

Commit

Permalink
Fix text on renown statusbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Dec 8, 2022
1 parent 25d06e7 commit 010d019
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Modules/Artwork/StatusBars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ local SetBarColor = function(self, side)
end

local updateText = function(self)
if GetRealmName() == 'arctium.io' then
return
end
-- local FrameName = self:GetName()
-- Reset graphics to avoid issues
self.Fill:SetWidth(0.1)
Expand Down Expand Up @@ -150,9 +147,9 @@ local updateText = function(self)
elseif isMajorFaction then
local majorFactionData = C_MajorFactions.GetMajorFactionData(factionID)

valFill, valMax = 0, majorFactionData.renownLevelThreshold
current = C_MajorFactions.HasMaximumRenown(factionID) and majorFactionData.renownLevelThreshold or majorFactionData.renownReputationEarned or 0
valPercent = (current / valMax) * 100
valMax = majorFactionData.renownLevelThreshold
valFill = C_MajorFactions.HasMaximumRenown(factionID) and majorFactionData.renownLevelThreshold or majorFactionData.renownReputationEarned or 0
valPercent = (valFill / valMax) * 100
end
end
elseif (module.DB[side].display == 'az') then
Expand Down Expand Up @@ -409,9 +406,6 @@ function module:factory()
statusbar:SetScript(
'OnEnter',
function()
if GetRealmName() == 'arctium.io' then
return
end
if module.DB[i].display == 'rep' and module.DB[i].ToolTip == 'hover' then
showRepTooltip(statusbar)
end
Expand All @@ -429,9 +423,6 @@ function module:factory()
statusbar:SetScript(
'OnMouseDown',
function()
if GetRealmName() == 'arctium.io' then
return
end
if module.DB[i].display == 'rep' and module.DB[i].ToolTip == 'click' then
showRepTooltip(statusbar)
end
Expand Down

0 comments on commit 010d019

Please sign in to comment.