broken_seals_roguelike/game/addons/data_manager/panels/ResourceRowMainButton.gd

19 lines
279 B
GDScript3
Raw Normal View History

2022-08-03 16:52:21 +02:00
tool
extends Button
var _data : Resource
func get_drag_data(position):
if _data == null:
return null
var d : Dictionary = Dictionary()
d["type"] = "resource"
d["resource"] = _data
d["from"] = self
return d
func set_resource(data : Resource) -> void:
_data = data