mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 14:10:55 +03:00
Update projects to Godot 3.5 (#827)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
tool
|
||||
extends Node2D
|
||||
|
||||
|
||||
var heart = preload("res://addons/custom_node/heart.png")
|
||||
|
||||
|
||||
func _draw():
|
||||
draw_texture(heart, -heart.get_size() / 2)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
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"))
|
||||
|
||||
Reference in New Issue
Block a user