mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-30 23:19:49 +00:00
fix some stuff in extension explorer, and changed (open logs folder) to (open editor data folder) (#1038)
This commit is contained in:
parent
6b23c51e12
commit
3df7a67b9b
|
@ -701,7 +701,7 @@ issue_tracker={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": []
|
"events": []
|
||||||
}
|
}
|
||||||
open_logs_folder={
|
open_editor_data_folder={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": []
|
"events": []
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ enum HelpMenu {
|
||||||
VIEW_SPLASH_SCREEN,
|
VIEW_SPLASH_SCREEN,
|
||||||
ONLINE_DOCS,
|
ONLINE_DOCS,
|
||||||
ISSUE_TRACKER,
|
ISSUE_TRACKER,
|
||||||
OPEN_LOGS_FOLDER,
|
OPEN_EDITOR_DATA_FOLDER,
|
||||||
CHANGELOG,
|
CHANGELOG,
|
||||||
ABOUT_PIXELORAMA,
|
ABOUT_PIXELORAMA,
|
||||||
SUPPORT_PIXELORAMA
|
SUPPORT_PIXELORAMA
|
||||||
|
|
|
@ -28,9 +28,11 @@ func set_info(info: Dictionary, extension_path: String) -> void:
|
||||||
ext_name.text = str(info["name"], "-v", info["version"])
|
ext_name.text = str(info["name"], "-v", info["version"])
|
||||||
# check for updates
|
# check for updates
|
||||||
change_button_if_updatable(info["name"], info["version"])
|
change_button_if_updatable(info["name"], info["version"])
|
||||||
# Setting path extension will be "temporarily" downloaded to before install
|
# Setting a path extension will be "temporarily" downloaded to before install
|
||||||
DirAccess.make_dir_recursive_absolute(str(extension_path, "Download/"))
|
var temp_dir = extension_path.path_join("Download")
|
||||||
download_path = str(extension_path, "Download/", info["name"], ".pck")
|
if not DirAccess.dir_exists_absolute(temp_dir):
|
||||||
|
DirAccess.make_dir_recursive_absolute(temp_dir)
|
||||||
|
download_path = temp_dir.path_join(info["name"] + ".pck")
|
||||||
if "sha256" in info.keys():
|
if "sha256" in info.keys():
|
||||||
sha256 = info["sha256"]
|
sha256 = info["sha256"]
|
||||||
if "description" in info.keys():
|
if "description" in info.keys():
|
||||||
|
|
|
@ -184,7 +184,6 @@ func process_line(line: String) -> void:
|
||||||
|
|
||||||
|
|
||||||
func parse_extension_data(raw_data: Array) -> Dictionary:
|
func parse_extension_data(raw_data: Array) -> Dictionary:
|
||||||
DirAccess.make_dir_recursive_absolute(str(extension_path, "Download/"))
|
|
||||||
var result := {}
|
var result := {}
|
||||||
# Check for non-compulsory things if they exist
|
# Check for non-compulsory things if they exist
|
||||||
for item in raw_data:
|
for item in raw_data:
|
||||||
|
|
|
@ -426,7 +426,7 @@ func _setup_help_menu() -> void:
|
||||||
"View Splash Screen": "view_splash_screen",
|
"View Splash Screen": "view_splash_screen",
|
||||||
"Online Docs": "open_docs",
|
"Online Docs": "open_docs",
|
||||||
"Issue Tracker": "issue_tracker",
|
"Issue Tracker": "issue_tracker",
|
||||||
"Open Logs Folder": "open_logs_folder",
|
"Open Editor Data Folder": "open_editor_data_folder",
|
||||||
"Changelog": "changelog",
|
"Changelog": "changelog",
|
||||||
"About Pixelorama": "about_pixelorama",
|
"About Pixelorama": "about_pixelorama",
|
||||||
"Support Pixelorama's Development": &"",
|
"Support Pixelorama's Development": &"",
|
||||||
|
@ -836,10 +836,9 @@ func help_menu_id_pressed(id: int) -> void:
|
||||||
OS.shell_open(DOCS_URL)
|
OS.shell_open(DOCS_URL)
|
||||||
Global.HelpMenu.ISSUE_TRACKER:
|
Global.HelpMenu.ISSUE_TRACKER:
|
||||||
OS.shell_open(ISSUES_URL)
|
OS.shell_open(ISSUES_URL)
|
||||||
Global.HelpMenu.OPEN_LOGS_FOLDER:
|
Global.HelpMenu.OPEN_EDITOR_DATA_FOLDER:
|
||||||
var dir := DirAccess.open("user://logs")
|
var dir := DirAccess.open("user://")
|
||||||
dir.make_dir_recursive("user://logs") # In case someone deleted it
|
OS.shell_open(ProjectSettings.globalize_path("user://"))
|
||||||
OS.shell_open(ProjectSettings.globalize_path("user://logs"))
|
|
||||||
Global.HelpMenu.CHANGELOG:
|
Global.HelpMenu.CHANGELOG:
|
||||||
OS.shell_open(CHANGELOG_URL)
|
OS.shell_open(CHANGELOG_URL)
|
||||||
Global.HelpMenu.ABOUT_PIXELORAMA:
|
Global.HelpMenu.ABOUT_PIXELORAMA:
|
||||||
|
|
Loading…
Reference in a new issue