mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:34:43 -04:00
Created a Projects class
A Project class contains project-specific data like name, undo_redo, frames, layers, tags and brushes. These variables have been moved from Global. This is the first step towards multiple tab support, where each tab will be a different Project.
This commit is contained in:
parent
9d38cbd13e
commit
4e111a7ac0
21 changed files with 656 additions and 627 deletions
|
@ -118,6 +118,6 @@ func change_theme(ID : int) -> void:
|
|||
texture.texture = load("res://assets/graphics/%s_themes/%s/%s" % [theme_type_string, button_category, normal_file_name])
|
||||
|
||||
# Make sure the frame text gets updated
|
||||
Global.current_frame = Global.current_frame
|
||||
Global.current_project.current_frame = Global.current_project.current_frame
|
||||
|
||||
Global.preferences_dialog.get_node("Popups/ShortcutSelector").theme = main_theme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue