diff --git a/ElvUI/Modules/ActionBars/Bind.lua b/ElvUI/Modules/ActionBars/Bind.lua index f01fd08..69c0bea 100644 --- a/ElvUI/Modules/ActionBars/Bind.lua +++ b/ElvUI/Modules/ActionBars/Bind.lua @@ -122,7 +122,7 @@ function AB:BindUpdate(button, spellmacro) GameTooltip:AddLine(bind.button.name, 1, 1, 1) bind.button.bindings = {GetBindingKey(spellmacro.." "..bind.button.name)} - if getn(bind.button.bindings == 0) then + if getn(bind.button.bindings) == 0 then GameTooltip:AddLine(L["No bindings set."], .6, .6, .6) else GameTooltip:AddDoubleLine(L["Binding"], L["Key"], .6, .6, .6, .6, .6, .6) @@ -226,7 +226,7 @@ function AB:RegisterMacro(addon) if addon == "Blizzard_MacroUI" then for i = 1, MAX_MACROS do local b = _G["MacroButton"..i] - HookScript(b, "OnEnter", function() AB:BindUpdate(this, "MACRO") end) + HookScript(b, "OnEnter", function() self:BindUpdate(b, "MACRO") end) end end end diff --git a/ElvUI/Modules/Blizzard/ColorPicker.lua b/ElvUI/Modules/Blizzard/ColorPicker.lua index 4af5542..f339fad 100644 --- a/ElvUI/Modules/Blizzard/ColorPicker.lua +++ b/ElvUI/Modules/Blizzard/ColorPicker.lua @@ -255,15 +255,15 @@ function B:EnhanceColorPicker() -- set up scripts to handle event appropriately if i == 5 then - box:SetScript("OnEscapePressed", function() this:ClearFocus() UpdateAlphaText() end) + box:SetScript("OnEscapePressed", function() this:ClearFocus() UpdateAlphaText() end) box:SetScript("OnEnterPressed", function() this:ClearFocus() UpdateAlphaText() end) else - box:SetScript("OnEscapePressed", function() this:ClearFocus() UpdateColorTexts() end) + box:SetScript("OnEscapePressed", function() this:ClearFocus() UpdateColorTexts() end) box:SetScript("OnEnterPressed", function() this:ClearFocus() UpdateColorTexts() end) end box:SetScript("OnEditFocusGained", function() this:HighlightText() end) - box:SetScript("OnEditFocusLost", function() this:HighlightText(0,0) end) + box:SetScript("OnEditFocusLost", function() this:HighlightText(0,0) end) box:SetScript("OnTextSet", function() this:ClearFocus() end) box:Show() end diff --git a/ElvUI/Modules/Skins/Blizzard/Loot.lua b/ElvUI/Modules/Skins/Blizzard/Loot.lua index 343a1fb..d9fbeef 100644 --- a/ElvUI/Modules/Skins/Blizzard/Loot.lua +++ b/ElvUI/Modules/Skins/Blizzard/Loot.lua @@ -94,14 +94,14 @@ local function LoadRollSkin() if E.private.general.lootRoll then return end if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.lootRoll then return end - local function OnShow(self) - E:SetTemplate(self, "Transparent") + local function OnShow() + E:SetTemplate(this, "Transparent") - local cornerTexture = _G[self:GetName().."Corner"] + local cornerTexture = _G[this:GetName().."Corner"] cornerTexture:SetTexture() - local iconFrame = _G[self:GetName().."IconFrame"] - local _, _, _, quality = GetLootRollItemInfo(self.rollID) + local iconFrame = _G[this:GetName().."IconFrame"] + local _, _, _, quality = GetLootRollItemInfo(this.rollID) iconFrame:SetBackdropBorderColor(GetItemQualityColor(quality)) end