mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user