Thread Tools Display Modes
03-01-12, 04:45 AM   #1
MiRai
A Warpwood Thunder Caller
Join Date: Jul 2011
Posts: 96
A Few Questions Regarding oUF_Karma

I would normally ask these questions on the add-on's page itself but, there hasn't been much activity over there lately so I thought I would ask here in the oUF forum.

These questions are regarding oUF_Karma.

1. How would I go about adding the player (myself) into the list of party members? Right now, the party list only shows my other party members but not myself.

2. Is it possible to sort the party members? Either by index or alphabetically?

3. How would I go about fading out the player frame when I do not have a target and then once a target is acquired, having the frame fade back in? I was hoping to get a nice smooth fade and not a hard on/off look.

4. If #3 is possible, how would I go about fading out the list of party members and focus in sync with the player frame?

Thank you for your time.
-MiRai (ilillillil)
  Reply With Quote
03-01-12, 12:54 PM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
1:
Line 478: "showPlayer", true,

2:
Below that line, add the following:
"sortMethod", "INDEX",
or
"sortMethod", "NAME",
  Reply With Quote
03-01-12, 03:30 PM   #3
MiRai
A Warpwood Thunder Caller
Join Date: Jul 2011
Posts: 96
Originally Posted by p3lim View Post
1:
Line 478: "showPlayer", true,

2:
Below that line, add the following:
"sortMethod", "INDEX",
or
"sortMethod", "NAME",
Thanks. I'm slightly disappointed I didn't see the answer to number 1 myself this morning; it must've been too early.
  Reply With Quote
03-01-12, 05:07 PM   #4
MiRai
A Warpwood Thunder Caller
Join Date: Jul 2011
Posts: 96
Digging a little deeper I found this thread about getting oUF_BarFader to work.

In an attempt to get this working, does post #3 from that thread still hold true or is this now completely outdated with the newest version of oUF?

Originally Posted by Rainrider View Post
oUF_BarFader is outdated but easy to fix.

UNIT_FOCUS, UNIT_ENERGY, UNIT_RAGE, UNIT_MANA and UNIT_RUNIC_POWER got merged into UNIT_POWER.

UNIT_HAPPINESS, GetPetHappiness(), UnitMana(), UnitManaMax() are no more.

For party/raid check you could try registering PARTY_LEADER_CHANGED (not sure right now if this gets fired upon joining a raid) and check GetNumPartyMembers() and GetNumRaidMembers(). Alternatively use PARTY_MEMBERS_CHANGED and RAID_ROSTER_UPDATE if PARTY_LEADER_CHANGED is not fired as wished.

You then have to add oUF_BarFader as OptDep to the .toc of your layout and set 'self.BarFade = true' and 'self.BarFadeMinAlpha = 0' for your player frame.
  Reply With Quote
03-02-12, 04:25 AM   #5
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Due to the high amount of requests, I have updated the plug-in.
http://www.wowinterface.com/download...-oUFFader.html
  Reply With Quote
03-02-12, 03:57 PM   #6
MiRai
A Warpwood Thunder Caller
Join Date: Jul 2011
Posts: 96
Originally Posted by p3lim View Post
Due to the high amount of requests, I have updated the plug-in.
http://www.wowinterface.com/download...-oUFFader.html
Much appreciated.

My next issue is, after adding oUF_Fader to Karma's TOC optional dependencies, all of my unit frames are at a lowered opacity and they will not change based on anything I do in game. I'm sure I should be adding values such as "self.something" into Karma's core.lua but, I'm unclear of what I should be adding and where. I've tried a few entries myself with no joy so, I've returned here.

Thanks.

