Heeeeelp,
I'm dumb at the best of times but have developed a self inflicted bald patch overnight due to my constantly scratching my head for like 10hrs trying to fathom out why the heck I can not hide the damn 'Spell Shadow' on the castbar.
I hid the spell text without any real issue, but am totally stumped by the shadow. Was wondering if maybe its something to do with Parenting as I had to Parent the Spell Icon in order for that to not show??
main body of my code is as follows :
-- Original nameplate
nameplate.children = {}--orig
local child = nameplate.children--orig
nameplate.regions = {}--orig
local reg = nameplate.regions--orig
frame.barFrame, frame.nameFrame = frame:GetChildren()
child.healthBar, child.castBar = frame.barFrame:GetChildren()--orig
reg.nameText = frame.nameFrame:GetRegions()--orig
reg.threatGlow, reg.healthBorder, reg.highlightTexture, reg.levelText, reg.boss, reg.raid, reg.dragon = frame.barFrame:GetRegions()
-- frame.name = frame.nameFrame:GetRegions()--sqw added
--_, reg.castBorder, reg.shield, reg.spellIcon = child.castBar:GetRegions()--orig
_, reg.castBorder, reg.shield, reg.spellIcon, frame.nameText, frame.nameTextShadow = child.castBar:GetRegions()--sqw1
--_, reg.castBorder, reg.shield, reg.spellIcon, frame.name, frame.nameShadow = castBar:GetRegions()--sqw2
frame.nameText:Hide() --** SPELL NAME HIDDEN BUT CAN'T HIDE SHADOW AAARGH
child.healthBar:SetStatusBarTexture( INVISIBLE_TEXTURE )
child.castBar:SetStatusBarTexture( INVISIBLE_TEXTURE )
--for index,region in pairs( reg ) do region:SetParent( nameplate ) end --*****remmed out else Healers Have To Die breaks *****
reg.threatGlow:SetTexCoord( 0, 0, 0, 0 )
reg.healthBorder:SetTexCoord( 0, 0, 0, 0 )
reg.castBorder:SetTexCoord( 0, 0, 0, 0 )
reg.shield:SetTexCoord( 0, 0, 0, 0 )
nameplate.highlight = reg.highlightTexture
nameplate.highlight:SetTexture( LSM:Fetch( "statusbar", "Doc" ) )
nameplate.highlight:SetVertexColor( 1,1,1,0.6 )
reg.nameText:SetWidth( 000.1 )--orig
--frame.nameText:SetWidth( 000.1 )
reg.levelText:SetWidth( 000.1 )
reg.boss:SetTexCoord( 0, 0, 0, 0 )
reg.raid:SetAlpha( 0 )
reg.dragon:SetTexCoord( 0, 0, 0, 0 )
Addon link :
http://www.wowinterface.com/download...ameplates.html
If anyone has the time to cast their eye over the coding and offer constructive suggestions, even if they result in a total over-haul of the code then I would be extremely grateful.
Many thanks,
Tim