Added "Issue Tracker" to the Help menu

This commit is contained in:
OverloadedOrama 2019-12-31 14:40:44 +02:00
parent 810cd5ec88
commit d1ef5c17e9
3 changed files with 7 additions and 4 deletions

View file

@ -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")

View file

@ -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

View file

@ -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()