Skip to content

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 ​

TextureRecttexture_rect
Labelid_label
inticon_id-1
Stringicon_path""
boolis_selectedfalse

Methods ​

voidsetup_ui()
voidset_icon_data( id: int, path: String, display_text: String = "" )
voidset_icon_texture( texture: Texture2D )
voidset_selected( selected: bool )
voidupdate_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.