Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------
- -- Initilization Stuff --
- -------------------------
- local ns = select(2, ...)
- local cfg = ns.cfg
- if not cfg.party then return end
- local lib = ns.lib
- --------------------------
- -- Party Style Function --
- --------------------------
- local function CreateParty(self)
- self.width = 206
- self.height = 45
- self.hpBarHeight = 28
- self.powerBarHeight = 14
- self.SpellRange = {
- insideAlpha = 1,
- outsideAlpha = 0.3,
- }
- lib.header(self)
- lib.generate_Healthbar(self)
- lib.generate_Powerbar(self)
- lib.generate_Background(self)
- lib.generate_Divider(self)
- self.Health.colorDisconnected = true
- self.Health.colorClass = true
- self.Power.colorPower = true
- self.Power.colorDisconnected = true
- -- Text Tags
- lib.generate_Text1(self)
- lib.generate_Text2(self)
- lib.generate_Text3(self)
- lib.generate_Text4(self)
- -- Generate Auras
- lib.generate_Party_Buffs(self)
- lib.generate_Party_Debuffs(self)
- end
- ----------------
- -- Spawn Unit --
- ----------------
- oUF:RegisterStyle("oUF_ClamsodaParty", CreateParty)
- oUF:SetActiveStyle("oUF_ClamsodaParty")
- local party = oUF:SpawnHeader(
- "oUF_ClamsodaParty",
- nil,
- "custom [@raid6, exists] hide; [group:party] show; hide",
- "showPlayer", false,
- "showSolo", false,
- "showParty", true,
- "showRaid", false,
- "columnAnchorPoint", "BOTTOM",
- "point", "BOTTOM",
- "yOffset", 41,
- "xoffset", 0,
- "oUF-initialConfigFunction", ([[
- self:SetWidth(%d)
- self:SetHeight(%d)
- self:SetScale(%f)
- ]]):format(206, 45, cfg.scale)
- )
- party:SetPoint("BOTTOMRIGHT", oUF_ClamsodaPlayer, "BOTTOMLEFT", -16, 0)
- -- Why doesn't this anchor perfectly?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement