IconWidget ​
Inherits: Control
One icon of the icon catalog: the picture and its id, which can be selected. icon_selected gives the id and the path.
Variables ​
TextureRect | texture_rect | |
Label | id_label | |
int | icon_id | -1 |
String | icon_path | "" |
bool | is_selected | false |
Methods ​
void | setup_ui() |
void | set_icon_data( id: int, path: String, display_text: String = "" ) |
void | set_icon_texture( texture: Texture2D ) |
void | set_selected( selected: bool ) |
void | update_visual_state() |
Signals ​
icon_selected( icon_id: int, icon_path: String ) ​
Variable descriptions ​
TextureRect texture_rect ​
No description yet.
Label id_label ​
No description yet.
int icon_id = -1 ​
No description yet.
String icon_path = "" ​
No description yet.
bool is_selected = false ​
No description yet.
Method descriptions ​
void setup_ui() ​
No description yet.
void set_icon_data( id: int, path: String, display_text: String = "" ) ​
No description yet.
void set_icon_texture( texture: Texture2D ) ​
No description yet.
void set_selected( selected: bool ) ​
No description yet.
void update_visual_state() ​
No description yet.