diff options
Diffstat (limited to 'demos/plugins/custom_node')
-rw-r--r-- | demos/plugins/custom_node/heart.gd | 12 | ||||
-rw-r--r-- | demos/plugins/custom_node/heart.png | bin | 12584 -> 0 bytes | |||
-rw-r--r-- | demos/plugins/custom_node/heart_icon.png | bin | 809 -> 0 bytes | |||
-rw-r--r-- | demos/plugins/custom_node/heart_plugin.gd | 18 | ||||
-rw-r--r-- | demos/plugins/custom_node/plugin.cfg | 14 |
5 files changed, 0 insertions, 44 deletions
diff --git a/demos/plugins/custom_node/heart.gd b/demos/plugins/custom_node/heart.gd deleted file mode 100644 index d53c92d800..0000000000 --- a/demos/plugins/custom_node/heart.gd +++ /dev/null @@ -1,12 +0,0 @@ -tool -extends Node2D - - -var heart = preload("res://addons/custom_node/heart.png") - -func _draw(): - draw_texture(heart,-heart.get_size()/2) - -func _get_item_rect(): - #override - return Rect2(-heart.get_size()/2,heart.get_size()) diff --git a/demos/plugins/custom_node/heart.png b/demos/plugins/custom_node/heart.png Binary files differdeleted file mode 100644 index 1dfd14a456..0000000000 --- a/demos/plugins/custom_node/heart.png +++ /dev/null diff --git a/demos/plugins/custom_node/heart_icon.png b/demos/plugins/custom_node/heart_icon.png Binary files differdeleted file mode 100644 index 2eb819aa24..0000000000 --- a/demos/plugins/custom_node/heart_icon.png +++ /dev/null diff --git a/demos/plugins/custom_node/heart_plugin.gd b/demos/plugins/custom_node/heart_plugin.gd deleted file mode 100644 index 01a6177c9b..0000000000 --- a/demos/plugins/custom_node/heart_plugin.gd +++ /dev/null @@ -1,18 +0,0 @@ -tool -extends EditorPlugin - - -func _enter_tree(): - # When this plugin node enters tree, add the custom type - - add_custom_type("Heart","Node2D",preload("res://addons/custom_node/heart.gd"),preload("res://addons/custom_node/heart_icon.png")) - -func _exit_tree(): - # When the plugin node exits the tree, remove the custom type - - remove_custom_type("Heart") - - - - -
\ No newline at end of file diff --git a/demos/plugins/custom_node/plugin.cfg b/demos/plugins/custom_node/plugin.cfg deleted file mode 100644 index ebb4b56499..0000000000 --- a/demos/plugins/custom_node/plugin.cfg +++ /dev/null @@ -1,14 +0,0 @@ -[plugin] - -name="Heart" -description="Adds a new Heart node in 2D" -author="Juan Linietsky" -version="1.0" -script="heart_plugin.gd" - - - - - - - |