mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update RegisterForClicks
This commit is contained in:
@@ -13,7 +13,7 @@ local NUM_BAG_FRAMES = NUM_BAG_FRAMES
|
||||
local TOTAL_BAGS = NUM_BAG_FRAMES + 2
|
||||
|
||||
local ElvUIKeyRing = CreateFrame("CheckButton", "ElvUIKeyRingButton", UIParent, "ItemButtonTemplate")
|
||||
ElvUIKeyRing:RegisterForClicks("anyUp")
|
||||
ElvUIKeyRing:RegisterForClicks("LeftButtonUp", "RightButtonUp")
|
||||
E:StripTextures(ElvUIKeyRing)
|
||||
ElvUIKeyRing:SetScript("OnClick", function() if CursorHasItem() then PutKeyInKeyRing() else ToggleKeyRing() end end)
|
||||
ElvUIKeyRing:SetScript("OnReceiveDrag", function() if CursorHasItem() then PutKeyInKeyRing() end end)
|
||||
|
||||
Reference in New Issue
Block a user