Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions addons/contextual/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

name="Contextual"
description="A plugin for creating custom context menus in the godot editor"
author="Jeff Hilton"
version="0.0.1"
script="contextual_plugin.gd"
author="Lions"
version="0.0.0"
script="src/contextual_plugin.gd"
9 changes: 0 additions & 9 deletions addons/contextual/src/contextual_plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ class_name ContextualPlugin extends EditorPlugin

var PLUGIN_NAME = "Contextual"

const SINGLETON_NAME = "InputListener"
const SINGLETON_PATH = "res://addons/contextual/input_listener.gd"

func _enter_tree() -> void:
add_autoload_singleton(SINGLETON_NAME, SINGLETON_PATH)

func _exit_tree() -> void:
remove_autoload_singleton(SINGLETON_NAME)

func _has_main_screen() -> bool: return false
func _get_plugin_name() -> String: return PLUGIN_NAME
func _get_plugin_icon(): return EditorInterface.get_editor_theme().get_icon("Node", "EditorIcons")
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ InputListener="*res://addons/gdlib-editorinput/src/input_listener.gd"

[editor_plugins]

enabled=PackedStringArray("res://addons/gdlib-editorinput/plugin.cfg", "res://addons/tree-access/plugin.cfg")
enabled=PackedStringArray("res://addons/contextual/plugin.cfg", "res://addons/gdlib-editorinput/plugin.cfg", "res://addons/tree-access/plugin.cfg")