Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- layout definition
- if unit == "party" then
- if layout.healer then
- Health:SetSize(150, 20)
- Health:SetPoint("TOP", self, "TOP")
- HealthBackground:SetPoint("LEFT", Health:GetStatusBarTexture(), "RIGHT")
- HealthBackground:SetPoint("RIGHT", Health, "RIGHT")
- HealthBackground:SetAlpha(1)
- HealthBackground:SetHeight(Health:GetHeight())
- Power:SetSize(150, 2)
- Power:SetPoint("TOP", Health, "BOTTOM", 0, -1)
- Name:SetPoint("LEFT", Health, "LEFT", 2, 0)
- HealthPoints:SetPoint("LEFT", Health, "LEFT", 2, 0)
- else
- Health:SetSize(150, 20)
- Health:SetPoint("TOP", self, "TOP")
- HealthBackground:SetPoint("LEFT", Health:GetStatusBarTexture(), "RIGHT")
- HealthBackground:SetPoint("RIGHT", Health, "RIGHT")
- HealthBackground:SetAlpha(1)
- HealthBackground:SetHeight(Health:GetHeight())
- Power:SetSize(150, 3)
- Power:SetPoint("TOP", Health, "BOTTOM", 0, -1)
- Power.colorPower = true
- Name:SetPoint("LEFT", Health, "LEFT", 2, 0)
- Name:SetPoint("RIGHT", Health, "RIGHT", -2, 0)
- end
- if layout.ppdebuffs then
- local Debuffs = CreateFrame("Frame", nil, self)
- Debuffs:SetWidth(250)
- Debuffs:SetHeight(20)
- Debuffs:SetPoint("LEFT", self, "RIGHT", 5, -1)
- Debuffs.initialAnchor = "LEFT"
- Debuffs.size = 25
- Debuffs.num = 6
- Debuffs.spacing = 3
- Debuffs.PostCreateIcon = lib.PostCreateAura
- Debuffs.PostUpdateIcon = lib.PostUpdateAura
- self.Debuffs = Debuffs
- end
- Health.PostUpdate = lib.PostUpdateHealthPartyRaid
- local ricon = Health:CreateTexture(nil, "OVERLAY")
- ricon:SetSize(18,18)
- ricon:SetPoint("CENTER", self, "TOP", 0, -4)
- self.RaidIcon = ricon
- local role = Health:CreateTexture(nil, "OVERLAY")
- role:SetSize(18, 18)
- role:SetPoint("RIGHT", self, "RIGHT", -5, -1)
- self.LFDRole = role
- local range = {
- insideAlpha = 1,
- outsideAlpha = .5,
- }
- self.Range = range
- end
- -- subsequent party uf spawn
- local party = oUF:SpawnHeader("ColdParty", nil, "custom [@raid6,exists] hide;show",
- 'showParty', true,
- 'yOffset', -12,
- 'columnAnchorPoint', 'LEFT',
- 'columnSpacing', 15,
- 'oUF-initialConfigFunction', [[
- self:SetWidth(150)
- self:SetHeight(20)
- ]]
- )
- local partyanchor = CreateFrame("Frame", "ColdPartyAnchor", UIParent)
- partyanchor:SetSize(160, 160)
- party:SetParent(partyanchor)
- party:SetPoint("TOPLEFT", partyanchor, "TOPLEFT", 2, -2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement