Thread Tools Display Modes
08-20-18, 03:51 AM   #1
Coldkil
A Cliff Giant
 
Coldkil's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 70
small help needed - raid frames

Hi, it's been a long time from the last i made my ui, so i'm currently developing a new design for BfA.

I'm working on raid frames - i simply don't remeber anymore how to spawn them correctly with the oUF:Spawn function. I'd like to have them spawned in this order:

1 . 2 . 3 . 4 . 5
6 . 7 . 8 . 9 . 10

etc.

Can anyone help with the needed syntax? I simply cannot find it around sorry for the noob question, here's a pic link for curious people (don't mind the aura buttons, it's a WIP).

https://i.imgur.com/8eDE99Y.jpg
  Reply With Quote
08-20-18, 07:56 AM   #2
runamonk
A Theradrim Guardian
 
runamonk's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 61
This should get you started. Added party just in case you want/need that as well.

Lua Code:
  1. self:SpawnHeader('party', nil, 'solo,party',
  2.         'showParty', true,
  3.         'showPlayer', false,
  4.         'showRaid', false,
  5.         'yOffset', -3,
  6.         'oUF-initialConfigFunction', [[ self:SetHeight(20) self:SetWidth(200) ]]
  7.     ):SetPoint('TOPLEFT', 25, -50)
  8. self:SpawnHeader('raid', nil, 'raid',
  9.         'showRaid', true,
  10.         'showSolo', false,
  11.         'showPlayer', true,
  12.         'showParty', false,
  13.         'yOffset', -3,
  14.         'groupFilter', '1,2,3,4,5,6,7,8',
  15.         'groupBy', 'ASSIGNEDROLE',
  16.         'groupingOrder', 'MAINTANK, MAINASSIST, TANK, HEALER, DAMAGER, NONE',
  17.         'maxColumns', 2,
  18.         'unitsPerColumn', 40,
  19.         'columnSpacing', 5,
  20.         'point', 'TOP',
  21.         'startingIndex',1,
  22.         'columnAnchorPoint', 'LEFT',
  23.         'oUF-initialConfigFunction', [[ self:SetHeight(20) self:SetWidth(200) ]]
  24.     ):SetPoint('TOPLEFT', nil, 25, -150)

Last edited by runamonk : 08-20-18 at 08:11 AM.
  Reply With Quote
08-21-18, 02:17 AM   #3
Coldkil
A Cliff Giant
 
Coldkil's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 70
Thanks a lot - i'll edit the various options so i can see what they do and make some comments to keep my memory fresh

As for party, i decided not to use it since raid frames are fine enough for now, may decide later on to add it (i'll need just to change the visibility trigger).
  Reply With Quote
08-21-18, 02:38 AM   #4
runamonk
A Theradrim Guardian
 
runamonk's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 61
That's how most people do it as well. I just like my party seperate, but all together works just fine.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » small help needed - raid frames

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off