From c19fd54927dc2deb4a88f26f07b3184777dc36d2 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 5 Aug 2024 16:34:54 +0200 Subject: [PATCH] Edit task script on double-click (open help for core task) --- editor/limbo_ai_editor_plugin.cpp | 13 ++++++++++++- editor/limbo_ai_editor_plugin.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/editor/limbo_ai_editor_plugin.cpp b/editor/limbo_ai_editor_plugin.cpp index 32f30a9..2568174 100644 --- a/editor/limbo_ai_editor_plugin.cpp +++ b/editor/limbo_ai_editor_plugin.cpp @@ -776,6 +776,17 @@ void LimboAIEditor::_on_tree_task_selected(const Ref &p_task) { EDIT_RESOURCE(p_task); } +void LimboAIEditor::_on_tree_task_activated() { + Ref selected = task_tree->get_selected(); + ERR_FAIL_COND(selected.is_null()); + Ref