Advertisement
Guest User

core.lua

a guest
Mar 23rd, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.43 KB | None | 0 0
  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 = {0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22,}
  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(192, 35)
  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.arrow.colorPower = true
  85.         self.Power.Smooth = true
  86.         self.Power.frequentUpdates = true
  87.         self.Power.bg.multiplier = 0.2
  88.         lib.gen_castbar(self)
  89.         lib.debuffHighlight(self)
  90.         self.Power.arrow.PostUpdate = lib.setArrowColor
  91.        
  92.         --oUF_Fader Options
  93.         self.FadeCasting = true
  94.         self.FadeCombat = true
  95.         self.FadeTarget = true
  96.         self.FadeHealth = true
  97.         self.FadePower = false
  98.         self.FadeHover = true
  99.         self.FadeSmooth = 1.0
  100.         self.FadeMinAlpha = 0
  101.         self.FadeMaxAlpha = 1.0
  102.  
  103.         -- PvP Icon
  104.         --local pvp = self.Health:CreateTexture(nil, "OVERLAY")
  105.         --pvp:SetHeight(32)
  106.         --pvp:SetWidth(32)
  107.         --pvp:SetPoint("BOTTOMRIGHT", 16, -14)
  108.         --self.MyPvP = pvp
  109.  
  110.         -- This makes oUF update the information.
  111.         self:RegisterEvent("UNIT_FACTION", MyPvPUpdate)
  112.         -- This makes oUF update the information on forced updates.
  113.         table.insert(self.__elements, MyPvPUpdate)
  114.  
  115.         if cfg.showRunebar then lib.genRunes(self) end
  116.         if cfg.showHolybar then lib.genHolyPower(self) end
  117.         if cfg.showShardbar then lib.genShards(self) end
  118.         if cfg.showEclipsebar then lib.addEclipseBar(self) end
  119.        
  120.         -- Addons
  121.         if cfg.showTotemBar then lib.gen_TotemBar(self) end
  122.         if cfg.showVengeance then lib.gen_Vengeance(self) end
  123.        
  124.         self:RegisterEvent("PLAYER_LOGIN", lib.setArrowColor)
  125.         self:RegisterEvent("PLAYER_ENTERING_WORLD", lib.setArrowColor)
  126.         self:RegisterEvent("UNIT_DISPLAYPOWER", lib.setArrowColor)     
  127.        
  128.     end,
  129.    
  130.     target = function(self, ...)
  131.    
  132.         self.mystyle = "target"
  133.        
  134.         -- Size and Scale
  135.         self:SetScale(cfg.scale)
  136.         self:SetSize(256,35)
  137.  
  138.         -- Generate Bars
  139.         lib.gen_hpbar(self)
  140.         lib.gen_hpstrings(self)
  141.         lib.gen_highlight(self)
  142.         lib.gen_ppbar(self)
  143.         lib.gen_RaidMark(self)
  144.         lib.gen_combat_feedback(self)
  145.         lib.RogueComboPoints(self)
  146.  
  147.         --style specific stuff
  148.         self.Health.frequentUpdates = true
  149.         self.Health.colorSmooth = true
  150.         self.Health.Smooth = true
  151.         -- self.Health.bg.multiplier = 0.3
  152.         self.Power.frequentUpdates = true
  153.         self.Power.Smooth = true
  154.         self.Power.colorTapping = true
  155.         self.Power.colorDisconnected = true
  156.         self.Power.colorHappiness = false
  157.         self.Power.colorHealth = true
  158.         self.Power.colorReaction = true
  159.         self.Power.colorClass = true
  160.         self.Power.bg.multiplier = 0.5
  161.         lib.gen_castbar(self)
  162.         lib.gen_mirrorcb(self)
  163.         lib.debuffHighlight(self)
  164.         lib.HealPred(self)
  165.  
  166.         --oUF_Fader Options
  167.         self.FadeCasting = true
  168.         self.FadeCombat = true
  169.         self.FadeTarget = true
  170.         self.FadeHealth = true
  171.         self.FadePower = false
  172.         self.FadeHover = true
  173.         self.FadeSmooth = 1.0
  174.         self.FadeMinAlpha = 0
  175.         self.FadeMaxAlpha = 1.0
  176.  
  177.         -- PvP Icon
  178.         --local pvp = self.Health:CreateTexture(nil, "OVERLAY")
  179.         --pvp:SetTexture(1, 0, 0)
  180.         --pvp:SetHeight(36)
  181.         --pvp:SetWidth(36)
  182.         --pvp:SetPoint("BOTTOMRIGHT", 24, -12)
  183.         --self.MyPvP = pvp
  184.  
  185.         -- This makes oUF update the information.
  186.         self:RegisterEvent("UNIT_FACTION", MyPvPUpdate)
  187.         -- This makes oUF update the information on forced updates.
  188.         table.insert(self.__elements, MyPvPUpdate)
  189.  
  190.         if cfg.showTargetBuffs then lib.createBuffs(self) end
  191.         if cfg.showTargetDebuffs then lib.createDebuffs(self) end
  192.     end,
  193.    
  194.     focus = function(self, ...)
  195.    
  196.         self.mystyle = "focus"
  197.        
  198.         -- Size and Scale
  199.         self:SetScale(cfg.scale)
  200.         self:SetSize(128, 35)
  201.        
  202.         -- Generate Bars
  203.         lib.gen_hpbar(self)
  204.         lib.gen_hpstrings(self)
  205.         lib.gen_highlight(self)
  206.         lib.gen_ppbar(self)
  207.         -- lib.gen_RaidMark(self)
  208.  
  209.         --style specific stuff
  210.         self.Health.frequentUpdates = true
  211.         self.Health.Smooth = true
  212.         self.Health.colorSmooth = true
  213.         -- self.Health.bg.multiplier = 0.3
  214.         self.Power.Smooth = true
  215.         self.Power.colorTapping = true
  216.         self.Power.colorDisconnected = true
  217.         self.Power.colorHappiness = false
  218.         self.Power.colorClass = true
  219.         self.Power.colorReaction = true
  220.         self.Power.colorHealth = true
  221.         self.Power.bg.multiplier = 0.5
  222.         lib.gen_castbar(self)
  223.        
  224.         --oUF_Fader Options
  225.         self.FadeCasting = true
  226.         self.FadeCombat = true
  227.         self.FadeTarget = true
  228.         self.FadeHealth = true
  229.         self.FadePower = false
  230.         self.FadeHover = true
  231.         self.FadeSmooth = 1.0
  232.         self.FadeMinAlpha = 0
  233.         self.FadeMaxAlpha = 1.0
  234.        
  235.     end,
  236.    
  237.     targettarget = function(self, ...)
  238.  
  239.         self.mystyle = "tot"
  240.        
  241.         -- Size and Scale
  242.         self:SetScale(cfg.scale)
  243.         self:SetSize(128, 29)
  244.  
  245.         -- Generate Bars
  246.         lib.gen_hpbar(self)
  247.         lib.gen_hpstrings(self)
  248.         lib.gen_highlight(self)
  249.         lib.gen_ppbar(self)
  250.         -- lib.gen_RaidMark(self)
  251.  
  252.         --style specific stuff
  253.         self.Health.frequentUpdates = true
  254.         self.Health.colorSmooth = true
  255.         self.Health.Smooth = true
  256.         -- self.Health.bg.multiplier = 0.3
  257.         self.Power.Smooth = true
  258.         self.Power.colorTapping = true
  259.         self.Power.colorDisconnected = true
  260.         self.Power.colorHappiness = false
  261.         self.Power.colorClass = true
  262.         self.Power.colorReaction = true
  263.         self.Power.colorHealth = true
  264.         self.Power.bg.multiplier = 0.5
  265.         --lib.gen_castbar(self)
  266.         --lib.gen_mirrorcb(self)
  267.  
  268.         --oUF_Fader Options
  269.         self.FadeCasting = true
  270.         self.FadeCombat = true
  271.         self.FadeTarget = true
  272.         self.FadeHealth = true
  273.         self.FadePower = false
  274.         self.FadeHover = true
  275.         self.FadeSmooth = 1.0
  276.         self.FadeMinAlpha = 0
  277.         self.FadeMaxAlpha = 1.0
  278.  
  279.         -- PvP Icon
  280.         --local pvp = self.Health:CreateTexture(nil, "OVERLAY")
  281.         --pvp:SetHeight(32)
  282.         --pvp:SetWidth(32)
  283.         --pvp:SetPoint("BOTTOMRIGHT", 24, -12)
  284.         --self.MyPvP = pvp
  285.  
  286.         -- This makes oUF update the information.
  287.         self:RegisterEvent("UNIT_FACTION", MyPvPUpdate)
  288.         -- This makes oUF update the information on forced updates.
  289.         table.insert(self.__elements, MyPvPUpdate)
  290.     end,
  291.    
  292.     focustarget = function(self, ...)
  293.        
  294.         self.mystyle = "focustarget"
  295.        
  296.         -- Size and Scale
  297.         self:SetScale(cfg.scale)
  298.         self:SetSize(128, 35)
  299.  
  300.         -- Generate Bars
  301.         lib.gen_hpbar(self)
  302.         lib.gen_hpstrings(self)
  303.         lib.gen_highlight(self)
  304.         lib.gen_ppbar(self)
  305.         -- lib.gen_RaidMark(self)
  306.        
  307.         --style specific stuff
  308.         self.Health.frequentUpdates = true
  309.         self.Health.colorSmooth = true
  310.         self.Health.colorClass = true
  311.         self.Health.Smooth = true
  312.         self.Power.Smooth = true
  313.         self.Power.colorTapping = true
  314.         self.Power.colorDisconnected = true
  315.         self.Power.colorPower = true
  316.         self.Power.colorReaction = true
  317.         self.Power.bg.multiplier = 0.5
  318.         --lib.gen_castbar(self)
  319.  
  320.         --oUF_Fader Options
  321.         self.FadeCasting = true
  322.         self.FadeCombat = true
  323.         self.FadeTarget = true
  324.         self.FadeHealth = true
  325.         self.FadePower = false
  326.         self.FadeHover = true
  327.         self.FadeSmooth = 1.0
  328.         self.FadeMinAlpha = 0
  329.         self.FadeMaxAlpha = 1.0
  330.  
  331.     end,
  332.    
  333.     pet = function(self, ...)
  334.         local _, playerClass = UnitClass("player")
  335.        
  336.         self.mystyle = "pet"
  337.        
  338.         -- Size and Scale
  339.         self:SetScale(cfg.scale)
  340.         self:SetSize(90,34)
  341.  
  342.         -- Generate Bars
  343.         lib.gen_hpbar(self)
  344.         --lib.gen_hpstrings(self)
  345.         lib.gen_highlight(self)
  346.         lib.gen_ppbar(self)
  347.         lib.gen_RaidMark(self)
  348.        
  349.         --style specific stuff
  350.         self.Health.frequentUpdates = true
  351.         self.Health.colorSmooth = true
  352.         self.Health.Smooth = true
  353.         -- self.Health.bg.multiplier = 0.3
  354.         self.Power.Smooth = true
  355.         self.Power.colorTapping = true
  356.         self.Power.colorDisconnected = true
  357.         self.Power.colorHappiness = false
  358.         self.Power.colorClass = true
  359.         self.Power.colorReaction = true
  360.         self.Power.colorHealth = true
  361.         self.Power.bg.multiplier = 0.5
  362.         lib.gen_castbar(self)
  363.  
  364.         -- Hunter Pet Hapiness
  365.         if PlayerClass == "HUNTER" then
  366.             self.Power.colorReaction = false
  367.             self.Power.colorClass = false
  368.             self.Power.colorHappiness = true
  369.         end
  370.  
  371.         --oUF_Fader Options
  372.         self.FadeCasting = true
  373.         self.FadeCombat = true
  374.         self.FadeTarget = true
  375.         self.FadeHealth = true
  376.         self.FadePower = false
  377.         self.FadeHover = true
  378.         self.FadeSmooth = 1.0
  379.         self.FadeMinAlpha = 0
  380.         self.FadeMaxAlpha = 1.0
  381.        
  382.     end,
  383.  
  384.   raid = function(self, ...)
  385.                
  386.         self.mystyle = "raid"
  387.        
  388.         self.Range = {
  389.             insideAlpha = 1,
  390.             outsideAlpha = .3,
  391.         }
  392.  
  393.         -- Generate Bars
  394.         lib.gen_hpbar(self)
  395.         -- lib.gen_hpstrings(self)
  396.         lib.gen_highlight(self)
  397.         lib.gen_ppbar(self)
  398.         lib.gen_RaidMark(self)
  399.         lib.ReadyCheck(self)
  400.  
  401.         --style specific stuff
  402.         self.Health.frequentUpdates = true
  403.         self.Health.colorSmooth = true
  404.         -- self.Health.bg.multiplier = 0.3
  405.         self.Power.colorClass = true
  406.         self.Power.bg.multiplier = 0.5
  407.         lib.gen_InfoIcons(self)
  408.         lib.CreateTargetBorder(self)
  409.         lib.CreateThreatBorder(self)
  410.         lib.HealPred(self)
  411.         lib.debuffHighlight(self)
  412.         lib.raidDebuffs(self)
  413.         lib.createAuraWatch(self, unit)
  414.  
  415.         self.Health.PostUpdate = lib.PostUpdateRaidFrame
  416.         self:RegisterEvent('PLAYER_TARGET_CHANGED', lib.ChangedTarget)
  417.         self:RegisterEvent('RAID_ROSTER_UPDATE', lib.ChangedTarget)
  418.         self:RegisterEvent("UNIT_THREAT_LIST_UPDATE", lib.UpdateThreat)
  419.         self:RegisterEvent("UNIT_THREAT_SITUATION_UPDATE", lib.UpdateThreat)
  420.     end,
  421.  
  422.     party = function(self, ...)
  423.                
  424.         self.mystyle = "party"
  425.  
  426.         self.Range = {
  427.             insideAlpha = 1,
  428.             outsideAlpha = .3,
  429.         }
  430.  
  431.         -- Generate Bars
  432.         lib.gen_hpbar(self)
  433.         --lib.gen_hpstrings(self)
  434.         lib.gen_highlight(self)
  435.         lib.gen_ppbar(self)
  436.         lib.gen_RaidMark(self)
  437.         lib.ReadyCheck(self)
  438.         lib.gen_LFDRole(self)
  439.  
  440.         -- PvP Icon
  441.         --local pvp = self.Health:CreateTexture(nil, "OVERLAY")
  442.         --pvp:SetTexture(1, 0, 0)
  443.         --pvp:SetHeight(24)
  444.         --pvp:SetWidth(24)
  445.         --pvp:SetPoint("TOPRIGHT", 12, 6)
  446.         --self.MyPvP = pvp
  447.  
  448.         -- This makes oUF update the information.
  449.         self:RegisterEvent("UNIT_FACTION", MyPvPUpdate)
  450.         -- This makes oUF update the information on forced updates.
  451.         table.insert(self.__elements, MyPvPUpdate)
  452.        
  453.         --style specific stuff
  454.         self.Health.frequentUpdates = true
  455.         self.Health.colorSmooth = true
  456.         -- self.Health.bg.multiplier = 0.3
  457.         self.Power.colorClass = true
  458.         self.Power.bg.multiplier = 0.5
  459.         lib.gen_InfoIcons(self)
  460.         lib.CreateTargetBorder(self)
  461.         lib.CreateThreatBorder(self)
  462.         lib.HealPred(self)
  463.         lib.debuffHighlight(self)
  464.         lib.raidDebuffs(self)
  465.         lib.createAuraWatch(self, unit)
  466.  
  467.         self.Health.PostUpdate = lib.PostUpdateRaidFrame
  468.         self:RegisterEvent('PLAYER_TARGET_CHANGED', lib.ChangedTarget)
  469.         self:RegisterEvent('RAID_ROSTER_UPDATE', lib.ChangedTarget)
  470.         self:RegisterEvent("UNIT_THREAT_LIST_UPDATE", lib.UpdateThreat)
  471.         self:RegisterEvent("UNIT_THREAT_SITUATION_UPDATE", lib.UpdateThreat)
  472.     end,
  473. }  
  474.  
  475. -- The Shared Style Function
  476. local GlobalStyle = function(self, unit, isSingle)
  477.  
  478.     self.menu = lib.spawnMenu
  479.     self:RegisterForClicks('AnyDown')
  480.    
  481.     -- Call Unit Specific Styles
  482.     if(UnitSpecific[unit]) then
  483.         return UnitSpecific[unit](self)
  484.     end
  485. end
  486.  
  487. -- The Shared Style Function for Party and Raid
  488. local GroupGlobalStyle = function(self, unit)
  489.  
  490.     self.menu = lib.spawnMenu
  491.     self:RegisterForClicks('AnyDown')
  492.    
  493.     -- Call Unit Specific Styles
  494.     if(UnitSpecific[unit]) then
  495.         return UnitSpecific[unit](self)
  496.     end
  497. end,
  498.    
  499.   -----------------------------
  500.   -- SPAWN UNITS
  501.   -----------------------------
  502.  
  503. oUF:RegisterStyle('fail', GlobalStyle)
  504. oUF:RegisterStyle('failGroup', GroupGlobalStyle)
  505.  
  506. oUF:Factory(function(self)
  507.     -- Single Frames
  508.     self:SetActiveStyle('fail')
  509.     self:Spawn('player'):SetPoint("CENTER", UIParent, cfg.PlayerRelativePoint, cfg.PlayerX, cfg.PlayerY)
  510.     self:Spawn('target'):SetPoint("CENTER", UIParent, cfg.TargetRelativePoint, cfg.TargetX, cfg.TargetY)
  511.     if cfg.showtot then self:Spawn('targettarget'):SetPoint("BOTTOMLEFT",oUF_failTarget,cfg.TotRelativePoint, cfg.TotX, cfg.TotY) end
  512.     if cfg.showpet then self:Spawn('pet'):SetPoint("TOPRIGHT",oUF_failPlayer,"TOPLEFT", -14, 0) end
  513.     if cfg.showfocus then self:Spawn('focus'):SetPoint("BOTTOMRIGHT", oUF_failPlayer, cfg.FocusRelativePoint, cfg.FocusX, cfg.FocusY) end
  514.     if cfg.showfocustarget then self:Spawn('focustarget'):SetPoint("BOTTOMLEFT",oUF_failFocus,"TOPRIGHT", 14, 0) end
  515.    
  516.     -- Party Frames
  517.     if cfg.ShowParty then
  518.         self:SetActiveStyle('failGroup')
  519.  
  520.         local party = oUF:SpawnHeader('oUF_Party', nil, 'custom  [group:party,nogroup:raid][@raid6,noexists,group:raid] show;hide',
  521.         --local party = oUF:SpawnHeader('oUF_Party', nil, "solo", "showSolo", true,  -- debug
  522.         "showParty", cfg.ShowParty,
  523.         "showPlayer", false,
  524.         "yoffset", -15,
  525.         "oUF-initialConfigFunction", ([[
  526.             self:SetWidth(%d)
  527.             self:SetHeight(%d)
  528.         ]]):format(128, 25))
  529.         party:SetScale(cfg.raidScale)
  530.         party:SetPoint('CENTER', UIParent, 'CENTER', cfg.PartyX, cfg.PartyY)
  531.     end
  532.    
  533.     -- Raid Frames
  534.     if cfg.ShowRaid then
  535.         -- Hide the Blizzard raid frames
  536.         CompactRaidFrameManager:UnregisterAllEvents()
  537.         CompactRaidFrameManager:Hide()
  538.         CompactRaidFrameContainer:UnregisterAllEvents()
  539.         CompactRaidFrameContainer:Hide()
  540.  
  541.         self:SetActiveStyle('failGroup')
  542.         local raid10 = oUF:SpawnHeader("oUF_Raid10", nil, "custom [@raid11,exists] hide; [@raid1,exists] show; hide", -- Raid frames for 6-10 players.
  543.         "showRaid", cfg.ShowRaid,  
  544.         "showSolo", true,
  545.         "showPlayer", true,
  546.         "showParty", false,
  547.         "xoffset", 9,
  548.         "yOffset", -10,
  549.         "groupFilter", "1,2,3,4,5,6,7,8",
  550.         "groupBy", "GROUP",
  551.         "groupingOrder", "1,2,3,4,5,6,7,8",
  552.         "sortMethod", "INDEX",
  553.         "maxColumns", 2,
  554.         "unitsPerColumn", 5,
  555.         "columnSpacing", 9,
  556.         "point", "TOP",
  557.         "columnAnchorPoint", "LEFT",
  558.         "oUF-initialConfigFunction", ([[
  559.         self:SetWidth(%d)
  560.         self:SetHeight(%d)
  561.         ]]):format(96, 25))
  562.         raid10:SetScale(cfg.raidScale)
  563.         raid10:SetPoint('CENTER', UIParent, 'CENTER', cfg.RaidX+200, cfg.RaidY+100)
  564.  
  565.         local raid25 = oUF:SpawnHeader("oUF_Raid25", nil, "custom [@raid26,exists] hide; [@raid11,exists] show; hide", -- Raid frames for 11-25 players.
  566.         "showRaid", cfg.ShowRaid,  
  567.         "showPlayer", true,
  568.         "showParty", false,
  569.         "xoffset", 9,
  570.         "yOffset", -10,
  571.         "groupFilter", "1,2,3,4,5",
  572.         "groupBy", "GROUP",
  573.         "groupingOrder", "1,2,3,4,5",
  574.         "sortMethod", "INDEX",
  575.         "maxColumns", 5,
  576.         "unitsPerColumn", 5,
  577.         "columnSpacing", 9,
  578.         "point", "TOP",
  579.         "columnAnchorPoint", "LEFT",
  580.         "oUF-initialConfigFunction", ([[
  581.         self:SetWidth(%d)
  582.         self:SetHeight(%d)
  583.         ]]):format(80, 25))
  584.         raid25:SetScale(cfg.raidScale)
  585.         raid25:SetPoint('CENTER', UIParent, 'CENTER', 0, -425)
  586.  
  587.         local raid40 = oUF:SpawnHeader("oUF_Raid40", nil, "custom [@raid26,exists] show; hide", -- Raid frames for 26-40 players.
  588.         "showRaid", cfg.ShowRaid,  
  589.         "showPlayer", true,
  590.         "showParty", false,
  591.         "xoffset", 9,
  592.         "yOffset", -10,
  593.         "groupFilter", "1,2,3,4,5,6,7,8",
  594.         "groupBy", "GROUP",
  595.         "groupingOrder", "1,2,3,4,5,6,7,8",
  596.         "sortMethod", "INDEX",
  597.         "maxColumns", 8,
  598.         "unitsPerColumn", 5,
  599.         "columnSpacing", 9,
  600.         "point", "TOP",
  601.         "columnAnchorPoint", "LEFT",
  602.         "oUF-initialConfigFunction", ([[
  603.         self:SetWidth(%d)
  604.         self:SetHeight(%d)
  605.         ]]):format(64, 25))
  606.         raid40:SetScale(cfg.raidScale)
  607.         raid40:SetPoint('CENTER', UIParent, 'CENTER', 0, -425)
  608.  
  609.     end
  610. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement