ChoiceButtonUI ​
Inherits: MarginContainer
Individual button UI for a choice option in ChoiceSelectionPopup Similar to SkillNodeUI but without rank display
Methods ​
void | set_icon( icon: CompressedTexture2D ) |
void | highlight() |
void | restore() |
Constants ​
ColorBORDER_NORMAL =Color(1.0, 1.0, 1.0, 1.0)- ========== CONSTANTS ==========ColorBORDER_HOVER =Color(1.2, 1.2, 1.2, 1.0)- The tint of the border under the mouse.ColorICON_NORMAL =Color(1.0, 1.0, 1.0, 1.0)- The tint of the icon.ColorICON_HOVER =Color(1.1, 1.1, 1.1, 1.0)- The tint of the icon under the mouse.
Method descriptions ​
void set_icon( icon: CompressedTexture2D ) ​
Set the icon for this choice button
void highlight() ​
Highlight the button (called on mouse enter)
void restore() ​
Restore normal appearance (called on mouse exit)