1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Add missing menu shortcuts

This commit is contained in:
Emmanouil Papadeas 2022-05-21 00:50:39 +03:00
parent b8ed7b382e
commit 2ae7d638d4
2 changed files with 118 additions and 0 deletions

View file

@ -754,6 +754,82 @@ activate_right_tool={
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":5,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":5,"pressure":0.0,"pressed":false,"script":null)
] ]
} }
open_last_project={
"deadzone": 0.5,
"events": [ ]
}
preferences={
"deadzone": 0.5,
"events": [ ]
}
scale_image={
"deadzone": 0.5,
"events": [ ]
}
centralize_image={
"deadzone": 0.5,
"events": [ ]
}
crop_image={
"deadzone": 0.5,
"events": [ ]
}
resize_canvas={
"deadzone": 0.5,
"events": [ ]
}
mirror_image={
"deadzone": 0.5,
"events": [ ]
}
rotate_image={
"deadzone": 0.5,
"events": [ ]
}
invert_colors={
"deadzone": 0.5,
"events": [ ]
}
desaturation={
"deadzone": 0.5,
"events": [ ]
}
outline={
"deadzone": 0.5,
"events": [ ]
}
drop_shadow={
"deadzone": 0.5,
"events": [ ]
}
adjust_hsv={
"deadzone": 0.5,
"events": [ ]
}
gradient={
"deadzone": 0.5,
"events": [ ]
}
view_splash_screen={
"deadzone": 0.5,
"events": [ ]
}
issue_tracker={
"deadzone": 0.5,
"events": [ ]
}
open_logs_folder={
"deadzone": 0.5,
"events": [ ]
}
changelog={
"deadzone": 0.5,
"events": [ ]
}
about_pixelorama={
"deadzone": 0.5,
"events": [ ]
}
[locale] [locale]

View file

@ -233,6 +233,8 @@ func _initialize_keychain() -> void:
Keychain.actions = { Keychain.actions = {
"new_file": Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.NEW), "new_file": Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.NEW),
"open_file": Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.OPEN), "open_file": Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.OPEN),
"open_last_project":
Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.OPEN_LAST_PROJECT),
"save_file": Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.SAVE), "save_file": Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.SAVE),
"save_file_as": "save_file_as":
Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.SAVE_AS), Keychain.MenuInputAction.new("", "File menu", true, "FileMenu", FileMenu.SAVE_AS),
@ -251,6 +253,34 @@ func _initialize_keychain() -> void:
"delete": Keychain.MenuInputAction.new("", "Edit menu", true, "EditMenu", EditMenu.DELETE), "delete": Keychain.MenuInputAction.new("", "Edit menu", true, "EditMenu", EditMenu.DELETE),
"new_brush": "new_brush":
Keychain.MenuInputAction.new("", "Edit menu", true, "EditMenu", EditMenu.NEW_BRUSH), Keychain.MenuInputAction.new("", "Edit menu", true, "EditMenu", EditMenu.NEW_BRUSH),
"preferences":
Keychain.MenuInputAction.new("", "Edit menu", true, "EditMenu", EditMenu.PREFERENCES),
"scale_image":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.SCALE_IMAGE),
"centralize_image":
Keychain.MenuInputAction.new(
"", "Image menu", true, "ImageMenu", ImageMenu.CENTRALIZE_IMAGE
),
"crop_image":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.CROP_IMAGE),
"resize_canvas":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.RESIZE_CANVAS),
"mirror_image":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.FLIP),
"rotate_image":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.ROTATE),
"invert_colors":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.INVERT_COLORS),
"desaturation":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.DESATURATION),
"outline":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.OUTLINE),
"drop_shadow":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.DROP_SHADOW),
"adjust_hsv":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.HSV),
"gradient":
Keychain.MenuInputAction.new("", "Image menu", true, "ImageMenu", ImageMenu.GRADIENT),
"mirror_view": "mirror_view":
Keychain.MenuInputAction.new("", "View menu", true, "ViewMenu", ViewMenu.MIRROR_VIEW), Keychain.MenuInputAction.new("", "View menu", true, "ViewMenu", ViewMenu.MIRROR_VIEW),
"show_grid": "show_grid":
@ -279,8 +309,20 @@ func _initialize_keychain() -> void:
Keychain.MenuInputAction.new("", "Select menu", true, "SelectMenu", SelectMenu.SELECT_ALL), Keychain.MenuInputAction.new("", "Select menu", true, "SelectMenu", SelectMenu.SELECT_ALL),
"invert_selection": "invert_selection":
Keychain.MenuInputAction.new("", "Select menu", true, "SelectMenu", SelectMenu.INVERT), Keychain.MenuInputAction.new("", "Select menu", true, "SelectMenu", SelectMenu.INVERT),
"view_splash_screen":
Keychain.MenuInputAction.new(
"", "Help menu", true, "HelpMenu", HelpMenu.VIEW_SPLASH_SCREEN
),
"open_docs": "open_docs":
Keychain.MenuInputAction.new("", "Help menu", true, "HelpMenu", HelpMenu.ONLINE_DOCS), Keychain.MenuInputAction.new("", "Help menu", true, "HelpMenu", HelpMenu.ONLINE_DOCS),
"issue_tracker":
Keychain.MenuInputAction.new("", "Help menu", true, "HelpMenu", HelpMenu.ISSUE_TRACKER),
"open_logs_folder":
Keychain.MenuInputAction.new("", "Help menu", true, "HelpMenu", HelpMenu.OPEN_LOGS_FOLDER),
"changelog":
Keychain.MenuInputAction.new("", "Help menu", true, "HelpMenu", HelpMenu.CHANGELOG),
"about_pixelorama":
Keychain.MenuInputAction.new("", "Help menu", true, "HelpMenu", HelpMenu.ABOUT_PIXELORAMA),
"zoom_in": Keychain.InputAction.new("", "Canvas"), "zoom_in": Keychain.InputAction.new("", "Canvas"),
"zoom_out": Keychain.InputAction.new("", "Canvas"), "zoom_out": Keychain.InputAction.new("", "Canvas"),
"camera_left": Keychain.InputAction.new("", "Canvas"), "camera_left": Keychain.InputAction.new("", "Canvas"),