Thread Tools Display Modes
12-11-09, 09:07 AM   #1
Jeaz
A Murloc Raider
 
Jeaz's Avatar
Join Date: Jul 2006
Posts: 6
Horizontal Raid look

Hey all,

I've spent half a day and a bit too long last night trying to get Zorks Roth UI to arrange raid groups horizontally instead of vertically.

I'm a lua noob and even worse on oUF so I'm sinking at the deep end atm.

I've managed to change so that the different groups start under eachother, but the members within each group is still vertical.

This part is where I've spend most of my tinkering, but in case it's anywhere else in the code I've also attached the lua.
Code:
  local raid = {}
  for i = 1, 8 do
    table.insert(raid, oUF:Spawn("header", "oUF_Raid"..i))
    if i == 1 then
      raid[i]:SetPoint("TOPLEFT", "oUF_D3Orbs_RaidDragFrame", "TOPLEFT", 20, 0)
    else
      raid[i]:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", -40, -45)    
    end
    raid[i]:SetManyAttributes("showRaid", true, "xOffset", 20, "groupFilter", i)
    raid[i]:Show()
  end
I really hope anyone can help me with this, would mean a lot to me to get this part right.


ps
If anyone cares for the reason why it's because I pretty much only raid 10-mans and only need 2 rows, which fit better into the UI as horizontal.
ds
Attached Files
File Type: zip oUF_D3OrbsRaid.lua.zip (3.1 KB, 641 views)
  Reply With Quote
12-11-09, 10:06 AM   #2
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
add this to SetManyAttributes

Code:
"point", "LEFT",
  Reply With Quote
12-11-09, 10:08 AM   #3
Jeaz
A Murloc Raider
 
Jeaz's Avatar
Join Date: Jul 2006
Posts: 6
Originally Posted by Freebaser View Post
add this to SetManyAttributes

Code:
"point", "LEFT",
Omg, was it that simple. Lol, thank you, saved me a lot of grey hairs.

Last edited by Jeaz : 12-11-09 at 10:08 AM. Reason: spelling
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Horizontal Raid look


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