Advertisement
Guest User

cold party

a guest
Jan 6th, 2013
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | None | 0 0
  1. -- layout definition   
  2.     if unit == "party" then
  3.         if layout.healer then
  4.             Health:SetSize(150, 20)
  5.             Health:SetPoint("TOP", self, "TOP")
  6.             HealthBackground:SetPoint("LEFT", Health:GetStatusBarTexture(), "RIGHT")
  7.             HealthBackground:SetPoint("RIGHT", Health, "RIGHT")
  8.             HealthBackground:SetAlpha(1)
  9.             HealthBackground:SetHeight(Health:GetHeight())
  10.        
  11.             Power:SetSize(150, 2)
  12.             Power:SetPoint("TOP", Health, "BOTTOM", 0, -1)
  13.        
  14.             Name:SetPoint("LEFT", Health, "LEFT", 2, 0)
  15.             HealthPoints:SetPoint("LEFT", Health, "LEFT", 2, 0)
  16.         else
  17.             Health:SetSize(150, 20)
  18.             Health:SetPoint("TOP", self, "TOP")
  19.             HealthBackground:SetPoint("LEFT", Health:GetStatusBarTexture(), "RIGHT")
  20.             HealthBackground:SetPoint("RIGHT", Health, "RIGHT")
  21.             HealthBackground:SetAlpha(1)
  22.             HealthBackground:SetHeight(Health:GetHeight())
  23.        
  24.             Power:SetSize(150, 3)
  25.             Power:SetPoint("TOP", Health, "BOTTOM", 0, -1)
  26.             Power.colorPower = true
  27.        
  28.             Name:SetPoint("LEFT", Health, "LEFT", 2, 0)
  29.             Name:SetPoint("RIGHT", Health, "RIGHT", -2, 0)
  30.         end
  31.        
  32.         if layout.ppdebuffs then
  33.             local Debuffs = CreateFrame("Frame", nil, self)
  34.             Debuffs:SetWidth(250)
  35.             Debuffs:SetHeight(20)
  36.             Debuffs:SetPoint("LEFT", self, "RIGHT", 5, -1)
  37.             Debuffs.initialAnchor = "LEFT"
  38.             Debuffs.size = 25
  39.             Debuffs.num = 6
  40.             Debuffs.spacing = 3
  41.             Debuffs.PostCreateIcon = lib.PostCreateAura
  42.             Debuffs.PostUpdateIcon = lib.PostUpdateAura
  43.             self.Debuffs = Debuffs
  44.         end
  45.        
  46.         Health.PostUpdate = lib.PostUpdateHealthPartyRaid
  47.        
  48.         local ricon = Health:CreateTexture(nil, "OVERLAY")
  49.         ricon:SetSize(18,18)
  50.         ricon:SetPoint("CENTER", self, "TOP", 0, -4)
  51.         self.RaidIcon = ricon
  52.        
  53.         local role = Health:CreateTexture(nil, "OVERLAY")
  54.         role:SetSize(18, 18)
  55.         role:SetPoint("RIGHT", self, "RIGHT", -5, -1)
  56.         self.LFDRole = role
  57.        
  58.         local range = {
  59.             insideAlpha = 1,
  60.             outsideAlpha = .5,
  61.         }
  62.         self.Range = range
  63.     end
  64.  
  65. -- subsequent party uf spawn
  66.     local party = oUF:SpawnHeader("ColdParty", nil, "custom [@raid6,exists] hide;show",
  67.         'showParty', true,
  68.         'yOffset', -12,
  69.         'columnAnchorPoint', 'LEFT',
  70.         'columnSpacing', 15,
  71.         'oUF-initialConfigFunction', [[
  72.             self:SetWidth(150)
  73.             self:SetHeight(20)
  74.         ]]
  75.     )
  76.     local partyanchor = CreateFrame("Frame", "ColdPartyAnchor", UIParent)
  77.     partyanchor:SetSize(160, 160)
  78.     party:SetParent(partyanchor)
  79.     party:SetPoint("TOPLEFT", partyanchor, "TOPLEFT", 2, -2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement