Thread Tools Display Modes
02-17-12, 07:47 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Diffrent Raid Layouts for 25man and 40man

Is there anyway to spawn a diffrent layout for more players than 25 players.
and then a raidlayout just for 25 players?
  Reply With Quote
02-17-12, 08:05 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
http://code.google.com/p/rothui/sour...2/core.lua#247

You can achieve this by using different visibility attributes for the raid group headers that will only activate one raid spawn at a time.

Example of a visibility attribute
Code:
      "custom [@raid11,exists] hide; [@raid1,exists] show; hide",
Actually the same as yj589794 told you already. The addition is that you register a new style before raid spawn.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-17-12 at 08:10 AM.
  Reply With Quote
02-17-12, 08:24 AM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by zork View Post
http://code.google.com/p/rothui/sour...2/core.lua#247

You can achieve this by using different visibility attributes for the raid group headers that will only activate one raid spawn at a time.

Example of a visibility attribute
Code:
      "custom [@raid11,exists] hide; [@raid1,exists] show; hide",
Actually the same as yj589794 told you already. The addition is that you register a new style before raid spawn.
Ahh, i see thanks zork

LUA Code:
  1. if AftermathhUI.ouf.showraid == true then
  2.     if AftermathhUI.ouf.gridlayout == true then
  3.         oUF:RegisterStyle('Aftermathh_Raid25', RaidFrames)
  4.         oUF:SetActiveStyle('Aftermathh_Raid25')
  5.        
  6.         local Aftermathh_Raid25 = oUF:SpawnHeader("Aftermathh_Raid25", nil, "custom [@raid26,exists] hide; [@raid1,exists] show; hide, solo,party,raid",
  7.             'showPlayer', true,
  8.             'showRaid', true,
  9.             'showParty', true,
  10.             'showSolo', true,
  11.             'xoffset', 7,
  12.             'yOffset', 0,
  13.             'point', 'LEFT',
  14.             'groupFilter', '1,2,3,4,5,6,7,8',
  15.             'groupingOrder', '1,2,3,4,5,6,7,8',
  16.             'groupBy', 'GROUP',        
  17.             'maxColumns', 5,
  18.             'unitsPerColumn', 5,
  19.             'columnSpacing', 6,
  20.             'columnAnchorPoint', 'TOP',
  21.             'oUF-initialConfigFunction', [[
  22.                 self:SetWidth(59)
  23.                 self:SetHeight(38)
  24.                 self:SetScale(1)
  25.             ]]
  26.         )
  27.         Aftermathh_Raid25:SetPoint('LEFT', UIParent, 221, -54)
  28.        
  29.         oUF:RegisterStyle('Aftermathh_Raid40', RaidFrames)
  30.         oUF:SetActiveStyle('Aftermathh_Raid40')
  31.        
  32.         local Aftermathh_Raid40 = oUF:SpawnHeader("AftermathhRaid_40", nil, "custom [@raid26,exists] show; hide, solo,party,raid",
  33.             'showPlayer', true,
  34.             'showRaid', true,
  35.             'showParty', true,
  36.             'showSolo', true,
  37.             'xoffset', 7,
  38.             'yOffset', 0,
  39.             'point', 'LEFT',
  40.             'groupFilter', '1,2,3,4,5,6,7,8',
  41.             'groupingOrder', '1,2,3,4,5,6,7,8',
  42.             'groupBy', 'GROUP',        
  43.             'maxColumns', 12,
  44.             'unitsPerColumn', 5,
  45.             'columnSpacing', 6,
  46.             'columnAnchorPoint', 'TOP',
  47.             'oUF-initialConfigFunction', [[
  48.                 self:SetWidth(59)
  49.                 self:SetHeight(38)
  50.                 self:SetScale(1)
  51.             ]]
  52.         )
  53.         AftermathhRaid_40:SetPoint('LEFT', UIParent, 221, 15)
  54.     end
  55.    
  56.     if AftermathhUI.ouf.dpslayout == true then
  57.         oUF:RegisterStyle('Aftermathh_RaidDPS', RaidFrames)
  58.         oUF:SetActiveStyle('Aftermathh_RaidDPS')
  59.    
  60.         local Aftermathh_RaidDPS = oUF:SpawnHeader("Aftermathh_RaidDPS", nil, 'solo,party,raid',
  61.             'showPlayer', true,
  62.             'showRaid', true,
  63.             'showParty', false,
  64.             'showSolo', false,
  65.             'xoffset', 12,
  66.             'yOffset', -5,
  67.             'point', 'LEFT',
  68.             'groupFilter', '1,2,3,4,5,6,7,8',
  69.             'groupingOrder', '1,2,3,4,5,6,7,8',
  70.             'groupBy', 'GROUP',
  71.             'maxColumns', 12,
  72.             'unitsPerColumn', 5,
  73.             'columnSpacing', 12,
  74.             'columnAnchorPoint', 'TOP',
  75.             'oUF-initialConfigFunction', [[
  76.                 self:SetWidth(45)
  77.                 self:SetHeight(38)
  78.                 self:SetScale(1)
  79.             ]]
  80.         )  
  81.         Aftermathh_RaidDPS:SetPoint('TOPLEFT', UIParent, 10, -9)
  82.     end
  83. end

Last edited by Aftermathhqt : 02-17-12 at 08:31 AM.
  Reply With Quote
02-17-12, 08:58 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Currently your style function is the same for both raid spawns. You could have a style function for each raidsize (in case you want some in-depth adjustments).

lua Code:
  1. --style functions
  2. local function styleFuncRaid25(self)
  3.   --do dat
  4. end
  5.  
  6.  
  7. local function styleFuncRaid40(self)
  8.   --do tad
  9. end
  10.  
  11. --raid spawns
  12. oUF:RegisterStyle('Aftermathh_Raid25', styleFuncRaid25)
  13. oUF:SetActiveStyle('Aftermathh_Raid25')      
  14. --...      
  15. oUF:RegisterStyle('Aftermathh_Raid40', styleFuncRaid40)
  16. oUF:SetActiveStyle('Aftermathh_Raid40')
  17. --...
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-17-12, 10:31 AM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by zork View Post
Currently your style function is the same for both raid spawns. You could have a style function for each raidsize (in case you want some in-depth adjustments).

lua Code:
  1. --style functions
  2. local function styleFuncRaid25(self)
  3.   --do dat
  4. end
  5.  
  6.  
  7. local function styleFuncRaid40(self)
  8.   --do tad
  9. end
  10.  
  11. --raid spawns
  12. oUF:RegisterStyle('Aftermathh_Raid25', styleFuncRaid25)
  13. oUF:SetActiveStyle('Aftermathh_Raid25')      
  14. --...      
  15. oUF:RegisterStyle('Aftermathh_Raid40', styleFuncRaid40)
  16. oUF:SetActiveStyle('Aftermathh_Raid40')
  17. --...
Hmmmm okey don't really need to adjust any changes from the 25-40 man raid, just increase the maxcolumns & posistion.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Diffrent Raid Layouts for 25man and 40man


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