fix(say_last_dialog_option): closes #104
This commit is contained in:
@@ -16,6 +16,8 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 560.0
|
||||
offset_right = 7.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2")
|
||||
script = ExtResource("1")
|
||||
|
||||
|
||||
@@ -34,16 +34,13 @@ func run(_command_params: Array) -> int:
|
||||
return ESCExecution.RC_CANCEL
|
||||
|
||||
var last_chosen_option = escoria.globals_manager.get_global("ESC_DIALOG_CHOSEN_OPTION")
|
||||
# Surround text with quotes. Required by escoria.dialog_player.say()
|
||||
var text = "\"%s\"" % last_chosen_option
|
||||
|
||||
var speaking_character_global_id = escoria.main.current_scene.player.global_id
|
||||
|
||||
escoria.dialog_player.say(
|
||||
speaking_character_global_id,
|
||||
"",
|
||||
text,
|
||||
text # TODO (Eneko): should we pass real key?
|
||||
last_chosen_option,
|
||||
last_chosen_option
|
||||
)
|
||||
await escoria.dialog_player.say_finished
|
||||
escoria.current_state = escoria.GAME_STATE.DEFAULT
|
||||
|
||||
Reference in New Issue
Block a user