Thread Tools Display Modes
06-08-11, 07:47 AM   #1
ncbadgirl
A Deviate Faerie Dragon
 
ncbadgirl's Avatar
AddOn Compiler - Click to view compilations
Join Date: Oct 2008
Posts: 10
Exclamation Help with Code from vertical to horizontal

Alrighty this is racking my brain thought I may come here to ask from people with more experience. I am simply trying to make these frames go from vertical to horizontal. I can't seem to get a reply via with the author.
I got it to work by turning on the healing frames but then if I set "unitsPerColumn", 1" it wont show the other groups

Thanks in advance!!

Code:
if cfg.HealFrames then
	if cfg.ShowRaid then
		CompactRaidFrameContainer:Hide() 
		CompactRaidFrameManager:SetAlpha(0)
		self:SetActiveStyle("Raid")
		local maxGroups = 5
		if cfg.RaidShowAllGroups then maxGroups = 8 end
		local raid = oUF:SpawnHeader("oUF_Raid", nil, "solo,party,raid", 
		"showRaid", true,  
		"showPlayer", true,
		"showSolo", cfg.RaidShowSolo,
		"showParty", cfg.ShowParty,
		"xoffset", 7,
		"yOffset", 15,
		"groupFilter", "1,2,3,4,5,6,7,8",
		"groupBy", "GROUP",
		"groupingOrder", "1,2,3,4,5,6,7,8",
		"sortMethod", "INDEX",
		"maxColumns", maxGroups,
		"unitsPerColumn", 5,
		"columnSpacing", 7,
		"point", "BOTTOM",
		"columnAnchorPoint", "LEFT",
		"oUF-initialConfigFunction", ([[
		self:SetWidth(%d)
		self:SetHeight(%d)
		]]):format(65, 25))
		raid:SetPoint("BOTTOM", UIParent, 0, 85)
	end
	else
	if cfg.ShowRaid then
		CompactRaidFrameContainer:Hide() 
		CompactRaidFrameManager:SetAlpha(0)
		self:SetActiveStyle("Raid")
		local maxGroups = 5
		if cfg.RaidShowAllGroups then maxGroups = 8 end
		local raid = oUF:SpawnHeader("oUF_Raid", nil, "solo,party,raid", 
		"showRaid", true,  
		"showPlayer", true,
		"showSolo", cfg.RaidShowSolo,
		"showParty", cfg.ShowParty,
		"xoffset", 7,
		"yOffset", 7,
		"groupFilter", "1,2,3,4,5,6,7,8",
		"groupBy", "GROUP",
		"groupingOrder", "1,2,3,4,5,6,7,8",
		"sortMethod", "INDEX",
		"maxColumns", maxGroups,
		"unitsPerColumn", 5,
		"columnSpacing", 7,
		"point", "BOTTOM",
		"columnAnchorPoint", "LEFT",
		"oUF-initialConfigFunction", ([[
		self:SetWidth(%d)
		self:SetHeight(%d)
		]]):format(60, 25))
		raid:SetPoint("TOPLEFT", UIParent, 10, -10)
	end

Last edited by ncbadgirl : 06-08-11 at 07:49 AM.
  Reply With Quote
06-12-11, 07:38 PM   #2
Goldpaw
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 56
Have you tried changing the following two attributes like this(?):

lua Code:
  1. "point", "LEFT",
  2. "columnAnchorPoint", "BOTTOM",
  Reply With Quote
06-15-11, 07:42 AM   #3
ncbadgirl
A Deviate Faerie Dragon
 
ncbadgirl's Avatar
AddOn Compiler - Click to view compilations
Join Date: Oct 2008
Posts: 10
This did the job! Thank you very much Sir! Xo
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help with Code from vertical to horizontal

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