A Molten Giant
Join Date: Dec 2009
Posts: 784
|
Originally Posted by Layback_
Hi all,
I would like to ask some questions regarding "SecureGroupHeaders" template.
So, I was trying to make raid frames with oUF, but seems like these questions are more related to "SecureGroupHeaders" template and its configuration attributes.
Here's what it currently looks like:
* Name texts are hidden at the moement
and here's a code:
Lua Code:
C.Raid26to40 = oUF:SpawnHeader( "Raid26to40", nil, "custom [@raid26, exists] show; hide", -- attributes "initial-width", G["unitframe"]["raid"]["width"], "initial-height", G["unitframe"]["raid"]["height"], "oUF-initialConfigFunction", [[ local header = self:GetParent(); self:SetWidth(header:GetAttribute("initial-width")); self:SetHeight(header:GetAttribute("initial-height")); ]], "showRaid", true, "showParty", false, "showPlayer", true, "showSolo", false, "point", "LEFT", "xOffset", 8, "maxColumns", 8, "unitsPerColumn", 5, "columnAnchorPoint", "TOP", "columnSpacing", 8, "groupBy", "GROUP", "groupFilter", "1,2,3,4,5,6,7,8", "groupingOrder", "1,2,3,4,5,6,7,8" ); C.Raid26to40:SetPoint(unpack(G["unitframe"]["raid"]["point"]));
1. So, each column represents each group (or party), but once the player leaves or joins a raid group, the order just gets messed up.
(For example, when the member from Group 4 leaves, all other raid members behind that person gets pushed forward. So, even a person from Group 5 is forcibly displayed on Group 4...)
2. Just like a default raid frames, I would like make each group grows vertically rather than the one shown above, but I ain't sure where or which configuration attribute I should actually modify to achieve this.
(EXTRA) 3. Would there be any possible way to count the size of such table?
Lua Code:
local table = {}; table.ABC = "ABC"; table.DEF = "DEF"; table.GHI = "GHI";
I've tried with #table and select("#", table), but none of them seemed to be working.
|
Heres what i've been using hope it helps in some way
Lua Code:
local Aftermathh_Raid25 = oUF:SpawnHeader(nil, nil, "solo,party,raid", "showPlayer", true, "showRaid", true, "showParty", true, "showSolo", true, "xoffset", 4, "yOffset", -4, "point", "LEFT", "columnAnchorPoint", "TOP", "groupFilter", "1,2,3,4,5,6,7,8", "groupingOrder", "1,2,3,4,5,6,7,8", "groupBy", "GROUP", "sortMethod", "GROUP", "maxColumns", 8, "unitsPerColumn", 5, "columnSpacing", 4, "oUF-initialConfigFunction", [[ self:SetWidth(62) self:SetHeight(40) self:SetScale(1) ]] ) Aftermathh_Raid25:SetPoint("LEFT", UIParent, 221, 15)
|