Fixed removing of keybinds from Stance and Pet bar
This commit is contained in:
@@ -203,6 +203,18 @@ function PetButtonPrototype:SetKey(key)
|
||||
SetBinding(key, format("BONUSACTIONBUTTON%d", self.id))
|
||||
end
|
||||
|
||||
function PetButtonPrototype:ClearBindings()
|
||||
local binding = format("BONUSACTIONBUTTON%d", self:GetID())
|
||||
while GetBindingKey(binding) do
|
||||
SetBinding(GetBindingKey(binding), nil)
|
||||
end
|
||||
|
||||
binding = "CLICK "..self:GetName()..":LeftButton"
|
||||
while GetBindingKey(binding) do
|
||||
SetBinding(GetBindingKey(binding), nil)
|
||||
end
|
||||
end
|
||||
|
||||
local actionTmpl = "Pet Button %d (%s)"
|
||||
function PetButtonPrototype:GetActionName()
|
||||
local id = self.id
|
||||
|
||||
@@ -134,6 +134,18 @@ function StanceButtonPrototype:SetKey(key)
|
||||
SetBinding(key, format("SHAPESHIFTBUTTON%d", self:GetID()))
|
||||
end
|
||||
|
||||
function StanceButtonPrototype:ClearBindings()
|
||||
local binding = format("SHAPESHIFTBUTTON%d", self:GetID())
|
||||
while GetBindingKey(binding) do
|
||||
SetBinding(GetBindingKey(binding), nil)
|
||||
end
|
||||
|
||||
binding = "CLICK "..self:GetName()..":LeftButton"
|
||||
while GetBindingKey(binding) do
|
||||
SetBinding(GetBindingKey(binding), nil)
|
||||
end
|
||||
end
|
||||
|
||||
local actionTmpl = "Stance Button %d (%s)"
|
||||
function StanceButtonPrototype:GetActionName()
|
||||
local id = self:GetID()
|
||||
|
||||
Reference in New Issue
Block a user