mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 08:36:04 +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.frames = {}
|
||||
|
||||
local pfValidUnits = {}
|
||||
pfValidUnits["player"] = true
|
||||
@@ -553,6 +554,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
||||
end
|
||||
end
|
||||
|
||||
table.insert(pfUI.uf.frames, f)
|
||||
return f
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user