fix(godot4): update simple_dialog
This commit is contained in:
@@ -92,7 +92,7 @@ func say(dialog_player: Node, global_id: String, text: String, type: String, key
|
||||
# we want to remove the old one (if it exists) and then initialize and add the new dialog
|
||||
# box type to the dialog player
|
||||
if type != _preserved_type_player_type:
|
||||
if _dialog_player.get_children().has(_type_player):
|
||||
if is_instance_valid(_type_player) and _dialog_player.get_children().has(_type_player):
|
||||
_dialog_player.remove_child(_type_player)
|
||||
|
||||
_init_type_player(type)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# A dialog GUI showing a dialog box and character portraits
|
||||
extends Popup
|
||||
extends Window
|
||||
|
||||
|
||||
# Signal emitted when text has been said
|
||||
|
||||
Reference in New Issue
Block a user