mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
19 lines
279 B
GDScript3
19 lines
279 B
GDScript3
|
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
|