Update
This commit is contained in:
8
demos/7. handling input/handling_input_dialogue.gd
Normal file
8
demos/7. handling input/handling_input_dialogue.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends DialogueEngine
|
||||
|
||||
var player_name : String # will be set by the UI code
|
||||
|
||||
func _setup() -> void:
|
||||
add_text_entry("Welcome adventurer. May I know you name?").set_metadata(&"get_player_name", "The UI code will act accordingly and inject player_name into DialogueEngine.")
|
||||
add_text_entry("The legendary {player_name}!? Please, follow me this way. I will personally show you our guild.").set_format({"player_name" : get.bind("player_name")}, DialogueEntry.FORMAT_FUNCTION)
|
||||
add_text_entry("Press <Enter> or <Space> to exit.")
|
||||
Reference in New Issue
Block a user