Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
20
Sprout/addons/dialogic/Events/Choice/node_choice_button.gd
Normal file
20
Sprout/addons/dialogic/Events/Choice/node_choice_button.gd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
class_name DialogicNode_ChoiceButton
|
||||
extends Button
|
||||
|
||||
## Dialogic Node that displays choices.
|
||||
|
||||
## Used to identify what choices to put on. If you leave it at -1, choices will be distributed automatically.
|
||||
@export var choice_index:int = -1
|
||||
|
||||
## Can be set to play this sound when pressed. Requires a sibling DialogicNode_ButtonSound node.
|
||||
@export var sound_pressed: AudioStream
|
||||
## Can be set to play this sound when hovered. Requires a sibling DialogicNode_ButtonSound node.
|
||||
@export var sound_hover: AudioStream
|
||||
## Can be set to play this sound when focused. Requires a sibling DialogicNode_ButtonSound node.
|
||||
@export var sound_focus: AudioStream
|
||||
|
||||
|
||||
func _ready():
|
||||
add_to_group('dialogic_choice_button')
|
||||
shortcut_in_tooltip = false
|
||||
hide()
|
||||
Loading…
Add table
Add a link
Reference in a new issue