From d1ef5c17e9e9e0ad5c40815c8278c1f7ea9becbd Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 31 Dec 2019 14:40:44 +0200 Subject: [PATCH] Added "Issue Tracker" to the Help menu --- Scripts/Dialogs/AboutDialog.gd | 2 +- Scripts/Main.gd | 5 ++++- Scripts/Palette/PaletteContainer.gd | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Scripts/Dialogs/AboutDialog.gd b/Scripts/Dialogs/AboutDialog.gd index 95ba953..3e453b9 100644 --- a/Scripts/Dialogs/AboutDialog.gd +++ b/Scripts/Dialogs/AboutDialog.gd @@ -62,7 +62,7 @@ func _on_Website_pressed() -> void: OS.shell_open("https://www.orama-interactive.com/pixelorama") func _on_GitHub_pressed() -> void: - OS.shell_open("https://github.com/OverloadedOrama/Pixelorama") + OS.shell_open("https://github.com/Orama-Interactive/Pixelorama") func _on_Donate_pressed() -> void: OS.shell_open("https://paypal.me/OverloadedOrama") diff --git a/Scripts/Main.gd b/Scripts/Main.gd index 8b0182a..6870324 100644 --- a/Scripts/Main.gd +++ b/Scripts/Main.gd @@ -76,6 +76,7 @@ func _ready() -> void: "Outline" : 0 } var help_menu_items := { + "Issue Tracker" : 0, "About Pixelorama" : 0 } @@ -334,7 +335,9 @@ func image_menu_id_pressed(id : int) -> void: func help_menu_id_pressed(id : int) -> void: match id: - 0: # About Pixelorama + 0: # Issue Tracker + OS.shell_open("https://github.com/Orama-Interactive/Pixelorama/issues") + 1: # About Pixelorama $AboutDialog.popup_centered() Global.can_draw = false diff --git a/Scripts/Palette/PaletteContainer.gd b/Scripts/Palette/PaletteContainer.gd index dfb177b..a420708 100644 --- a/Scripts/Palette/PaletteContainer.gd +++ b/Scripts/Palette/PaletteContainer.gd @@ -37,7 +37,7 @@ func on_new_empty_palette() -> void: func on_import_palette() -> void: Global.palette_import_file_dialog.popup_centered() -func on_palette_import_file_selected(path) -> void: +func on_palette_import_file_selected(path : String) -> void: var palette : Palette = null if path.to_lower().ends_with("json"): palette = Palette.new().load_from_file(path) @@ -70,7 +70,7 @@ func on_new_palette_confirmed() -> void: Global.error_dialog.set_text(result) Global.error_dialog.popup_centered() -func add_palette_menu_id_pressed(id) -> void: +func add_palette_menu_id_pressed(id : int) -> void: match id: 0: # New Empty Palette Global.palette_container.on_new_empty_palette()