Thank you very much for your help, Haste.
How would I go for disabling frames like party, partypets etc.? Just call :Hide() on the corresponding header? If I remember correctly, oUF does not update frames that are not visible, is this right?
What about changing between horizontal and vertical party flow? My code for the later is:
lua Code:
local party
if (cfg.showParty) then
if (cfg.horizParty) then
party = self:SpawnHeader(
"oUF_Rain_Party", nil, "party, raid",
"showParty", true,
"showRaid", true,
"maxColumns", 4,
"unitsPerColumn", 1,
"columnAnchorPoint", "LEFT",
"columnSpacing", 9.5,
"oUF-initialConfigFunction", ([[
self:SetWidth(110)
self:SetHeight(22)
self:SetAttribute("type3", "spell")
self:SetAttribute("spell3", "%s")
]]):format(spellName)
)
party:SetPoint("LEFT", UIParent, "BOTTOM", -231.25, 130)
else
party = self:SpawnHeader(
"oUF_Rain_Party", nil, "party, raid",
"showParty", true,
"showRaid", true,
"yOffset", -27.5,
"oUF-initialConfigFunction", ([[
self:SetWidth(110)
self:SetHeight(22)
self:SetAttribute("type3", "spell")
self:SetAttribute("spell3", "%s")
]]):format(spellName)
)
party:SetPoint("TOPLEFT", UIParent, 125, -25)
end
party:Show()
end
Also, is there a table or a function in oUF returning all enabled frames? I ask this as I have some elements I'd like the user to be able to change that are enabled on almost every frame (like debuff highlighting) and it would be then tedious to call :ForceUpdate on them through the global frame names and checking whether the element is enabled.