From d8a17abd1db84c5d7b1f67fc62fc78908a2fd2b2 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 31 May 2024 16:01:36 +0300 Subject: [PATCH] Use the default Godot 4 version property in project.godot The custom one we used was because Godot 3 has no version property, but this is no longer the case. --- project.godot | 2 +- src/Autoload/ExtensionsApi.gd | 2 +- src/Autoload/Global.gd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.godot b/project.godot index 7db6770ec..046002eef 100644 --- a/project.godot +++ b/project.godot @@ -12,6 +12,7 @@ config_version=5 config/name="Pixelorama" config/description="A free & open-source 2D sprite editor" +config/version="v1.0-beta1" run/main_scene="res://src/Main.tscn" config/use_custom_user_dir=true config/custom_user_dir_name="pixelorama" @@ -23,7 +24,6 @@ boot_splash/use_filter=false config/icon="res://assets/graphics/icons/icon.png" config/macos_native_icon="res://assets/graphics/icons/icon.icns" config/windows_native_icon="res://assets/graphics/icons/icon.ico" -config/Version="v1.0-beta1" config/ExtensionsAPI_Version=4 config/Pxo_Version=3 diff --git a/src/Autoload/ExtensionsApi.gd b/src/Autoload/ExtensionsApi.gd index 864bbbad8..abd912b09 100644 --- a/src/Autoload/ExtensionsApi.gd +++ b/src/Autoload/ExtensionsApi.gd @@ -125,7 +125,7 @@ func get_main_nodes(extension_name: StringName) -> Array[Node]: class GeneralAPI: ## Returns the current version of pixelorama. func get_pixelorama_version() -> String: - return ProjectSettings.get_setting("application/config/Version") + return ProjectSettings.get_setting("application/config/version") ## Returns the [ConfigFile] contains all the settings (Brushes, sizes, preferences, etc...). func get_config_file() -> ConfigFile: diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index 4995946dd..a611e3d2f 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -574,7 +574,7 @@ var onion_skinning_future_rate := 1 var onion_skinning_blue_red := false ## If [code]true[/code], then blue-red mode is enabled. ## The current version of pixelorama -var current_version: String = ProjectSettings.get_setting("application/config/Version") +var current_version: String = ProjectSettings.get_setting("application/config/version") # Nodes ## The [PackedScene] of the button used by layers in the timeline.