1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

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.
This commit is contained in:
Emmanouil Papadeas 2024-05-31 16:01:36 +03:00
parent 6c8e058164
commit d8a17abd1d
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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:

View file

@ -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.