Show tasks without category in "Uncategorized" section

This commit is contained in:
Serhii Snitsaruk 2023-08-22 15:20:24 +02:00
parent e2d596d44a
commit 2fdcff4886
1 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ void TaskPanel::refresh() {
categorized_tasks["Conditions"] = List<String>(); categorized_tasks["Conditions"] = List<String>();
_populate_core_tasks_from_class("BTCondition", &categorized_tasks["Conditions"]); _populate_core_tasks_from_class("BTCondition", &categorized_tasks["Conditions"]);
categorized_tasks["User"] = List<String>(); categorized_tasks["Uncategorized"] = List<String>();
String dir1 = GLOBAL_GET("limbo_ai/behavior_tree/user_task_dir_1"); String dir1 = GLOBAL_GET("limbo_ai/behavior_tree/user_task_dir_1");
_populate_from_user_dir(dir1, &categorized_tasks); _populate_from_user_dir(dir1, &categorized_tasks);
@ -625,7 +625,7 @@ void TaskPanel::_populate_from_user_dir(String p_path, HashMap<String, List<Stri
String category; String category;
if (fn == ".") { if (fn == ".") {
full_path = p_path; full_path = p_path;
category = "User"; category = "Uncategorized";
} else { } else {
full_path = p_path.path_join(fn); full_path = p_path.path_join(fn);
category = fn.capitalize(); category = fn.capitalize();