Skip to content

ChoiceButtonUI ​

Inherits: MarginContainer

Individual button UI for a choice option in ChoiceSelectionPopup Similar to SkillNodeUI but without rank display

Methods ​

voidset_icon( icon: CompressedTexture2D )
voidhighlight()
voidrestore()

Constants ​

  • Color BORDER_NORMAL = Color(1.0, 1.0, 1.0, 1.0) - ========== CONSTANTS ==========
  • Color BORDER_HOVER = Color(1.2, 1.2, 1.2, 1.0) - The tint of the border under the mouse.
  • Color ICON_NORMAL = Color(1.0, 1.0, 1.0, 1.0) - The tint of the icon.
  • Color ICON_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)