Class Item
The Item class allows you to manage the items inside a Window object. An Item is an abstract class which can represents multiple types
(editbox, areabox, bouton, image, slider, icons, listbox, listshow, popup, number).
void Set_CallBack(string callback)
Parameters
| callback | The name of the function to call when the user uses the item (exemple: clicking on a button) |
Returns
Description
This function sets a callback function to call when an action is performed on an item.
For exemple, if the item is a button, this callback would be called when the user would click on the button.
|
void Set_Image(string image)
Parameters
| image | The image url to load (can be a web url or a local file) |
Returns
Description
|
This function can only be used with "Image" Items. It allows to change the image.
|
void Set_Text(string text)
Parameters
Returns
Description
|
This function can only be used with many Items (Buttons, Text, ..). It allows to change the text shown.
|
string Get_Text()
Parameters
Returns
|
|
| string | The text inside the Item |
Description
|
This function returns the text inside an item.
|