Advertisement
Guest User

Untitled

a guest
Apr 25th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.83 KB | None | 0 0
  1. -------------------------
  2. -- Initilization Stuff --
  3. -------------------------
  4.     local ns = select(2, ...)
  5.     local cfg = ns.cfg
  6.     if not cfg.party then return end
  7.     local lib = ns.lib
  8.  
  9. --------------------------
  10. -- Party Style Function --
  11. --------------------------
  12.     local function CreateParty(self)
  13.         self.width = 206
  14.         self.height = 45
  15.         self.hpBarHeight = 28
  16.         self.powerBarHeight = 14
  17.        
  18.         self.SpellRange = {
  19.             insideAlpha = 1,
  20.             outsideAlpha = 0.3,
  21.         }
  22.  
  23.         lib.header(self)
  24.        
  25.         lib.generate_Healthbar(self)
  26.         lib.generate_Powerbar(self)
  27.         lib.generate_Background(self)
  28.         lib.generate_Divider(self)
  29.  
  30.         self.Health.colorDisconnected = true
  31.         self.Health.colorClass = true
  32.        
  33.         self.Power.colorPower = true
  34.         self.Power.colorDisconnected = true
  35.        
  36.         -- Text Tags
  37.         lib.generate_Text1(self)
  38.         lib.generate_Text2(self)
  39.         lib.generate_Text3(self)
  40.         lib.generate_Text4(self)
  41.        
  42.         -- Generate Auras
  43.         lib.generate_Party_Buffs(self)
  44.         lib.generate_Party_Debuffs(self)
  45.     end
  46.  
  47. ----------------
  48. -- Spawn Unit --
  49. ----------------
  50.     oUF:RegisterStyle("oUF_ClamsodaParty", CreateParty)
  51.     oUF:SetActiveStyle("oUF_ClamsodaParty")
  52.    
  53.     local party = oUF:SpawnHeader(
  54.       "oUF_ClamsodaParty",
  55.       nil,
  56.       "custom [@raid6, exists] hide; [group:party] show; hide",
  57.       "showPlayer",         false,
  58.       "showSolo",           false,
  59.       "showParty",          true,
  60.       "showRaid",           false,
  61.       "columnAnchorPoint",  "BOTTOM",
  62.       "point",              "BOTTOM",
  63.       "yOffset",            41,
  64.       "xoffset",            0,
  65.       "oUF-initialConfigFunction", ([[
  66.         self:SetWidth(%d)
  67.         self:SetHeight(%d)
  68.         self:SetScale(%f)
  69.       ]]):format(206, 45, cfg.scale)
  70.     )
  71.     party:SetPoint("BOTTOMRIGHT", oUF_ClamsodaPlayer, "BOTTOMLEFT", -16, 0)
  72.     -- Why doesn't this anchor perfectly?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement