View Single Post
09-14-18, 06:52 AM   #4
Jamestheone85
A Kobold Labourer
Join Date: Aug 2018
Posts: 1
Originally Posted by Xrystal View Post
Because the texture in the first block of code doesn't have a name or parentkey setting you have no direct access to it. If you did have them you would be able to simply access it directly and SetTexture to it directly without fever creating a new texture object which your second block of code does to solve the issue.

If you are the creator of the first block of code simply add parentKey = "<TextureName>" inside the xml file for that texture and then you can access it directly via <CheckButtonName>.<TextureName>.
Worked for me, thanks!

Last edited by Jamestheone85 : 10-19-18 at 09:37 AM.
  Reply With Quote