PDA

View Full Version : Change the image of a frame



sonata31
February 25th, 2009, 05:24 AM
In a script lua, how to change the image associated with a frame?

Rob H
February 25th, 2009, 05:28 AM
If you use an image variable for the frame you can just use NetRemote.SetImageVariable() to change it.

sonata31
February 25th, 2009, 05:35 AM
If you use an image variable for the frame you can just use NetRemote.SetImageVariable() to change it.

How we use NetRemote.SetImageVariable([name], [mime], [data]) ?

Rob H
February 25th, 2009, 05:45 AM
[name] is the name of the image variable used for the frame/button
[mime] is a MIME type e.g. 'image/png'
[variable] is the path to the file containing the image.

sonata31
February 25th, 2009, 06:09 AM
[name] is the name of the image variable used for the frame/button
[mime] is a MIME type e.g. 'image/png'
[variable] is the path to the file containing the image.

[variable] = [data] in NetRemote.SetImageVariable([name], [mime], [data]) ?

Rob H
February 25th, 2009, 06:10 AM
Yes, sorry.