oUF_Karma's core.lua
lua Code:
  1. local addon, ns = ...
  2.  
  3.   local cfg = ns.cfg
  4.   local lib = ns.lib
  5.  
  6.     -- Unit has an Aura
  7.     function hasUnitAura(unit, name)
  8.    
  9.         local _, _, _, count, _, _, _, caster = UnitAura(unit, name)
  10.         if (caster and caster == "player") then
  11.             return count
  12.         end
  13.     end
  14.    
  15.     -- Unit has a Debuff
  16.     function hasUnitDebuff(unit, name)
  17.        
  18.         local _, _, _, count, _, _, _, _ = UnitDebuff(unit, name)
  19.         if (count) then return count
  20.         end
  21.     end
  22.            
  23. local MyPvPUpdate = function(self, event, unit)
  24.     if(unit ~= self.unit) then return end
  25.  
  26.     local pvp = self.MyPvP
  27.     if(pvp) then
  28.         local factionGroup = UnitFactionGroup(unit)
  29.         -- FFA!
  30.         if(UnitIsPVPFreeForAll(unit)) then
  31.             pvp:SetTexture([[Interface\TargetingFrame\UI-PVP-FFA]])
  32.             pvp:Show()
  33.         elseif(UnitIsPVP(unit) and factionGroup) then
  34.             if(factionGroup == 'Horde') then
  35.                 pvp:SetTexture([[Interface\Addons\oUF_Fail\media\Horde]])
  36.             else
  37.                 pvp:SetTexture([[Interface\Addons\oUF_Fail\media\Alliance]])
  38.             end
  39.             pvp:Show()
  40.         else
  41.             pvp:Hide()
  42.         end
  43.     end
  44. end
  45.  
  46. oUF.colors.smooth = {42/255,48/255,50/255, 42/255,48/255,50/255, 42/255,48/255,50/255}
  47.   -----------------------------
  48.   -- STYLE FUNCTIONS
  49.   -----------------------------
  50.  
  51. local UnitSpecific = {
  52.  
  53.     player = function(self, ...)
  54.  
  55.         self.mystyle = "player"
  56.        
  57.         -- Size and Scale
  58.         self:SetScale(cfg.scale)
  59.         self:SetSize(250, 29)
  60.  
  61.         -- Generate Bars
  62.         lib.gen_hpbar(self)
  63.         lib.gen_hpstrings(self)
  64.         lib.gen_highlight(self)
  65.         lib.gen_ppbar(self)
  66.         lib.gen_RaidMark(self)
  67.         lib.gen_combat_feedback(self)
  68.         lib.gen_InfoIcons(self)
  69.         lib.HealPred(self)
  70.        
  71.         -- Buffs and Debuffs
  72.         if cfg.showPlayerAuras then
  73.             BuffFrame:Hide()
  74.             lib.createBuffs(self)
  75.             lib.createDebuffs(self)
  76.             lib.gen_WeaponEnchant(self)
  77.         end
  78.  
  79.         self.Health.frequentUpdates = true
  80.         self.Health.colorSmooth = true
  81.         self.Health.Smooth = true
  82.         -- self.Health.bg.multiplier = 0.2
  83.         self.Power.colorPower = true
  84.         self.Power.Smooth = true
  85.         self.Power.frequentUpdates = true
  86.         self.Power.bg.multiplier = 0.5
  87.         lib.gen_castbar(self)
  88.         lib.debuffHighlight(self)
  89.  
  90.         -- PvP Icon
  91.         local pvp = self.Health:CreateTexture(nil, "OVERLAY")
  92.         pvp:SetHeight(32)
  93.         pvp:SetWidth(32)
  94.         pvp:SetPoint("TOPRIGHT", 10, 10)
  95.         self.MyPvP = pvp
  96.  
  97.         -- This makes oUF update the information.
  98.         self:RegisterEvent("UNIT_FACTION", MyPvPUpdate)
  99.         -- This makes oUF update the information on forced updates.
  100.         table.insert(self.__elements, MyPvPUpdate)
  101.  
  102.         if cfg.showRunebar then lib.genRunes(self) end
  103.         if cfg.showHolybar then lib.genHolyPower(self) end
  104.         if cfg.showShardbar then lib.genShards(self) end
  105.         if cfg.showEclipsebar then lib.addEclipseBar(self) end
  106.        
  107.         -- Addons
  108.         if cfg.showTotemBar then lib.gen_TotemBar(self) end
  109.         if cfg.showVengeance then lib.gen_Vengeance(self) end
  110.        
  111.     end,
  112.    
  113.     target = function(self, ...)
  114.    
  115.         self.mystyle = "target"
  116.        
  117.         -- Size and Scale
  118.         self:SetScale(cfg.scale)
  119.         self:SetSize(250,29)
  120.  
  121.         -- Generate Bars
  122.         lib.gen_hpbar(self)
  123.         lib.gen_hpstrings(self)
  124.         lib.gen_highlight(self)
  125.         lib.gen_ppbar(self)
  126.         lib.gen_RaidMark(self)
  127.         lib.gen_combat_feedback(self)
  128.         lib.RogueComboPoints(self)
  129.  
  130.         --style specific stuff
  131.         self.Health.frequentUpdates = true
  132.         self.Health.colorSmooth = true
  133.         self.Health.Smooth = true
  134.         -- self.Health.bg.multiplier = 0.3
  135.         self.Power.frequentUpdates = true
  136.         self.Power.Smooth = true
  137.         self.Power.colorTapping = true
  138.         self.Power.colorDisconnected = true
  139.         self.Power.colorHappiness = false
  140.         self.Power.colorHealth = true
  141.         self.Power.colorReaction = true
  142.         self.Power.colorClass = true
  143.         self.Power.bg.multiplier = 0.5
  144.         lib.gen_castbar(self)
  145.         lib.gen_mirrorcb(self)
  146.         lib.debuffHighlight(self)
  147.         lib.HealPred(self)
  148.  
  149.         if cfg.showTargetBuffs then lib.createBuffs(self) end
  150.         if cfg.showTargetDebuffs then lib.createDebuffs(self) end
  151.  
  152.     end,
  153.    
  154.     focus = function(self, ...)
  155.    
  156.         self.mystyle = "focus"
  157.        
  158.         -- Size and Scale
  159.         self:SetScale(cfg.scale)
  160.         self:SetSize(120, 29)
  161.        
  162.         -- Generate Bars
  163.         lib.gen_hpbar(self)
  164.         lib.gen_hpstrings(self)
  165.         lib.gen_highlight(self)
  166.         lib.gen_ppbar(self)
  167.         lib.gen_RaidMark(self)
  168.  
  169.         --style specific stuff
  170.         self.Health.frequentUpdates = true
  171.         self.Health.Smooth = true
  172.         self.Health.colorSmooth = true
  173.         -- self.Health.bg.multiplier = 0.3
  174.         self.Power.Smooth = true
  175.         self.Power.colorTapping = true
  176.         self.Power.colorDisconnected = true
  177.         self.Power.colorHappiness = false
  178.         self.Power.colorClass = true
  179.         self.Power.colorReaction = true
  180.         self.Power.colorHealth = true
  181.         self.Power.bg.multiplier = 0.5
  182.         lib.gen_castbar(self)
  183.        
  184.     end,
  185.    
  186.     targettarget = function(self, ...)
  187.  
  188.         self.mystyle = "tot"
  189.        
  190.         -- Size and Scale
  191.         self:SetScale(cfg.scale)
  192.         self:SetSize(120, 29)
  193.  
  194.         -- Generate Bars
  195.         lib.gen_hpbar(self)
  196.         lib.gen_hpstrings(self)
  197.         lib.gen_highlight(self)
  198.         lib.gen_ppbar(self)
  199.         lib.gen_RaidMark(self)
  200.  
  201.         --style specific stuff
  202.         self.Health.frequentUpdates = true
  203.         self.Health.colorSmooth = true
  204.         self.Health.Smooth = true
  205.         -- self.Health.bg.multiplier = 0.3
  206.         self.Power.Smooth = true
  207.         self.Power.colorTapping = true
  208.         self.Power.colorDisconnected = true
  209.         self.Power.colorHappiness = false
  210.         self.Power.colorClass = true
  211.         self.Power.colorReaction = true
  212.         self.Power.colorHealth = true
  213.         self.Power.bg.multiplier = 0.5
  214.         --lib.gen_castbar(self)
  215.  
  216.     end,
  217.    
  218.     focustarget = function(self, ...)
  219.        
  220.         self.mystyle = "focustarget"
  221.        
  222.         -- Size and Scale
  223.         self:SetScale(cfg.scale)
  224.         self:SetSize(120, 29)
  225.  
  226.         -- Generate Bars
  227.         lib.gen_hpbar(self)
  228.         lib.gen_hpstrings(self)
  229.         lib.gen_highlight(self)
  230.         lib.gen_ppbar(self)
  231.         lib.gen_RaidMark(self)
  232.        
  233.         --style specific stuff
  234.         self.Health.frequentUpdates = true
  235.         self.Health.colorSmooth = true
  236.         -- self.Health.bg.multiplier = 0.3
  237.         self.Power.colorTapping = true
  238.         self.Power.colorDisconnected = true
  239.         self.Power.colorHappiness = false
  240.         self.Power.colorClass = true
  241.         self.Power.colorReaction = true
  242.         self.Power.colorHealth = true
  243.         self.Power.bg.multiplier = 0.5
  244.         lib.gen_castbar(self)
  245.    
  246.     end,
  247.    
  248.     pet = function(self, ...)
  249.         local _, playerClass = UnitClass("player")
  250.        
  251.         self.mystyle = "pet"
  252.        
  253.         -- Size and Scale
  254.         self:SetScale(cfg.scale)
  255.         self:SetSize(90,29)
  256.  
  257.         -- Generate Bars
  258.         lib.gen_hpbar(self)
  259.         lib.gen_hpstrings(self)
  260.         lib.gen_highlight(self)
  261.         lib.gen_ppbar(self)
  262.         lib.gen_RaidMark(self)
  263.        
  264.         --style specific stuff
  265.         self.Health.frequentUpdates = true
  266.         self.Health.colorSmooth = true
  267.         self.Health.Smooth = true
  268.         -- self.Health.bg.multiplier = 0.3
  269.         self.Power.Smooth = true
  270.         self.Power.colorTapping = true
  271.         self.Power.colorDisconnected = true
  272.         self.Power.colorHappiness = false
  273.         self.Power.colorClass = true
  274.         self.Power.colorReaction = true
  275.         self.Power.colorPower = true
  276.         self.Power.bg.multiplier = 0.5
  277.         lib.gen_castbar(self)
  278.  
  279.     end,
  280.  
  281.   raid = function(self, ...)
  282.                
  283.         self.mystyle = "raid"
  284.        
  285.         self.Range = {
  286.             insideAlpha = 1,
  287.             outsideAlpha = .3,
  288.         }
  289.  
  290.         -- Generate Bars
  291.         lib.gen_hpbar(self)
  292.         lib.gen_hpstrings(self)
  293.         lib.gen_highlight(self)
  294.         lib.gen_ppbar(self)
  295.         lib.gen_RaidMark(self)
  296.         lib.ReadyCheck(self)
  297.  
  298.         --style specific stuff
  299.         self.Health.frequentUpdates = true
  300.         self.Health.colorSmooth = true
  301.         -- self.Health.bg.multiplier = 0.3
  302.         self.Power.colorClass = true
  303.         self.Power.bg.multiplier = 0.5
  304.         lib.gen_InfoIcons(self)
  305.         lib.CreateTargetBorder(self)
  306.         lib.CreateThreatBorder(self)
  307.         lib.HealPred(self)
  308.         lib.debuffHighlight(self)
  309.         lib.raidDebuffs(self)
  310.         lib.addPhaseIcon(self)
  311.         lib.createAuraWatch(self, unit)
  312.  
  313.         self.Health.PostUpdate = lib.PostUpdateRaidFrame
  314.         self:RegisterEvent('PLAYER_TARGET_CHANGED', lib.ChangedTarget)
  315.         self:RegisterEvent('RAID_ROSTER_UPDATE', lib.ChangedTarget)
  316.         self:RegisterEvent("UNIT_THREAT_LIST_UPDATE", lib.UpdateThreat)
  317.         self:RegisterEvent("UNIT_THREAT_SITUATION_UPDATE", lib.UpdateThreat)
  318.     end,
  319.  
  320.     party = function(self, ...)
  321.                
  322.         self.mystyle = "party"
  323.  
  324.         self.Range = {
  325.             insideAlpha = 1,
  326.             outsideAlpha = .3,
  327.         }
  328.  
  329.         -- Generate Bars
  330.         lib.gen_hpbar(self)
  331.         lib.gen_hpstrings(self)
  332.         lib.gen_highlight(self)
  333.         lib.gen_ppbar(self)
  334.         lib.gen_RaidMark(self)
  335.         lib.ReadyCheck(self)
  336.         lib.gen_LFDRole(self)
  337.        
  338.         --style specific stuff
  339.         self.Health.frequentUpdates = true
  340.         self.Health.colorSmooth = true
  341.         -- self.Health.bg.multiplier = 0.3
  342.         self.Power.colorClass = true
  343.         self.Power.bg.multiplier = 0.5
  344.         lib.gen_InfoIcons(self)
  345.         lib.CreateTargetBorder(self)
  346.         lib.CreateThreatBorder(self)
  347.         lib.HealPred(self)
  348.         lib.debuffHighlight(self)
  349.         lib.raidDebuffs(self)
  350.         lib.addPhaseIcon(self)
  351.         lib.createAuraWatch(self, unit)
  352.  
  353.         self.Health.PostUpdate = lib.PostUpdateRaidFrame
  354.         self:RegisterEvent('PLAYER_TARGET_CHANGED', lib.ChangedTarget)
  355.         self:RegisterEvent('RAID_ROSTER_UPDATE', lib.ChangedTarget)
  356.         self:RegisterEvent("UNIT_THREAT_LIST_UPDATE", lib.UpdateThreat)
  357.         self:RegisterEvent("UNIT_THREAT_SITUATION_UPDATE", lib.UpdateThreat)
  358.     end,
  359.  
  360.  
  361.     bossStyle = function(self, ...)
  362.  
  363.         self.mystyle = "boss"
  364.                
  365.         self.Range = {
  366.             insideAlpha = 1,
  367.             outsideAlpha = .3,
  368.         }
  369.  
  370.         -- Size and Scale
  371.         self:SetSize(180,29)
  372.  
  373.         -- Generate Bars
  374.         lib.gen_hpbar(self)
  375.         lib.gen_hpstrings(self)
  376.         lib.gen_highlight(self)
  377.         lib.gen_ppbar(self)
  378.         lib.gen_RaidMark(self)
  379.         lib.gen_combat_feedback(self)
  380.  
  381.         --style specific stuff
  382.         self.Health.frequentUpdates = true
  383.         self.Health.colorSmooth = true
  384.         self.Health.Smooth = true
  385.         self.Power.frequentUpdates = true
  386.         self.Power.Smooth = true
  387.         self.Power.colorTapping = true
  388.         self.Power.colorHealth = true
  389.         self.Power.colorReaction = true
  390.         self.Power.colorClass = true
  391.         self.Power.bg.multiplier = 0.5
  392.         lib.gen_castbar(self)
  393.         lib.gen_mirrorcb(self)
  394.  
  395.         if cfg.showBossBuffs then   lib.createBuffs(self) end
  396.         if cfg.showBossDebuffs then lib.createDebuffs(self) end
  397.  
  398.     end,
  399. }  
  400.  
  401. -- The Shared Style Function
  402. local GlobalStyle = function(self, unit, isSingle)
  403.  
  404.     self.menu = lib.spawnMenu
  405.     self:RegisterForClicks('AnyDown')
  406.     -- if(cfg.show_mirrorbars) then MirrorBars() end
  407.    
  408.     -- Call Unit Specific Styles
  409.     if(UnitSpecific[unit]) then
  410.         return UnitSpecific[unit](self)
  411.     end
  412. end
  413.  
  414. -- The Shared Style Function for Party and Raid
  415. local GroupGlobalStyle = function(self, unit)
  416.  
  417.     self.menu = lib.spawnMenu
  418.     self:RegisterForClicks('AnyDown')
  419.    
  420.     -- Call Unit Specific Styles
  421.     if(UnitSpecific[unit]) then
  422.         return UnitSpecific[unit](self)
  423.     end
  424. end
  425.  
  426. local bossStyle = function(self, unit, isSingle)
  427.  
  428.         self.menu = lib.spawnMenu
  429.         self:RegisterForClicks('AnyDown')
  430.                
  431.     -- Call Unit Specific Styles
  432.     if(UnitSpecific[unit]) then
  433.         return UnitSpecific[unit](self)
  434.     end
  435.  
  436. end,
  437.    
  438.   -----------------------------
  439.   -- SPAWN UNITS
  440.   -----------------------------
  441.  
  442. oUF:RegisterStyle('karma', GlobalStyle)
  443. oUF:RegisterStyle('karmaGroup', GroupGlobalStyle)
  444. oUF:RegisterStyle('karmaBoss', bossStyle)
  445.  
  446. oUF:Factory(function(self)
  447.     -- Single Frames
  448.     self:SetActiveStyle('karma')
  449.     self:Spawn('player'):SetPoint("CENTER", UIParent, cfg.PlayerRelativePoint, cfg.PlayerX, cfg.PlayerY)
  450.     self:Spawn('target'):SetPoint("CENTER", UIParent, cfg.TargetRelativePoint, cfg.TargetX, cfg.TargetY)
  451.     if cfg.showtot then self:Spawn('targettarget'):SetPoint("BOTTOMRIGHT",oUF_karmaTarget,cfg.TotRelativePoint, cfg.TotX, cfg.TotY) end
  452.     if cfg.showpet then self:Spawn('pet'):SetPoint("TOPRIGHT",oUF_karmaPlayer,"TOPLEFT", -10, 0) end
  453.     if cfg.showfocus then self:Spawn('focus'):SetPoint("BOTTOMRIGHT", oUF_karmaPlayer, cfg.FocusRelativePoint, cfg.FocusX, cfg.FocusY) end
  454.     if cfg.showfocustarget then self:Spawn('focustarget'):SetPoint("BOTTOMLEFT",oUF_karmaTarget,"TOPLEFT", 0, 8) end
  455.    
  456.     -- Boss frames
  457.     if cfg.showBossFrames then
  458.         self:SetActiveStyle('karmaBoss')
  459.         local boss = {}
  460.         for i = 1, MAX_BOSS_FRAMES do
  461.             boss[i] = self:Spawn("boss"..i, "oUF_Boss"..i)
  462.             boss[i]:SetScale(cfg.scale)
  463.             if i == 1 then
  464.                 boss[i]:SetPoint('BOTTOMLEFT', boss[i - 1], 'TOPLEFT', 0, 8)
  465.             else
  466.                 boss[i]:SetPoint('BOTTOMLEFT', UIParent, 'TOPLEFT', cfg.BossX, cfg.BossY)
  467.             end
  468.         end
  469.     end
  470.    
  471.     -- Party Frames
  472.     if cfg.ShowParty then
  473.         self:SetActiveStyle('karmaGroup')
  474.  
  475.         local party = oUF:SpawnHeader('oUF_Party', nil, 'custom  [group:party,nogroup:raid][@raid6,noexists,group:raid] show;hide',
  476.         --local party = oUF:SpawnHeader('oUF_Party', nil, "solo", "showSolo", true,  -- debug
  477.         "showParty", cfg.ShowParty,
  478.         "showPlayer", false,
  479.         "yoffset", -15,
  480.         "oUF-initialConfigFunction", ([[
  481.             self:SetWidth(%d)
  482.             self:SetHeight(%d)
  483.         ]]):format(128, 25))
  484.         party:SetScale(cfg.raidScale)
  485.         party:SetPoint('CENTER', UIParent, 'CENTER', cfg.PartyX, cfg.PartyY)
  486.     end
  487.    
  488.     -- Raid Frames
  489.     if cfg.ShowRaid then
  490.         -- Hide the Blizzard raid frames
  491.         CompactRaidFrameManager:UnregisterAllEvents()
  492.         CompactRaidFrameManager:Hide()
  493.         CompactRaidFrameContainer:UnregisterAllEvents()
  494.         CompactRaidFrameContainer:Hide()
  495.  
  496.         self:SetActiveStyle('karmaGroup')
  497.         local raid10 = oUF:SpawnHeader("oUF_Raid10", nil, "custom [@raid11,exists] hide; [@raid6,exists] show; hide", -- Raid frames for 6-10 players.
  498.         "showRaid", cfg.ShowRaid,  
  499.         "showSolo", false,
  500.         "showPlayer", true,
  501.         "showParty", false,
  502.         "xoffset", 9,
  503.         "yOffset", -10,
  504.         "groupFilter", "1,2,3,4,5,6,7,8",
  505.         "groupBy", "GROUP",
  506.         "groupingOrder", "1,2,3,4,5,6,7,8",
  507.         "sortMethod", "INDEX",
  508.         "maxColumns", 2,
  509.         "unitsPerColumn", 5,
  510.         "columnSpacing", 9,
  511.         "point", "TOP",
  512.         "columnAnchorPoint", "LEFT",
  513.         "oUF-initialConfigFunction", ([[
  514.         self:SetWidth(%d)
  515.         self:SetHeight(%d)
  516.         ]]):format(96, 25))
  517.         raid10:SetScale(cfg.raidScale)
  518.         raid10:SetPoint('CENTER', UIParent, 'CENTER', cfg.RaidX+200, cfg.RaidY+100)
  519.  
  520.         local raid25 = oUF:SpawnHeader("oUF_Raid25", nil, "custom [@raid26,exists] hide; [@raid11,exists] show; hide", -- Raid frames for 11-25 players.
  521.         "showRaid", cfg.ShowRaid,  
  522.         "showPlayer", true,
  523.         "showParty", false,
  524.         "xoffset", 9,
  525.         "yOffset", -10,
  526.         "groupFilter", "1,2,3,4,5",
  527.         "groupBy", "GROUP",
  528.         "groupingOrder", "1,2,3,4,5",
  529.         "sortMethod", "INDEX",
  530.         "maxColumns", 5,
  531.         "unitsPerColumn", 5,
  532.         "columnSpacing", 9,
  533.         "point", "TOP",
  534.         "columnAnchorPoint", "LEFT",
  535.         "oUF-initialConfigFunction", ([[
  536.         self:SetWidth(%d)
  537.         self:SetHeight(%d)
  538.         ]]):format(80, 25))
  539.         raid25:SetScale(cfg.raidScale)
  540.         raid25:SetPoint('CENTER', UIParent, 'CENTER', cfg.RaidX+80, cfg.RaidY)
  541.  
  542.         local raid40 = oUF:SpawnHeader("oUF_Raid40", nil, "custom [@raid26,exists] show; hide", -- Raid frames for 26-40 players.
  543.         "showRaid", cfg.ShowRaid,  
  544.         "showPlayer", true,
  545.         "showParty", false,
  546.         "xoffset", 9,
  547.         "yOffset", -10,
  548.         "groupFilter", "1,2,3,4,5,6,7,8",
  549.         "groupBy", "GROUP",
  550.         "groupingOrder", "1,2,3,4,5,6,7,8",
  551.         "sortMethod", "INDEX",
  552.         "maxColumns", 8,
  553.         "unitsPerColumn", 5,
  554.         "columnSpacing", 9,
  555.         "point", "TOP",
  556.         "columnAnchorPoint", "LEFT",
  557.         "oUF-initialConfigFunction", ([[
  558.         self:SetWidth(%d)
  559.         self:SetHeight(%d)
  560.         ]]):format(64, 25))
  561.         raid40:SetScale(cfg.raidScale)
  562.         raid40:SetPoint('CENTER', UIParent, 'CENTER', cfg.RaidX, cfg.RaidY)
  563.  
  564.     end
  565. end)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » A Few Questions Regarding oUF_Karma


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