mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-08-11 15:04:42 -04:00
Pixelorama's version number now appears on the window title
This commit is contained in:
parent
8b682570b2
commit
a4014e5842
7 changed files with 16 additions and 13 deletions
|
@ -264,6 +264,8 @@ var palette_import_file_dialog : FileDialog
|
|||
|
||||
var error_dialog : AcceptDialog
|
||||
|
||||
onready var current_version : String = ProjectSettings.get_setting("application/config/Version")
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
randomize()
|
||||
|
@ -563,7 +565,7 @@ func clear_canvases() -> void:
|
|||
play_forward.pressed = false
|
||||
animation_timer.stop()
|
||||
|
||||
self.window_title = "(" + tr("untitled") + ") - Pixelorama"
|
||||
self.window_title = "(" + tr("untitled") + ") - Pixelorama " + Global.current_version
|
||||
OpenSave.current_save_path = ""
|
||||
control.get_node("ExportDialog").was_exported = false
|
||||
control.file_menu.set_item_text(3, tr("Save..."))
|
||||
|
|
|
@ -151,7 +151,7 @@ func open_pxo_file(path : String, untitled_backup : bool = false) -> void:
|
|||
if not untitled_backup:
|
||||
# Untitled backup should not change window title and save path
|
||||
current_save_path = path
|
||||
Global.window_title = path.get_file() + " - Pixelorama"
|
||||
Global.window_title = path.get_file() + " - Pixelorama " + Global.current_version
|
||||
Global.project_has_changed = false
|
||||
|
||||
|
||||
|
@ -239,7 +239,7 @@ func save_pxo_file(path : String, autosave : bool) -> void:
|
|||
Global.notification_label("File saved")
|
||||
|
||||
if backup_save_path == "":
|
||||
Global.window_title = path.get_file() + " - Pixelorama"
|
||||
Global.window_title = path.get_file() + " - Pixelorama " + Global.current_version
|
||||
|
||||
else:
|
||||
Global.notification_label("File failed to save")
|
||||
|
@ -306,7 +306,7 @@ func reload_backup_file(project_path : String, backup_path : String) -> void:
|
|||
|
||||
if project_path != backup_path:
|
||||
current_save_path = project_path
|
||||
Global.window_title = project_path.get_file() + " - Pixelorama(*)"
|
||||
Global.window_title = project_path.get_file() + " - Pixelorama(*) " + Global.current_version
|
||||
Global.project_has_changed = true
|
||||
|
||||
Global.notification_label("Backup reloaded")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue