mirror of
https://github.com/parnic/breakables.git
synced 2025-06-17 01:41:51 -05:00
Fix buttons not working on 10.0
This commit is contained in:
@ -932,7 +932,7 @@ function Breakables:CreateButtonFrame()
|
|||||||
frame:SetHeight(buttonSize)
|
frame:SetHeight(buttonSize)
|
||||||
|
|
||||||
frame:EnableMouse(true)
|
frame:EnableMouse(true)
|
||||||
frame:RegisterForClicks("LeftButtonUp")
|
frame:RegisterForClicks("LeftButtonUp", "LeftButtonDown")
|
||||||
|
|
||||||
if not frame.OnMouseDownFunc then
|
if not frame.OnMouseDownFunc then
|
||||||
frame.OnMouseDownFunc = function(frame) self:OnMouseDown(frame) end
|
frame.OnMouseDownFunc = function(frame) self:OnMouseDown(frame) end
|
||||||
@ -1106,7 +1106,7 @@ function Breakables:FindBreakables(bag)
|
|||||||
btn:SetWidth(buttonSize)
|
btn:SetWidth(buttonSize)
|
||||||
btn:SetHeight(buttonSize)
|
btn:SetHeight(buttonSize)
|
||||||
btn:EnableMouse(true)
|
btn:EnableMouse(true)
|
||||||
btn:RegisterForClicks("AnyUp")
|
btn:RegisterForClicks("LeftButtonUp", "LeftButtonDown")
|
||||||
|
|
||||||
btn:SetAttribute("type1", "spell")
|
btn:SetAttribute("type1", "spell")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user