Fixed UI Buttons. TODO: Fix 3D Tile Selection/Hover etc
This commit is contained in:
parent
5b79dc9822
commit
353c2f8dbc
10 changed files with 1014 additions and 74 deletions
29
addons/debug_menu/plugin.gd
Normal file
29
addons/debug_menu/plugin.gd
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
func _enter_tree() -> void:
|
||||
add_autoload_singleton("DebugMenu", "res://addons/debug_menu/debug_menu.tscn")
|
||||
|
||||
# FIXME: This appears to do nothing.
|
||||
# if not ProjectSettings.has_setting("application/config/version"):
|
||||
# ProjectSettings.set_setting("application/config/version", "1.0.0")
|
||||
#
|
||||
# ProjectSettings.set_initial_value("application/config/version", "1.0.0")
|
||||
# ProjectSettings.add_property_info({
|
||||
# name = "application/config/version",
|
||||
# type = TYPE_STRING,
|
||||
# })
|
||||
#
|
||||
# if not InputMap.has_action("cycle_debug_menu"):
|
||||
# InputMap.add_action("cycle_debug_menu")
|
||||
# var event := InputEventKey.new()
|
||||
# event.keycode = KEY_F3
|
||||
# InputMap.action_add_event("cycle_debug_menu", event)
|
||||
#
|
||||
# ProjectSettings.save()
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
remove_autoload_singleton("DebugMenu")
|
||||
# Don't remove the project setting's value and input map action,
|
||||
# as the plugin may be re-enabled in the future.
|
||||
Loading…
Add table
Add a link
Reference in a new issue