diff --git a/addons/pandora/plugin.cfg b/addons/pandora/plugin.cfg index e1b7a1c..fc8d394 100644 --- a/addons/pandora/plugin.cfg +++ b/addons/pandora/plugin.cfg @@ -3,5 +3,5 @@ name="Pandora" description="📦 Store items, inventories, spells, mobs and more." author="bitbrain" -version="1.0-alpha4" +version="1.0-alpha6" script="plugin.gd" diff --git a/addons/pandora/ui/components/entity_tree/entity_tree.gd b/addons/pandora/ui/components/entity_tree/entity_tree.gd index 9feb497..4db5f3d 100644 --- a/addons/pandora/ui/components/entity_tree/entity_tree.gd +++ b/addons/pandora/ui/components/entity_tree/entity_tree.gd @@ -50,9 +50,9 @@ func _search_item_recursive(item: TreeItem, text: String) -> bool: func queue_delete(entity_id:String) -> void: - confirm("Confirmation Needed", "Are you sure you want to delete?", func(): - var item = entity_items[entity_id] - var entity = item.get_metadata(0) as PandoraEntity + var item = entity_items[entity_id] + var entity = item.get_metadata(0) as PandoraEntity + confirm("Confirmation Needed", "Are you sure you want to delete '%s'?" % entity.get_entity_name(), func(): entity_deletion_issued.emit(entity) if item.get_parent() != null: item.get_parent().remove_child(item) diff --git a/addons/pandora/ui/components/entity_tree/entity_tree.tscn b/addons/pandora/ui/components/entity_tree/entity_tree.tscn index a732c0b..f509fa6 100644 --- a/addons/pandora/ui/components/entity_tree/entity_tree.tscn +++ b/addons/pandora/ui/components/entity_tree/entity_tree.tscn @@ -19,4 +19,5 @@ layout_mode = 1 [node name="ConfirmationDialog" type="ConfirmationDialog" parent="."] initial_position = 2 -dialog_text = "Are you sure you want to delete?" +size = Vector2i(303, 80) +dialog_text = "Are you sure you want to delete '%s'?"