Quantcast

added a biti to hid party frames.

Cynyr [11-28-09 - 23:43]
added a biti to hid party frames.
Filename
README
UI_screenshot.png
media/minimalist.tga
oUF_Cynyr.lua
oUF_Cynyr.toc
oUF_Cynyr.wuuver
oUF_Cynyr.xml
tags.lua
diff --git a/README b/README
old mode 100644
new mode 100755
diff --git a/UI_screenshot.png b/UI_screenshot.png
old mode 100644
new mode 100755
diff --git a/media/minimalist.tga b/media/minimalist.tga
old mode 100644
new mode 100755
diff --git a/oUF_Cynyr.lua b/oUF_Cynyr.lua
old mode 100644
new mode 100755
index 8f44f08..b0224f5
--- a/oUF_Cynyr.lua
+++ b/oUF_Cynyr.lua
@@ -5,10 +5,10 @@

 --]]

---settings have been omved to here, for easier changing
+--some settings have been omved to here, for easier changing
 local minalpha = 0
 local maxalpha = 1
-local castbaroffset = 140
+local castbaroffset = 80
 local castbarheight = 16
 local castbarbuttonsize = 21
 local playertargetheight = 27
@@ -17,6 +17,8 @@ local petheight = 27
 local petwidth = 130
 local focustargettargetheight = 20
 local focustargettargetwidth = playertargetwidth * .80
+local debuffsize = 10
+local hideparty=true



@@ -195,7 +197,7 @@ local function style(self, unit)
 		self.Debuffs:SetHeight(20)
 		self.Debuffs:SetWidth(44)
 		self.Debuffs.num = 2
-		self.Debuffs.size = 20
+		self.Debuffs.size = debuffsize
 		self.Debuffs.spacing = 4
 		self.PostCreateAuraIcon = createAura

@@ -289,7 +291,7 @@ local function style(self, unit)
 		self.Buffs:SetHeight(44)
 		self.Buffs:SetWidth(236)
 		self.Buffs.num = 20
-		self.Buffs.size = 20
+		self.Buffs.size = debuffsize
 		self.Buffs.spacing = 4
 		self.Buffs.initialAnchor = 'TOPLEFT'
 		self.Buffs['growth-y'] = 'DOWN'
@@ -410,6 +412,14 @@ local function style(self, unit)
     self.MoveableFrames = true
 end

+local function hideBlizPartyFrames(self)
+    local blizUI = PartyMemberBackground
+    for i=1,4 do _G["PartyMemberFrame"..i]:SetParent( blizUI )
+        _G["PartyMemberFrame"..i.."PetFrame"]:SetParent( blizUI )
+    end
+    blizUI:Hide();
+end
+
 oUF:RegisterStyle('Cynyr', style)
 oUF:SetActiveStyle('Cynyr')

@@ -418,3 +428,7 @@ oUF:Spawn('target', "oUF_Cynyr_target"):SetPoint('CENTER', UIParent, 220, -250)
 oUF:Spawn('targettarget', "oUF_Cynyr_targettarget"):SetPoint('BOTTOMRIGHT', oUF.units.target, 'TOPRIGHT', 0, 5)
 oUF:Spawn('focus', "oUF_Cynyr_focus"):SetPoint('BOTTOMLEFT', oUF.units.player, 'TOPLEFT', 0, 5)
 oUF:Spawn('pet', "oUF_Cynyr_pet"):SetPoint('RIGHT', oUF.units.player, 'LEFT', -25, 0)
+if (hideparty) then
+    hideBlizPartyFrames()
+end
+
diff --git a/oUF_Cynyr.toc b/oUF_Cynyr.toc
old mode 100644
new mode 100755
diff --git a/oUF_Cynyr.wuuver b/oUF_Cynyr.wuuver
old mode 100644
new mode 100755
diff --git a/oUF_Cynyr.xml b/oUF_Cynyr.xml
old mode 100644
new mode 100755
diff --git a/tags.lua b/tags.lua
old mode 100644
new mode 100755