From 9f8a3ab538c193b86d2f8b6b7b569d54e24b5f68 Mon Sep 17 00:00:00 2001 From: Nathan Hoad Date: Sun, 15 Sep 2024 22:15:42 +1000 Subject: [PATCH] Remove example balloon class on copy (#666) --- addons/dialogue_manager/plugin.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/dialogue_manager/plugin.gd b/addons/dialogue_manager/plugin.gd index ff0b521..2ab632f 100644 --- a/addons/dialogue_manager/plugin.gd +++ b/addons/dialogue_manager/plugin.gd @@ -334,6 +334,8 @@ func _copy_dialogue_balloon() -> void: file_contents = file.get_as_text() if is_dotnet: file_contents = file_contents.replace("class ExampleBalloon", "class DialogueBalloon") + else: + file_contents = file_contents.replace("class_name DialogueManagerExampleBalloon ", "") file = FileAccess.open(balloon_script_path, FileAccess.WRITE) file.store_string(file_contents) file.close()