blob: d53c92d80042539a7d373b8cdb86d2d0f8a8dece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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())
|