mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update
This commit is contained in:
@@ -84,6 +84,7 @@ function AB:BindListener(key)
|
|||||||
local alt = IsAltKeyDown() and "ALT-" or ""
|
local alt = IsAltKeyDown() and "ALT-" or ""
|
||||||
local ctrl = IsControlKeyDown() and "CTRL-" or ""
|
local ctrl = IsControlKeyDown() and "CTRL-" or ""
|
||||||
local shift = IsShiftKeyDown() and "SHIFT-" or ""
|
local shift = IsShiftKeyDown() and "SHIFT-" or ""
|
||||||
|
|
||||||
if not bind.spellmacro or bind.spellmacro == "PET" or bind.spellmacro == "SHAPESHIFT" then
|
if not bind.spellmacro or bind.spellmacro == "PET" or bind.spellmacro == "SHAPESHIFT" then
|
||||||
SetBinding(alt..ctrl..shift..key, bind.button.bindstring)
|
SetBinding(alt..ctrl..shift..key, bind.button.bindstring)
|
||||||
else
|
else
|
||||||
@@ -118,7 +119,7 @@ function AB:BindUpdate(button, spellmacro)
|
|||||||
bind.button.name = GetMacroInfo(bind.button.id)
|
bind.button.name = GetMacroInfo(bind.button.id)
|
||||||
|
|
||||||
GameTooltip:SetOwner(bind, "ANCHOR_TOP")
|
GameTooltip:SetOwner(bind, "ANCHOR_TOP")
|
||||||
E:Point(GameTooltip, "BOTTOM", bind, "TOP", 0, 1)
|
GameTooltip:SetPoint("BOTTOM", bind, "TOP", 0, 1)
|
||||||
GameTooltip:AddLine(bind.button.name, 1, 1, 1)
|
GameTooltip:AddLine(bind.button.name, 1, 1, 1)
|
||||||
|
|
||||||
bind.button.bindings = {GetBindingKey(spellmacro.." "..bind.button.name)}
|
bind.button.bindings = {GetBindingKey(spellmacro.." "..bind.button.name)}
|
||||||
|
|||||||
Reference in New Issue
Block a user