Compare commits

..

1 Commits

Author SHA1 Message Date
Wilson E. Alvarez 674bad1ea6
Merge 9b7832af31 into 7aebed5897 2025-01-23 23:38:59 +03:00
3 changed files with 12 additions and 19 deletions

View File

@ -14,10 +14,6 @@ You can change your decision at any time - both versions are fully compatible.
Get GDExtension version Get GDExtension version
------------------------ ------------------------
Precompiled builds are available on the official
`LimboAI GitHub <https://github.com/limbonaut/limboai#getting-limboai>`_ page,
and in the Asset Library.
GDExtension is the most convenient way of using the LimboAI plugin, but it comes GDExtension is the most convenient way of using the LimboAI plugin, but it comes
with certain limitations: with certain limitations:
@ -38,7 +34,8 @@ Get module version
------------------- -------------------
Precompiled builds are available on the official Precompiled builds are available on the official
`LimboAI GitHub <https://github.com/limbonaut/limboai#getting-limboai>`_ page. `LimboAI GitHub <https://github.com/limbonaut/limboai#getting-limboai>`_ page,
and in the Asset Library (coming soon!).
Installation instructions: Installation instructions:
@ -47,5 +44,3 @@ Installation instructions:
3. Extract the pre-compiled editor and the demo project files. 3. Extract the pre-compiled editor and the demo project files.
4. Launch the pre-compiled editor binary, import and open the demo project. 4. Launch the pre-compiled editor binary, import and open the demo project.
5. Run the project. 5. Run the project.
**Important**: To export your game using the module version of LimboAI, make sure to use the pre-compiled export templates included in the same GitHub release build.

View File

@ -917,7 +917,6 @@ void LimboAIEditor::_on_visibility_changed() {
} }
task_palette->refresh(); task_palette->refresh();
_update_banners();
} }
_update_favorite_tasks(); _update_favorite_tasks();
@ -1420,11 +1419,9 @@ void LimboAIEditor::_update_misc_menu() {
} }
void LimboAIEditor::_update_banners() { void LimboAIEditor::_update_banners() {
for (int i = banners->get_child_count() - 1; i >= 0; i--) { for (int i = 0; i < banners->get_child_count(); i++) {
if (banners->get_child(i)->has_meta(LW_NAME(managed))) { if (banners->get_child(i)->has_meta(LW_NAME(managed))) {
Node *banner = banners->get_child(i); banners->get_child(i)->queue_free();
banners->remove_child(banner);
memfree(banner);
} }
} }
@ -1438,7 +1435,7 @@ void LimboAIEditor::_update_banners() {
banner->add_spacer(); banner->add_spacer();
banner->add_action(TTR("Help..."), callable_mp(LimboUtility::get_singleton(), &LimboUtility::open_doc_custom_tasks)); banner->add_action(TTR("Help..."), callable_mp(LimboUtility::get_singleton(), &LimboUtility::open_doc_custom_tasks));
banner->set_meta(LW_NAME(managed), Variant(true)); banner->set_meta(LW_NAME(managed), Variant(true));
banners->add_child(banner); banners->call_deferred(LW_NAME(add_child), banner);
} }
} }
@ -1452,7 +1449,7 @@ void LimboAIEditor::_update_banners() {
banner->add_action(TTR("Remove"), callable_mp(this, &LimboAIEditor::_remove_task_from_favorite).bind(task_meta), true); banner->add_action(TTR("Remove"), callable_mp(this, &LimboAIEditor::_remove_task_from_favorite).bind(task_meta), true);
banner->add_action(TTR("Edit Favorite Tasks..."), callable_mp(this, &LimboAIEditor::_edit_project_settings)); banner->add_action(TTR("Edit Favorite Tasks..."), callable_mp(this, &LimboAIEditor::_edit_project_settings));
banner->set_meta(LW_NAME(managed), Variant(true)); banner->set_meta(LW_NAME(managed), Variant(true));
banners->add_child(banner); banners->call_deferred(LW_NAME(add_child), banner);
} }
} }
@ -1462,7 +1459,7 @@ void LimboAIEditor::_update_banners() {
banner->set_text(TTR("Restart required to apply changes to editor layout")); banner->set_text(TTR("Restart required to apply changes to editor layout"));
banner->add_action(TTR("Save & Restart"), callable_mp(this, &LimboAIEditor::_save_and_restart), true); banner->add_action(TTR("Save & Restart"), callable_mp(this, &LimboAIEditor::_save_and_restart), true);
banner->set_meta(LW_NAME(managed), Variant(true)); banner->set_meta(LW_NAME(managed), Variant(true));
banners->add_child(banner); banners->call_deferred(LW_NAME(add_child), banner);
} }
} }
@ -1511,6 +1508,7 @@ void LimboAIEditor::_notification(int p_what) {
task_tree->connect("task_activated", callable_mp(this, &LimboAIEditor::_on_tree_task_activated)); task_tree->connect("task_activated", callable_mp(this, &LimboAIEditor::_on_tree_task_activated));
task_tree->connect("probability_clicked", callable_mp(this, &LimboAIEditor::_action_selected).bind(ACTION_EDIT_PROBABILITY)); task_tree->connect("probability_clicked", callable_mp(this, &LimboAIEditor::_action_selected).bind(ACTION_EDIT_PROBABILITY));
task_tree->connect("visibility_changed", callable_mp(this, &LimboAIEditor::_on_visibility_changed)); task_tree->connect("visibility_changed", callable_mp(this, &LimboAIEditor::_on_visibility_changed));
task_tree->connect("visibility_changed", callable_mp(this, &LimboAIEditor::_update_banners));
save_btn->connect(LW_NAME(pressed), callable_mp(this, &LimboAIEditor::_on_save_pressed)); save_btn->connect(LW_NAME(pressed), callable_mp(this, &LimboAIEditor::_on_save_pressed));
misc_btn->connect(LW_NAME(pressed), callable_mp(this, &LimboAIEditor::_update_misc_menu)); misc_btn->connect(LW_NAME(pressed), callable_mp(this, &LimboAIEditor::_update_misc_menu));
misc_btn->get_popup()->connect("id_pressed", callable_mp(this, &LimboAIEditor::_misc_option_selected)); misc_btn->get_popup()->connect("id_pressed", callable_mp(this, &LimboAIEditor::_misc_option_selected));

View File

@ -1,10 +1,10 @@
# Edit the following variables to change version info # Edit the following variables to change version info
major = 1 major = 1
minor = 3 minor = 4
patch = 1 patch = 0
status = "" status = "dev"
doc_branch = "v1.3.1" doc_branch = "latest"
godot_cpp_ref = "godot-4.3-stable" godot_cpp_ref = "godot-4.3-stable"
# Code that generates version header # Code that generates version header