Lots of localization setup, added controller BBCode stuff also.
This commit is contained in:
19
addons/controller_icons/plugin.gd
Normal file
19
addons/controller_icons/plugin.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
var inspector_plugin : EditorInspectorPlugin
|
||||
|
||||
func _enable_plugin():
|
||||
add_autoload_singleton("ControllerIcons", "res://addons/controller_icons/ControllerIcons.gd")
|
||||
|
||||
func _disable_plugin():
|
||||
remove_autoload_singleton("ControllerIcons")
|
||||
|
||||
func _enter_tree():
|
||||
inspector_plugin = preload("res://addons/controller_icons/objects/ControllerIconEditorInspector.gd").new()
|
||||
inspector_plugin.editor_interface = get_editor_interface()
|
||||
|
||||
add_inspector_plugin(inspector_plugin)
|
||||
|
||||
func _exit_tree():
|
||||
remove_inspector_plugin(inspector_plugin)
|
Reference in New Issue
Block a user