View Single Post
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