You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--If it doesn't fit on the current row, move to the next.if ( object=="linebreak" or--Force a new linetype(object) =="table" and--Make sure this is an actual object before checking further.
((container.flowMaxPerLineandcurrentPrimaryLine>container.flowMaxPerLine) or--We went past the max number of columnscurrentSecondaryOffset+object["Get"..primaryDirection](object) >container["Get"..primaryDirection](container)) ) then--We went past the max pixel width.if ( not (atomicAddStartandatomicAtBeginning) ) then--If we're in an atomic add and we started at the beginning of the line, wrapping won't help uscurrentSecondaryOffset=0; --Move back all the way to the leftcurrentPrimaryLine=1; --Reset column countcurrentPrimaryOffset=currentPrimaryOffset+lineMaxSize+secondarySpacing; --Move down by the size of the biggest object in the last rowcurrentSecondaryLine=currentSecondaryLine+1; --Move to the next row.lineMaxSize=0;
if ( atomicAddStart ) then--We wrapped around. So we want to move back to the first item in the atomic add and continue from the position we're leaving off (the new line).i=atomicAddStart;
atomicAtBeginning=true;
doContinue=true;
endendendif ( nameand
((notstrictFiltering) and
( tokenTable[subgroup] ortokenTable[className] or (roleandtokenTable[role]) ortokenTable[assignedRole] ) -- non-strict filtering
) or
( tokenTable[subgroup] andtokenTable[className] and ((roleandtokenTable[role]) ortokenTable[assignedRole]) ) -- strict filtering
) thentinsert(sortingTable, unit);
sortingTable[unit] =name;
if ( groupBy=="GROUP" ) thengroupingTable[unit] =subgroup;
elseif ( groupBy=="CLASS" ) thengroupingTable[unit] =className;
elseif ( groupBy=="ROLE" ) thengroupingTable[unit] =role;
elseif ( groupBy=="ASSIGNEDROLE" ) thengroupingTable[unit] =assignedRole;
endend
... gets formatted as ...
--If it doesn't fit on the current row, move to the next.ifobject=="linebreak" --Force a new lineortype(object) =="table" --Make sure this is an actual object before checking further.and ((container.flowMaxPerLineandcurrentPrimaryLine>container.flowMaxPerLine) or--We went past the max number of columnscurrentSecondaryOffset + object["Get" .. primaryDirection](object
) >container["Get" ..primaryDirection](container))
then--We went past the max pixel width.ifnot (atomicAddStartandatomicAtBeginning) then--If we're in an atomic add and we started at the beginning of the line, wrapping won't help uscurrentSecondaryOffset=0--Move back all the way to the leftcurrentPrimaryLine=1--Reset column countcurrentPrimaryOffset=currentPrimaryOffset+lineMaxSize+secondarySpacing--Move down by the size of the biggest object in the last rowcurrentSecondaryLine=currentSecondaryLine+1--Move to the next row.lineMaxSize=0ifatomicAddStartthen--We wrapped around. So we want to move back to the first item in the atomic add and continue from the position we're leaving off (the new line).i=atomicAddStartatomicAtBeginning=truedoContinue=trueendendendifnameand (notstrictFilteringand (tokenTable[subgroup] ortokenTable[className] or (roleandtokenTable[role]) ortokenTable[assignedRole]) -- non-strict filtering)or (tokenTable[subgroup] andtokenTable[className] and ((roleandtokenTable[role]) ortokenTable[assignedRole])) -- strict filteringthentinsert(sortingTable, unit)
sortingTable[unit] =nameifgroupBy=="GROUP" thengroupingTable[unit] =subgroupelseifgroupBy=="CLASS" thengroupingTable[unit] =classNameelseifgroupBy=="ROLE" thengroupingTable[unit] =roleelseifgroupBy=="ASSIGNEDROLE" thengroupingTable[unit] =assignedRoleendend
The text was updated successfully, but these errors were encountered:
Source: https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/FlowContainer.lua
Source: https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/SecureGroupHeaders.lua
... gets formatted as ...
The text was updated successfully, but these errors were encountered: