diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e247caca..faccac5cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased This update has been brought to you by the contributions of: -PinyaColada, Rémi Verschelde (akien-mga) +PinyaColada, Rémi Verschelde (akien-mga), dasimonde ### Added - Added a "frame properties" option on the popup menu that appears when right-clicking on a cel. This lets the user choose a custom frame delay for that specific frame. ([#357](https://github.com/Orama-Interactive/Pixelorama/pull/357)) - You can now select if you want rotation to apply in the selection, the current cel, the entire frame, all frames or even all projects (tabs)! +- You can now change the transparency of the Tile Mode in the Preferences. ([#368](https://github.com/Orama-Interactive/Pixelorama/pull/368)) +- Added a "Recent Projects" option in the File menu, to contain the most recently opened projects. ([#370](https://github.com/Orama-Interactive/Pixelorama/pull/370)) ### Changed - `~` is now used as a random brush prefix instead of `%`. ([#362](https://github.com/Orama-Interactive/Pixelorama/pull/362)) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index d2eb5e36e..a2b646cee 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -179,7 +179,7 @@ func _ready() -> void: root_directory = OS.get_executable_path().get_base_dir() # Load settings from the config file config_cache.load("user://cache.ini") - + recent_projects = config_cache.get_value("data", "recent_projects", []) # The fact that root_dir is set earlier than this is important @@ -214,8 +214,8 @@ func _ready() -> void: help_menu = find_node_by_name(root, "HelpMenu") cursor_position_label = find_node_by_name(root, "CursorPosition") zoom_level_label = find_node_by_name(root, "ZoomLevel") - - recent_projects_submenu = PopupMenu.new() + + recent_projects_submenu = PopupMenu.new() recent_projects_submenu.set_name("recent_projects_submenu") new_image_dialog = find_node_by_name(root, "CreateNewImage") @@ -520,20 +520,20 @@ func _exit_tree() -> void: func save_project_to_recent_list(path : String) -> void: if path.get_file().substr(0, 7) == "backup-" or path == "": return - + if recent_projects.has(path): return if recent_projects.size() >= 5: recent_projects.pop_front() recent_projects.push_back(path) - + config_cache.set_value("data", "recent_projects", recent_projects) recent_projects_submenu.clear() update_recent_projects_submenu() - - + + func update_recent_projects_submenu() -> void: for project in Global.recent_projects: recent_projects_submenu.add_item(project.get_file()) diff --git a/src/Autoload/OpenSave.gd b/src/Autoload/OpenSave.gd index 2483923e8..e759914c9 100644 --- a/src/Autoload/OpenSave.gd +++ b/src/Autoload/OpenSave.gd @@ -119,7 +119,7 @@ func open_pxo_file(path : String, untitled_backup : bool = false) -> void: Export.was_exported = false Global.file_menu.get_popup().set_item_text(3, tr("Save") + " %s" % path.get_file()) Global.file_menu.get_popup().set_item_text(5, tr("Export")) - + Global.save_project_to_recent_list(path) @@ -338,7 +338,7 @@ func save_pxo_file(path : String, autosave : bool, use_zstd_compression := true, Export.was_exported = false project.was_exported = false Global.file_menu.get_popup().set_item_text(3, tr("Save") + " %s" % path.get_file()) - + Global.save_project_to_recent_list(path) diff --git a/src/Main.gd b/src/Main.gd index f7e061819..dd17b9104 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -146,7 +146,7 @@ func load_last_project() -> void: func load_recent_project_file(path : String) -> void: if OS.get_name() == "HTML5": return - + # Check if file still exists on disk var file_check := File.new() if file_check.file_exists(path): # If yes then load the file diff --git a/src/UI/Dialogs/AboutDialog.gd b/src/UI/Dialogs/AboutDialog.gd index a27dd3cc7..1e22b4da4 100644 --- a/src/UI/Dialogs/AboutDialog.gd +++ b/src/UI/Dialogs/AboutDialog.gd @@ -29,6 +29,7 @@ func _ready() -> void: contributors.create_item(contributor_root).set_text(0, " Xenofon Konitsas (huskee)") contributors.create_item(contributor_root).set_text(0, " Matheus Pesegoginski (MatheusPese)") contributors.create_item(contributor_root).set_text(0, " sapient_cogbag") + contributors.create_item(contributor_root).set_text(0, " dasimonde") contributors.create_item(contributor_root).set_text(0, " Matthew Paul (matthewpaul-us)") contributors.create_item(contributor_root).set_text(0, " danielnaoexiste") contributors.create_item(contributor_root).set_text(0, " PinyaColada") diff --git a/src/UI/TopMenuContainer.gd b/src/UI/TopMenuContainer.gd index b89789140..89c79d2fe 100644 --- a/src/UI/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer.gd @@ -35,9 +35,9 @@ func setup_file_menu() -> void: else: file_menu.add_item(item, i, file_menu_items[item]) i += 1 - + file_menu.connect("id_pressed", self, "file_menu_id_pressed") - + if OS.get_name() == "HTML5": file_menu.set_item_disabled(2, true) @@ -45,7 +45,7 @@ func setup_file_menu() -> void: func setup_recent_projects_submenu(item : String) -> void: Global.recent_projects_submenu.connect("id_pressed", self, "on_recent_projects_submenu_id_pressed") Global.update_recent_projects_submenu() - + file_menu.add_child(Global.recent_projects_submenu) file_menu.add_submenu_item(item, Global.recent_projects_submenu.get_name())