mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 11:50:49 +00:00
addonbuttons: skip invalid button frames
This commit is contained in:
@@ -221,6 +221,7 @@ pfUI:RegisterModule("addonbuttons", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function BackupButton(frame)
|
local function BackupButton(frame)
|
||||||
|
if not frame then return end
|
||||||
if frame.backup == nil then
|
if frame.backup == nil then
|
||||||
frame.backup = {}
|
frame.backup = {}
|
||||||
frame.backup.top_frame_name = GetTopFrame(frame):GetName()
|
frame.backup.top_frame_name = GetTopFrame(frame):GetName()
|
||||||
@@ -273,6 +274,7 @@ pfUI:RegisterModule("addonbuttons", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function MoveButton(index, frame)
|
local function MoveButton(index, frame)
|
||||||
|
if not frame then return end
|
||||||
local top_frame, row_index, offsetX, offsetY, final_scale
|
local top_frame, row_index, offsetX, offsetY, final_scale
|
||||||
top_frame = GetTopFrame(frame)
|
top_frame = GetTopFrame(frame)
|
||||||
final_scale = GetScale() / pfUI.addonbuttons.effective_scale
|
final_scale = GetScale() / pfUI.addonbuttons.effective_scale
|
||||||
|
|||||||
Reference in New Issue
Block a user