From d20fd7d4ff52fe1397a6c802cf23c46aa8d885d9 Mon Sep 17 00:00:00 2001 From: Repooc Date: Thu, 6 Mar 2014 22:02:57 -0500 Subject: [PATCH] Remove Darths debug msg and reorganize his gem hiding slightly --- .../modules/characterframe/characterframe.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ElvUI_SLE/modules/characterframe/characterframe.lua b/ElvUI_SLE/modules/characterframe/characterframe.lua index b9df110..2e0ef06 100755 --- a/ElvUI_SLE/modules/characterframe/characterframe.lua +++ b/ElvUI_SLE/modules/characterframe/characterframe.lua @@ -216,7 +216,7 @@ end function CFO:ArmoryFrame_DataSetting() if not f:IsVisible() then return end local BGdrop = E.db.sle.characterframeoptions.image.dropdown - local fuck = true + -- Get Player Profession local Prof1, Prof2 = GetProfessions() local Prof1_Level, Prof2_Level = 0, 0 @@ -297,7 +297,6 @@ function CFO:ArmoryFrame_DataSetting() end -- Apply current item's gem setting - for i = 1, MAX_NUM_SOCKETS do ItemTexture = _G['KnightArmoryScanTT_E1Texture'..i]:GetTexture() GemID = select(i, GetInventoryItemGems(Slot.ID)) @@ -312,18 +311,15 @@ function CFO:ArmoryFrame_DataSetting() end if ItemTexture then - if E.db.sle.characterframeoptions.itemgem.show then - Slot['Socket'..i]:Show() - else - Slot['Socket'..i]:Hide() - end - GemTotal_2 = GemTotal_2 + 1 if E.db.sle.characterframeoptions.itemgem.show then + Slot['Socket'..i]:Show() Slot.SocketWarning:Point(Slot.Direction, Slot['Socket'..i], (Slot.Direction == 'LEFT' and 'RIGHT' or 'LEFT'), Slot.Direction == 'LEFT' and 3 or -3, 0) else + Slot['Socket'..i]:Hide() Slot.SocketWarning:Point(Slot.Direction, Slot['Socket1'], (Slot.Direction == 'LEFT' and 'LEFT' or 'RIGHT'), 0, 0) end - + GemTotal_2 = GemTotal_2 + 1 + if GemID then GemCount = GemCount + 1 Slot['Socket'..i].Texture:SetTexture(ItemTexture) @@ -332,7 +328,6 @@ function CFO:ArmoryFrame_DataSetting() end end end - end _, _, ItemRarity, BasicItemLevel, _, _, _, _, _, ItemTexture = GetItemInfo(ItemLink) -- 1.7.9.5