Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-25-24, 09:15 AM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,906
The .texture part is just making a table key, it could be anything. The :CreateTexture() creates the texture region and by using testFrame:CreateTexture() just means that testFrame will automatically be the parent of the new texture.

Code:
testFrame.SomethingToPutAPrettyPictureIn = testFrame:CreateTexture()
Same as
Code:
testFrame["SomethingToPutAPrettyPictureIn"] = testFrame:CreateTexture()
I get the feeling these days that some of the responses/questions in response seem like AI in training.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 01-25-24 at 10:09 AM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » New to Addons : Issue with SetTexture


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