Add spine and dialogic museums
This commit is contained in:
10
addons/dialogic/Editor/Common/sidebar_resource_tree.gd
Normal file
10
addons/dialogic/Editor/Common/sidebar_resource_tree.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
@tool
|
||||
extends Tree
|
||||
|
||||
var previous_selected : TreeItem = null
|
||||
|
||||
func _get_drag_data(at_position: Vector2) -> Variant:
|
||||
var item := get_item_at_position(at_position)
|
||||
if item.get_metadata(0) and typeof(item.get_metadata(0)) == TYPE_STRING and item.get_metadata(0).begins_with("res://"):
|
||||
return {"files":[item.get_metadata(0)]}
|
||||
return null
|
||||
Reference in New Issue
Block a user