Skip to content

ChoiceSelectionPopup ​

Inherits: MarginContainer

Popup UI for selecting between choice options in a ChoiceSkillNode Displays each choice as a button with icon and shows tooltip on hover

Properties ​

PackedScenechoice_button_scene

Variables ​

ChoiceSkillNodechoice_node
Array[ChoiceButtonUI]choice_buttons[]

Methods ​

voidshow_choices( node: ChoiceSkillNode )

Signals ​

choice_selected( choice_index: int ) ​

========== SIGNALS ==========

skill_node_tooltip_requested( node: SkillNode ) ​

Asks the interface to show the tooltip of a skill node.

hide_tooltip( force_hide: bool ) ​

Asks the interface to hide the tooltip (force hides it at once).

popup_closed() ​

Emitted when the popup is closed.

Property descriptions ​

PackedScene choice_button_scene ​

The scene of one choice.

Variable descriptions ​

ChoiceSkillNode choice_node ​

========== PROPERTIES ==========

Array[ChoiceButtonUI] choice_buttons = [] ​

The buttons of the choices.

Method descriptions ​

void show_choices( node: ChoiceSkillNode ) ​

Show the popup for a given choice node