ObjectWidget ​
Inherits: Control
One entry of the list catalog: the icon, the id and the name of a resource, which can be selected. object_selected gives the id, the path and the type.
Variables ​
TextureRect | icon_texture_rect | |
Label | id_label | |
Label | name_label | |
Panel | background_panel | |
int | object_id | -1 |
String | object_path | "" |
String | object_name | "" |
String | object_type | "" |
bool | is_selected | false |
Methods ​
void | set_object_data( id: int, path: String, name: String, type: String, icon_path: String = "" ) |
void | set_icon_texture( texture: Texture2D ) |
void | set_selected( selected: bool ) |
Signals ​
object_selected( object_id: int, object_path: String, object_type: String ) ​
Variable descriptions ​
TextureRect icon_texture_rect ​
No description yet.
Label id_label ​
No description yet.
Label name_label ​
No description yet.
Panel background_panel ​
No description yet.
int object_id = -1 ​
No description yet.
String object_path = "" ​
No description yet.
String object_name = "" ​
No description yet.
String object_type = "" ​
No description yet.
bool is_selected = false ​
No description yet.
Method descriptions ​
void set_object_data( id: int, path: String, name: String, type: String, icon_path: String = "" ) ​
No description yet.
void set_icon_texture( texture: Texture2D ) ​
Set icon directly from a texture (NEW METHOD)
void set_selected( selected: bool ) ​
No description yet.