 Textures
List all loaded textures for the sprite.
The first one will be used by the object. The other ones might be used from the code to replace the first one.
All textures are indexed. Using the code set(ID), the numbered texture will be used. Id ranges from 0 to n-1, n = number of textures loaded.
The texture ID is displayed in brackets.
In the example above, if the sprite name is my_knob, to set the switch_on.tga texture, just do s.my_knob.set(1);
|
|
 Load
Add more sequential textures to the list.
|
|
 Delete
Suppress the texture from the list (and not from the disk).
Select first the texture before using the button.
|
|