mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 01:30:50 +00:00
unitframes: maintain an available unitframe index
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
pfUI.uf = CreateFrame("Frame",nil,UIParent)
|
pfUI.uf = CreateFrame("Frame",nil,UIParent)
|
||||||
|
pfUI.uf.frames = {}
|
||||||
|
|
||||||
local pfValidUnits = {}
|
local pfValidUnits = {}
|
||||||
pfValidUnits["player"] = true
|
pfValidUnits["player"] = true
|
||||||
@@ -553,6 +554,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.insert(pfUI.uf.frames, f)
|
||||||
return f
|
return f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user