forked from Slothpala/RaidFrameSettings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoster.lua
More file actions
executable file
·33 lines (28 loc) · 771 Bytes
/
Roster.lua
File metadata and controls
executable file
·33 lines (28 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--[[Created by Slothpala]]--
local _, addonTable = ...
local addon = addonTable.addon
--------------------
--- Libs & Utils ---
--------------------
local UnitCache = addonTable.UnitCache
------------------
--- CUF Frames ---
------------------
function addon:IterateMiniRoster(callback, req_frame_env)
CompactRaidFrameContainer:ApplyToFrames("mini", function(cuf_frame)
if req_frame_env and not cuf_frame.RFS_FrameEnvironment then
-- skip
else
callback(cuf_frame)
end
end)
end
function addon:IterateRoster(callback, req_frame_env)
CompactRaidFrameContainer:ApplyToFrames("normal", function(cuf_frame)
if req_frame_env and not cuf_frame.RFS_FrameEnvironment then
-- skip
else
callback(cuf_frame)
end
end)
end