mirror of
https://github.com/Relintai/draw_gd.git
synced 2025-03-10 00:33:25 +01:00
Temp fix for more input errors.
This commit is contained in:
parent
7e402d43d1
commit
7eafebac0a
@ -18,16 +18,29 @@ func _ready() -> void:
|
|||||||
setup_image_menu()
|
setup_image_menu()
|
||||||
|
|
||||||
func setup_file_menu() -> void:
|
func setup_file_menu() -> void:
|
||||||
|
|
||||||
|
# var file_menu_items := {
|
||||||
|
# "New..." : InputMap.get_action_list("new_file")[0].get_scancode_with_modifiers(),
|
||||||
|
# "Open..." : InputMap.get_action_list("open_file")[0].get_scancode_with_modifiers(),
|
||||||
|
# 'Open last project...' : 0,
|
||||||
|
# "Save..." : InputMap.get_action_list("save_file")[0].get_scancode_with_modifiers(),
|
||||||
|
# "Save as..." : InputMap.get_action_list("save_file_as")[0].get_scancode_with_modifiers(),
|
||||||
|
# "Export..." : InputMap.get_action_list("export_file")[0].get_scancode_with_modifiers(),
|
||||||
|
# "Export as..." : InputMap.get_action_list("export_file_as")[0].get_scancode_with_modifiers(),
|
||||||
|
# "Quit" : InputMap.get_action_list("quit")[0].get_scancode_with_modifiers(),
|
||||||
|
# }
|
||||||
|
|
||||||
var file_menu_items := {
|
var file_menu_items := {
|
||||||
"New..." : InputMap.get_action_list("new_file")[0].get_scancode_with_modifiers(),
|
"New..." : 0,
|
||||||
"Open..." : InputMap.get_action_list("open_file")[0].get_scancode_with_modifiers(),
|
"Open..." : 0,
|
||||||
'Open last project...' : 0,
|
'Open last project...' : 0,
|
||||||
"Save..." : InputMap.get_action_list("save_file")[0].get_scancode_with_modifiers(),
|
"Save..." : 0,
|
||||||
"Save as..." : InputMap.get_action_list("save_file_as")[0].get_scancode_with_modifiers(),
|
"Save as..." : 0,
|
||||||
"Export..." : InputMap.get_action_list("export_file")[0].get_scancode_with_modifiers(),
|
"Export..." : 0,
|
||||||
"Export as..." : InputMap.get_action_list("export_file_as")[0].get_scancode_with_modifiers(),
|
"Export as..." : 0,
|
||||||
"Quit" : InputMap.get_action_list("quit")[0].get_scancode_with_modifiers(),
|
"Quit" : 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
file_menu = DrawGD.file_menu.get_popup()
|
file_menu = DrawGD.file_menu.get_popup()
|
||||||
var i := 0
|
var i := 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user