mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:04:43 -04:00
Frame properties (#357)
* Sync for my local files to my repository * This is frame properties update, it works but I can't be stored while saving or loading and that makes crashes just the beggining :) * I forgot this files :P * Frame Properties update. * Updating frame properties * Update Translations.pot * Changes to CanvasPreview and CelButton change
This commit is contained in:
parent
f5cf3f3ca7
commit
852365c38f
12 changed files with 183 additions and 20 deletions
|
@ -8,6 +8,7 @@ var undo_redo : UndoRedo
|
|||
var undos := 0 # The number of times we added undo properties
|
||||
var has_changed := false setget has_changed_changed
|
||||
var frames := [] setget frames_changed # Array of Frames (that contain Cels)
|
||||
var frame_duration := []
|
||||
var layers := [] setget layers_changed # Array of Layers
|
||||
var current_frame := 0 setget frame_changed
|
||||
var current_layer := 0 setget layer_changed
|
||||
|
@ -271,6 +272,7 @@ func serialize() -> Dictionary:
|
|||
"export_directory_path" : directory_path,
|
||||
"export_file_name" : file_name,
|
||||
"export_file_format" : file_format,
|
||||
"frame_duration" : frame_duration,
|
||||
}
|
||||
|
||||
return project_data
|
||||
|
@ -332,7 +334,8 @@ func deserialize(dict : Dictionary) -> void:
|
|||
file_name = dict.export_file_name
|
||||
if dict.has("export_file_format"):
|
||||
file_format = dict.export_file_format
|
||||
|
||||
if dict.has("frame_duration"):
|
||||
frame_duration = dict.frame_duration
|
||||
|
||||
func name_changed(value : String) -> void:
|
||||
name = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue