Thread Tools Display Modes
04-24-22, 05:08 AM   #1
Vremon
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2022
Posts: 14
advice with an SetTexture(nil)

hello i want to know if its correct what im doing here :

FocusFrameNameBackground:SetTexture(nil)
TargetFrameNameBackground:SetTexture(nil)

im using these two to hide the texture behind name of target and focus frame it is lighty like this or it can cause problems?
  Reply With Quote
04-24-22, 10:06 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
That or just FocusFrameNameBackground:SetTexture() is fine.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
04-24-22, 10:23 AM   #3
Vremon
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2022
Posts: 14
Originally Posted by Fizzlemizz View Post
That or just FocusFrameNameBackground:SetTexture() is fine.
thanks you - you mean i dont need to settexture() for both just for one?
  Reply With Quote
04-24-22, 10:29 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
You don't need to explicitly add the "nil" but you need to use :SetTexture on both.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » advice with an SetTexture(nil)

Thread Tools
Display Modes

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