mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:24:44 -04:00
Use new window_title variable to change window's title
Will be used later to get the current window title. Godot doesn't seem to have a built-in way to get the window's title.
This commit is contained in:
parent
52fa460876
commit
eab3669eb2
3 changed files with 9 additions and 4 deletions
|
@ -4,6 +4,7 @@ enum Pressure_Sensitivity {NONE, ALPHA, SIZE, ALPHA_AND_SIZE}
|
|||
enum Brush_Types {PIXEL, CIRCLE, FILLED_CIRCLE, FILE, RANDOM_FILE, CUSTOM}
|
||||
|
||||
var root_directory := "."
|
||||
var window_title := "" setget title_changed # Why doesn't Godot have get_window_title()?
|
||||
var config_cache := ConfigFile.new()
|
||||
# warning-ignore:unused_class_variable
|
||||
var loaded_locales : Array
|
||||
|
@ -471,6 +472,10 @@ func redo(_canvases : Array, layer_index : int = -1) -> void:
|
|||
if control.redone:
|
||||
notification_label("Redo: %s" % action_name)
|
||||
|
||||
func title_changed(value : String) -> void:
|
||||
window_title = value
|
||||
OS.set_window_title(value)
|
||||
|
||||
func frame_changed(value : int) -> void:
|
||||
current_frame = value
|
||||
current_frame_label.text = tr("Current frame:") + " %s/%s" % [str(current_frame + 1), canvases.size()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue