mirror of
https://github.com/Relintai/draw_gd.git
synced 2025-02-12 07:40:07 +01:00
Removed the help menu.
This commit is contained in:
parent
6baac9b275
commit
353f4400f7
@ -11,8 +11,6 @@ func _ready() -> void:
|
|||||||
setup_edit_menu()
|
setup_edit_menu()
|
||||||
setup_view_menu()
|
setup_view_menu()
|
||||||
setup_image_menu()
|
setup_image_menu()
|
||||||
setup_help_menu()
|
|
||||||
|
|
||||||
|
|
||||||
func setup_file_menu() -> void:
|
func setup_file_menu() -> void:
|
||||||
var file_menu_items := {
|
var file_menu_items := {
|
||||||
@ -109,24 +107,6 @@ func setup_image_menu() -> void:
|
|||||||
image_menu.connect("id_pressed", self, "image_menu_id_pressed")
|
image_menu.connect("id_pressed", self, "image_menu_id_pressed")
|
||||||
|
|
||||||
|
|
||||||
func setup_help_menu() -> void:
|
|
||||||
var help_menu_items := {
|
|
||||||
"View Splash Screen" : 0,
|
|
||||||
"Online Docs" : InputMap.get_action_list("open_docs")[0].get_scancode_with_modifiers(),
|
|
||||||
"Issue Tracker" : 0,
|
|
||||||
"Changelog" : 0,
|
|
||||||
"About Pixelorama" : 0
|
|
||||||
}
|
|
||||||
var help_menu : PopupMenu = Global.help_menu.get_popup()
|
|
||||||
|
|
||||||
var i := 0
|
|
||||||
for item in help_menu_items.keys():
|
|
||||||
help_menu.add_item(item, i, help_menu_items[item])
|
|
||||||
i += 1
|
|
||||||
|
|
||||||
help_menu.connect("id_pressed", self, "help_menu_id_pressed")
|
|
||||||
|
|
||||||
|
|
||||||
func file_menu_id_pressed(id : int) -> void:
|
func file_menu_id_pressed(id : int) -> void:
|
||||||
match id:
|
match id:
|
||||||
0: # New
|
0: # New
|
||||||
@ -367,19 +347,3 @@ func show_add_outline_popup() -> void:
|
|||||||
func show_hsv_configuration_popup() -> void:
|
func show_hsv_configuration_popup() -> void:
|
||||||
Global.control.get_node("Dialogs/ImageEffects/HSVDialog").popup_centered()
|
Global.control.get_node("Dialogs/ImageEffects/HSVDialog").popup_centered()
|
||||||
Global.dialog_open(true)
|
Global.dialog_open(true)
|
||||||
|
|
||||||
|
|
||||||
func help_menu_id_pressed(id : int) -> void:
|
|
||||||
match id:
|
|
||||||
0: # Splash Screen
|
|
||||||
Global.control.get_node("Dialogs/SplashDialog").popup_centered()
|
|
||||||
Global.dialog_open(true)
|
|
||||||
1: # Online Docs
|
|
||||||
OS.shell_open("https://orama-interactive.github.io/Pixelorama-Docs/")
|
|
||||||
2: # Issue Tracker
|
|
||||||
OS.shell_open("https://github.com/Orama-Interactive/Pixelorama/issues")
|
|
||||||
3: # Changelog
|
|
||||||
if OS.get_name() == "OSX":
|
|
||||||
OS.shell_open("https://github.com/Orama-Interactive/Pixelorama/blob/master/CHANGELOG.md")
|
|
||||||
else:
|
|
||||||
OS.shell_open("https://github.com/Orama-Interactive/Pixelorama/blob/master/CHANGELOG.md#v08---2020-10-14")
|
|
||||||
|
@ -21,7 +21,7 @@ __meta__ = {
|
|||||||
|
|
||||||
[node name="FileMenu" type="MenuButton" parent="MenuItems"]
|
[node name="FileMenu" type="MenuButton" parent="MenuItems"]
|
||||||
margin_right = 35.0
|
margin_right = 35.0
|
||||||
margin_bottom = 23.0
|
margin_bottom = 20.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
text = "File"
|
text = "File"
|
||||||
switch_on_hover = true
|
switch_on_hover = true
|
||||||
@ -29,7 +29,7 @@ switch_on_hover = true
|
|||||||
[node name="EditMenu" type="MenuButton" parent="MenuItems"]
|
[node name="EditMenu" type="MenuButton" parent="MenuItems"]
|
||||||
margin_left = 39.0
|
margin_left = 39.0
|
||||||
margin_right = 75.0
|
margin_right = 75.0
|
||||||
margin_bottom = 23.0
|
margin_bottom = 20.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
text = "Edit"
|
text = "Edit"
|
||||||
switch_on_hover = true
|
switch_on_hover = true
|
||||||
@ -37,7 +37,7 @@ switch_on_hover = true
|
|||||||
[node name="ViewMenu" type="MenuButton" parent="MenuItems"]
|
[node name="ViewMenu" type="MenuButton" parent="MenuItems"]
|
||||||
margin_left = 79.0
|
margin_left = 79.0
|
||||||
margin_right = 121.0
|
margin_right = 121.0
|
||||||
margin_bottom = 23.0
|
margin_bottom = 20.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
text = "View"
|
text = "View"
|
||||||
switch_on_hover = true
|
switch_on_hover = true
|
||||||
@ -45,19 +45,11 @@ switch_on_hover = true
|
|||||||
[node name="ImageMenu" type="MenuButton" parent="MenuItems"]
|
[node name="ImageMenu" type="MenuButton" parent="MenuItems"]
|
||||||
margin_left = 125.0
|
margin_left = 125.0
|
||||||
margin_right = 177.0
|
margin_right = 177.0
|
||||||
margin_bottom = 23.0
|
margin_bottom = 20.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
text = "Image"
|
text = "Image"
|
||||||
switch_on_hover = true
|
switch_on_hover = true
|
||||||
|
|
||||||
[node name="HelpMenu" type="MenuButton" parent="MenuItems"]
|
|
||||||
margin_left = 181.0
|
|
||||||
margin_right = 223.0
|
|
||||||
margin_bottom = 23.0
|
|
||||||
mouse_default_cursor_shape = 2
|
|
||||||
text = "Help"
|
|
||||||
switch_on_hover = true
|
|
||||||
|
|
||||||
[node name="TopLabels" type="HBoxContainer" parent="."]
|
[node name="TopLabels" type="HBoxContainer" parent="."]
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
|
Loading…
Reference in New Issue
Block a user