Branch master was renamed to main.

test-client-godot/addons/input_map_button/input_map_button.gd
2018-07-25 09:36:19 +02:00

12 lines
No EOL
458 B
GDScript

tool
extends EditorPlugin
func _enter_tree():
# Initialization of the plugin goes here
# Add the new type with a name, a parent type, a script and an icon
add_custom_type("input_map_button_node", "HBoxContainer", preload("input_map_button_node.gd"), preload("icon.png"))
func _exit_tree():
# Clean-up of the plugin goes here
# Always remember to remove it from the engine when deactivated
remove_custom_type("input_map_button_node")