Compare commits
2 Commits
b3f5b270d5
...
51deb2164b
Author | SHA1 | Date |
---|---|---|
ydeltastar | 51deb2164b | |
yds | ec53d08b69 |
|
@ -914,6 +914,13 @@ void LimboAIEditor::_on_resources_reload(const PackedStringArray &p_resources) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LimboAIEditor::_on_filesystem_changed() {
|
||||||
|
if (history.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_update_tabs();
|
||||||
|
}
|
||||||
|
|
||||||
void LimboAIEditor::_on_new_script_pressed() {
|
void LimboAIEditor::_on_new_script_pressed() {
|
||||||
SCRIPT_EDITOR()->open_script_create_dialog("BTAction", String(GLOBAL_GET("limbo_ai/behavior_tree/user_task_dir_1")).path_join("new_task"));
|
SCRIPT_EDITOR()->open_script_create_dialog("BTAction", String(GLOBAL_GET("limbo_ai/behavior_tree/user_task_dir_1")).path_join("new_task"));
|
||||||
}
|
}
|
||||||
|
@ -1403,6 +1410,7 @@ void LimboAIEditor::_notification(int p_what) {
|
||||||
version_btn->connect(LW_NAME(pressed), callable_mp(this, &LimboAIEditor::_copy_version_info));
|
version_btn->connect(LW_NAME(pressed), callable_mp(this, &LimboAIEditor::_copy_version_info));
|
||||||
|
|
||||||
EDITOR_FILE_SYSTEM()->connect("resources_reload", callable_mp(this, &LimboAIEditor::_on_resources_reload));
|
EDITOR_FILE_SYSTEM()->connect("resources_reload", callable_mp(this, &LimboAIEditor::_on_resources_reload));
|
||||||
|
EDITOR_FILE_SYSTEM()->connect("filesystem_changed", callable_mp(this, &LimboAIEditor::_on_filesystem_changed));
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
|
|
|
@ -237,6 +237,7 @@ private:
|
||||||
void _on_history_forward();
|
void _on_history_forward();
|
||||||
void _on_task_dragged(Ref<BTTask> p_task, Ref<BTTask> p_to_task, int p_type);
|
void _on_task_dragged(Ref<BTTask> p_task, Ref<BTTask> p_to_task, int p_type);
|
||||||
void _on_resources_reload(const PackedStringArray &p_resources);
|
void _on_resources_reload(const PackedStringArray &p_resources);
|
||||||
|
void _on_filesystem_changed();
|
||||||
void _on_new_script_pressed();
|
void _on_new_script_pressed();
|
||||||
void _task_type_selected(const String &p_class_or_path);
|
void _task_type_selected(const String &p_class_or_path);
|
||||||
void _copy_version_info();
|
void _copy_version_info();
|
||||||
|
|
Loading…
Reference in New Issue