diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-03 10:30:38 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-03 10:30:38 -0300 |
commit | c7d45ec085086ab86192a7890b9622320d57b89d (patch) | |
tree | 0a764a6a2b7bded960a652c81a4b5a6815dd3c31 /demos/plugins/custom_node | |
parent | f9af57f3bdb16e015ee10b979fe18cf2195077f9 (diff) |
Removed demos
they go to their own project now
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" - - - - - - - |