Skip to content

Commit

Permalink
fix ilvl statusbar overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Aug 2, 2022
1 parent cbee678 commit 619180e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ElvUI_EltreumUI/Modules/Skins/CharacterPanelSkin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ if not E.Retail then
avgilvl:RegisterEvent("PLAYER_ENTERING_WORLD")
avgilvl:RegisterEvent("PLAYER_EQUIPMENT_CHANGED")
avgilvl:SetScript("OnEvent", function()
local ilevel = ElvUI_EltreumUI:GetPlayerItemLevel()
_G.CharacterFrame.Text2:SetText((math.floor(ilevel*100))/100)
--_G.CharacterFrame.Text2:SetText((math.floor(ElvUI_EltreumUI:GetPlayerItemLevel()*100))/100)
_G.CharacterFrame.Text2:SetText((math.floor(ElvUI_EltreumUI:GetPlayerItemLevel()*100))/100)
end)

if E.Wrath then
Expand Down Expand Up @@ -1038,8 +1036,7 @@ function ElvUI_EltreumUI:ExpandedCharacterStats()

--set ilvl on char panel
hooksecurefunc("ToggleCharacter", function()
local ilevel = ElvUI_EltreumUI:GetPlayerItemLevel()
_G.CharacterFrame.Text2:SetText((math.floor(ilevel*100))/100)
_G.CharacterFrame.Text2:SetText((math.floor(ElvUI_EltreumUI:GetPlayerItemLevel()*100))/100)
end)

--set the tabs
Expand Down Expand Up @@ -1165,7 +1162,8 @@ function ElvUI_EltreumUI:ExpandedCharacterStats()
CharacterFrame.Text2:SetParent(_G["PaperDollItemsFrame"])
CharacterFrame.Text2:SetTextColor(classcolor.r, classcolor.g, classcolor.b, 1)
CharacterFrame.Text2:SetFont(E.LSM:Fetch("font", E.db.general.font), 18, E.db.general.fontStyle)
--CharacterFrame.StatusLine2:SetFrameStrata("LOW")
CharacterFrame.StatusLine2:SetFrameStrata("MEDIUM")
CharacterFrame.StatusLine2:SetFrameLevel(1)
CharacterFrame.StatusLine2:SetSize(170, 25)
CharacterFrame.StatusLine2:SetPoint("CENTER", CharacterFrame.Text2, "CENTER", 0, 0)
CharacterFrame.StatusLine2:SetParent(_G["PaperDollItemsFrame"])
Expand Down

0 comments on commit 619180e

Please sign in to comment.