mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 03:40:49 +00:00
actionbar: update/save macros on button action
This commit is contained in:
@@ -413,6 +413,10 @@ pfUI:RegisterModule("actionbar", 20400, function ()
|
|||||||
local function ButtonDragStop(self)
|
local function ButtonDragStop(self)
|
||||||
local self = self or this
|
local self = self or this
|
||||||
|
|
||||||
|
if MacroFrame_SaveMacro then
|
||||||
|
MacroFrame_SaveMacro()
|
||||||
|
end
|
||||||
|
|
||||||
if self.bar == 12 then
|
if self.bar == 12 then
|
||||||
PickupPetAction(self.id)
|
PickupPetAction(self.id)
|
||||||
else
|
else
|
||||||
@@ -464,6 +468,10 @@ pfUI:RegisterModule("actionbar", 20400, function ()
|
|||||||
TogglePetAutocast(self.id)
|
TogglePetAutocast(self.id)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if MacroFrame_SaveMacro then
|
||||||
|
MacroFrame_SaveMacro()
|
||||||
|
end
|
||||||
|
|
||||||
UseAction(self.id)
|
UseAction(self.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user