Thread Tools Display Modes
06-01-10, 05:17 PM   #1
SoulL3Ss
A Deviate Faerie Dragon
 
SoulL3Ss's Avatar
Join Date: Apr 2006
Posts: 14
Cooldown spiral problem

Well I'm not sure that this problem can be fixed but my cooldown spiral is overlaying my aura borders. This looks really ugly (atleast in my eyes ^^)
Here's a screen to "prove" it ;p
http://img228.imageshack.us/i/wowscr...210021321.jpg/
The spiral is even on top of the aura text. I'll really appreciate any help on the subject
__________________
OnLy GoD CaN JudGe Me NoW !
  Reply With Quote
06-01-10, 06:12 PM   #2
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Not sure which layout you are using, but you can hide the cooldown spiral. However this makes omnicc stop displaying timers for your auras, AFAIK. Which isn't much of a problem, you just need to add an own timer/duration function to your layout.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
06-01-10, 09:39 PM   #3
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
Change the :SetPoint call on your border texture so that it's not directly on top of the frame, or make your border texture a child of the cooldown frame so that's it's drawn on top of it.
  Reply With Quote
06-02-10, 01:16 AM   #4
SoulL3Ss
A Deviate Faerie Dragon
 
SoulL3Ss's Avatar
Join Date: Apr 2006
Posts: 14
Code:
local PostCreateAuraIcon = function(self, button, icons, index, isDebuff)
    button.cd:SetReverse()

    button.count:ClearAllPoints()
    button.count:SetPoint(unpack(settings.Auras.CountPoint))
    button.count:SetJustifyH("CENTER")
    button.count:SetFont(settings.font, settings.fsize, "OUTLINE")
    button.count:SetTextColor(unpack(settings.Auras.CountColor))

    button.icon:SetTexCoord(0, 1, 0, 1)
	
	button.showDebuffType = true
	
    button.overlay:SetTexture(settings.aurabord)
    button.overlay:SetTexCoord(0, 1, 0, 1)   
    button.overlay.Hide = noHide
end
here is the code. I'm modifying the ALZA UI and I'm new to lua so please show me by example. So I need to do button.overlay:SetPoint(?)
Thank you

Code:
local PostCreateAuraIcon = function(self, button, icons, index, isDebuff)
    button.cd:SetReverse()
	
    button.count:ClearAllPoints()
    button.count:SetPoint(unpack(settings.Auras.CountPoint))
    button.count:SetJustifyH("CENTER")
    button.count:SetFont(settings.font, settings.fsize, "OUTLINE")
    button.count:SetTextColor(unpack(settings.Auras.CountColor))

    button.icon:SetTexCoord(0, 1, 0, 1)
	
	button.showDebuffType = true
	
	if(button.cd:IsVisible()) then
		local bover = button.cd:CreateTexture(nil, "OVERLAY")
	else
		local bover = button:CreateTexture(nil, "OVERLAY")
	end
    bover:SetTexture(settings.aurabord)
    bover:SetTexCoord(0, 1, 0, 1)  
    bover.Hide = noHide
	bover:SetAllPoints(button)
end
I came up to this but it isn't working. I need a working method to check if the spell has cooldown (my button.cd:IsVisible() isn't working)
btw isn't there a way to just set the cooldown spiral to bottom. I want them like this (bottom is lower strata)

cooldown count
stack count
border
cooldown spiral
icon
__________________
OnLy GoD CaN JudGe Me NoW !

Last edited by SoulL3Ss : 06-02-10 at 04:08 AM.
  Reply With Quote
06-02-10, 03:31 AM   #5
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
Code:
local PostCreateAuraIcon = function(self, button, icons, index, isDebuff)
    button.cd:SetReverse()

    button.count:ClearAllPoints()
    button.count:SetPoint(unpack(settings.Auras.CountPoint))
    button.count:SetJustifyH("CENTER")
    button.count:SetFont(settings.font, settings.fsize, "OUTLINE")
    button.count:SetTextColor(unpack(settings.Auras.CountColor))

    button.icon:SetTexCoord(0, 1, 0, 1)
	
	button.showDebuffType = true
	
    button.overlay:SetTexture(settings.aurabord)
    button.overlay:SetPoint("TOPLEFT", -2, 2)
    button.overlay:SetPoint("TOPRIGHT", 2, -2)
    button.overlay:SetTexCoord(0, 1, 0, 1)   
    button.overlay.Hide = noHide
end
Try that. Alternatively you can try using button.overlay:SetParent(button.cd) instead of SetPoint, but I'm not sure if that changes the draw layer after the texture has already been created.
  Reply With Quote
06-03-10, 03:02 AM   #6
SoulL3Ss
A Deviate Faerie Dragon
 
SoulL3Ss's Avatar
Join Date: Apr 2006
Posts: 14
Code:
local PostCreateAuraIcon = function(self, button, icons, index, isDebuff, filter)
    local _, _, _, _, _, duration, expirationTime, unitCaster, _ = UnitAura(self.unit, index, button.filter)
	button.cd:SetReverse()
	
    button.count:ClearAllPoints()
    button.count:SetPoint(unpack(settings.Auras.CountPoint))
    button.count:SetJustifyH("CENTER")
    button.count:SetFont(settings.font, settings.fsize, "THINOUTLINE")
    button.count:SetTextColor(unpack(settings.Auras.CountColor))

	
	button.icon:SetTexCoord(0, 1, 0, 1)
	button.showDebuffType = true
	button.overlay:SetTexture(settings.aurabord)
    button.cd:SetPoint("TOPLEFT", 2, -2)
    button.cd:SetPoint("BOTTOMRIGHT", -2, 2)
    button.overlay:SetTexCoord(0, 1, 0, 1)
	button.count:SetParent(button.cd)
	
	button.overlay.Hide = noHide

end
http://img85.imageshack.us/img85/252...0310135053.jpg

thank you for the idea ;p
__________________
OnLy GoD CaN JudGe Me NoW !

Last edited by SoulL3Ss : 06-03-10 at 04:52 AM.
  Reply With Quote
07-11-10, 05:13 AM   #7
orenstore
A Kobold Labourer
Join Date: Jul 2010
Posts: 1
I re-open this thread to ask this:

Is it posible to reverse the cooldown spiral? I mean, when buffs are about to disappear, their auras show almost fully colored, and I want the opposite: I want them to show at first fully colored, and when buffs are about to disappear, they should look dark. Do u know what i mean?

Is it possible?

thanks for your help.
  Reply With Quote
07-11-10, 05:20 AM   #8
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Code:
button.cd:SetReverse(x)
x = true or false

See http://wowprogramming.com/docs/widge...own/SetReverse
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Cooldown spiral problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off