Fix dialogue manager plugin, lower resolution

This commit is contained in:
2025-06-27 18:53:08 -07:00
parent 338e303fbb
commit 39f791e2b4
43 changed files with 1565 additions and 856 deletions

View File

@@ -13,9 +13,15 @@ var main_view
var dialogue_cache: DMCache
func _enter_tree() -> void:
func _enable_plugin() -> void:
add_autoload_singleton("DialogueManager", get_plugin_path() + "/dialogue_manager.gd")
func _disable_plugin() -> void:
remove_autoload_singleton("DialogueManager")
func _enter_tree() -> void:
if Engine.is_editor_hint():
Engine.set_meta("DialogueManagerPlugin", self)
@@ -105,8 +111,6 @@ func _enter_tree() -> void:
func _exit_tree() -> void:
remove_autoload_singleton("DialogueManager")
remove_import_plugin(import_plugin)
import_plugin = null
@@ -172,6 +176,11 @@ func _apply_changes() -> void:
_update_localization()
func _save_external_data() -> void:
if dialogue_cache != null:
dialogue_cache.reimport_files()
func _build() -> bool:
# If this is the dotnet Godot then we need to check if the solution file exists
DMSettings.check_for_dotnet_solution()
@@ -320,6 +329,9 @@ func update_import_paths(from_path: String, to_path: String) -> void:
func _update_localization() -> void:
if not DMSettings.get_setting(DMSettings.UPDATE_POT_FILES_AUTOMATICALLY, true):
return
var dialogue_files = dialogue_cache.get_files()
# Add any new files to POT generation