Wilson E. Alvarez
085cde72af
Fix internal Button set_icon calls to set_button_icon
...
Due to upstream change:
562c666e3d
2024-11-02 21:36:55 -04:00
Serhii Snitsaruk
11abf36c99
Clang format
2024-10-13 20:25:03 +02:00
Alexander Montag
8c557f87f7
Address 2. review for TreeSearch
...
Remove redundant comment
Prune tab_search_context
Fix restore tab on `_tab_closed`
Add break statement
Pass callable by reference in _draw_highlight_item
Refactor _initialize_controls into constructor
Remove redundant if (!line_edit_search)-check
2024-10-13 07:31:35 +02:00
Alexander Montag
6776319472
Implement Tree Search Functionality with Highlighting and Filtering
...
This commit introduces a comprehensive Tree Search feature, including:
- Tree highlighting: Highlights items that match the search query.
- Tree filtering: Filters items so only matches and descendants are
shown.
- Counting descendants: Shows the number of matching items within collapsed branches.
- Jump to next match: on enter.
- (Limbo-)Shortcut: Default CTRL-F.
- Menu entry: Misc->Search Tree.
- Remember separate SearchInfo for each tab.
Key implementation details:
- Optimized performance for large trees
- Implemented recursive filtering for efficiency
- Added UI elements including next/previous match buttons
Development History:
- Initial implementation of highlighting and filtering
- Multiple rounds of performance optimization
- Bug fixes and refactoring for correctness
- UI enhancements and polish
- Code cleanup and style improvements
2024-10-06 06:57:11 +02:00
yds
db7c990f51
Remember loaded BehaviorTrees of last session
2024-09-21 16:23:13 -03:00
Alexander Montag
c2130a7b2f
Fix duplicate entries in Misc->layout
...
Fixes #218
2024-09-17 02:16:47 +02:00
Serhii Snitsaruk
50e9e570dd
Fix loop variables used as copy
2024-09-15 13:32:58 +02:00
yds
4df6647a75
Improve multiple drag and drop
2024-09-14 11:22:52 -03:00
yds
1742018696
Preserve selection after drop
2024-09-13 09:04:18 -03:00
yds
8ee3688da2
Implement task multiple selection and drag and drop
2024-09-13 09:04:18 -03:00
Alexander Montag
ad11f401b1
Generalize EDITOR_DEF macro to fix potential editor setting issues
...
This commit provides a generalized solution to ensure editor settings are
properly initialized and available in both module and GDExtension versions.
While #204 fixed the specific issue with 'limbo_ai/editor/layout', this change
aims to prevent similar problems for all editor settings.
In particular, `limbo_ai/editor/prefer_online_documentation` was also not
available.
Changes:
- Updated EDITOR_DEF macro to handle both module and GDExtension cases
- Remove special case for `limbo_ai/editor/layout` in
LimboAiEditorPlugin from earlier fix.
2024-09-03 16:37:54 +02:00
Alexander Montag
a5517313d2
Fix editor setting initialization for GDExtensions
...
This commit addresses an issue where editor settings were not properly
initialized when using GDExtensions. The problem manifested as an error
message: "Condition '!props.has(pinfo.name)' is true" when trying to
access the "limbo_ai/editor/layout" setting.
Changes:
- Replace Dictionary with PropertyInfo for adding property information
- Add a safeguard to ensure the setting is explicitly set if not present
2024-09-02 10:27:22 +02:00
Serhii Snitsaruk
9da16a1e0f
Clean up unused string names
2024-08-21 20:04:35 +02:00
Serhii Snitsaruk
472f360cf9
Switch to contextual behavior tree upon undo action
2024-08-21 17:30:30 +02:00
Serhii Snitsaruk
c94ec7613d
Add hack to associate undo-redo actions with global history
2024-08-21 16:40:02 +02:00
yds
410efbe0d3
Fix tab names doesn't update when filesystem changes
2024-08-10 11:29:22 -03:00
Serhii Snitsaruk
c19fd54927
Edit task script on double-click (open help for core task)
2024-08-05 16:34:54 +02:00
Serhii Snitsaruk
5a4893fc53
Editor setting to prefer online docs, and open builtin docs by default
2024-08-05 15:46:02 +02:00
yds
3e5e34f5f8
Fix new task script path don't update after changing the setting
2024-07-10 13:23:48 -03:00
Serhii Snitsaruk
254a9ca943
Merge pull request #157 from limbonaut/task-palette-placement
...
Improved layout for wide displays (optional)
2024-07-06 10:08:01 +02:00
Serhii Snitsaruk
bc99965205
Fix compilation with GDExtension
2024-07-06 09:46:22 +02:00
Serhii Snitsaruk
cfa1f70d79
Update banners upon editor settings changed
2024-07-06 09:38:33 +02:00
Serhii Snitsaruk
7c0d49bafa
Reparent banners if using new layout
2024-07-06 09:29:09 +02:00
Serhii Snitsaruk
da9d80d110
Add Misc->Layout options
2024-07-06 09:18:50 +02:00
Serhii Snitsaruk
4787413cb6
Add header to the sidebar
2024-07-05 20:49:16 +02:00
Serhii Snitsaruk
2813728785
Fix connected signal error when loading BT for the second time
2024-07-05 20:32:53 +02:00
Serhii Snitsaruk
2973590533
Flip split offset setting if editor layout changed
2024-07-05 17:53:35 +02:00
Serhii Snitsaruk
b74f664da6
Fix compilation issue with GDExtension
2024-07-05 17:24:32 +02:00
Serhii Snitsaruk
7baa395d3f
Rename to editor_layout
2024-07-05 17:02:29 +02:00
Serhii Snitsaruk
7d6cc1a828
Editor: Adjust layout to work better with task palette on the left
2024-07-04 21:16:35 +02:00
Dave Palais
4cba3b39db
Replace deprecated set_auto_translate call with set_auto_translate_mode
2024-07-02 12:50:56 -05:00
Serhii Snitsaruk
872f7a4532
Editor: Add setting for task palette placement
2024-07-02 11:55:22 +02:00
Wilson E. Alvarez
ce28ed92d2
Fix bottom panel visbility calls
...
Due to upstream change:
eb6ca91ba6
2024-06-29 14:52:05 -04:00
Wilson E. Alvarez
9410031d45
Fix upstream EditorScale header locations
...
Due to upstream change:
4b55c81eba
2024-06-29 14:52:05 -04:00
Serhii Snitsaruk
3bca05bc50
Fix crash on adding a task with bad script base type and improve error handling
2024-06-02 21:58:50 +02:00
Serhii Snitsaruk
a04d4aaca4
Show version info in the editor
...
- Version is set in `limboai_version.py` file and hash is taken from GIT on build.
- Click to copy version info into clipboard.
2024-05-30 16:03:05 +02:00
Serhii Snitsaruk
c9825413c0
Add shortcut for "Close Tab" and clean up input code
2024-05-29 19:13:57 +02:00
Serhii Snitsaruk
2b299c0007
Accept Ctrl-J when LimboAI editor is visible and fix shortcuts not working sometimes
2024-05-29 11:58:59 +02:00
Serhii Snitsaruk
88e468c526
Editor: Add Ctrl+J shortcut for "Jump to Owner" tab action
2024-05-29 11:18:11 +02:00
Serhii Snitsaruk
a0cd983927
Editor: Fix "jump to owner" from subtree and refactor
2024-05-29 10:53:54 +02:00
Serhii Snitsaruk
792502db84
Editor: Add tab context menu option "Open owner scene"
2024-05-28 21:16:26 +02:00
Serhii Snitsaruk
fa3034d190
Remove old editor navigation code
2024-05-28 12:04:02 +02:00
Serhii Snitsaruk
9e0489a034
Editor: Tab button to inspect blackboard plan
2024-05-28 11:16:37 +02:00
Serhii Snitsaruk
a7d4b1e7f7
Editor: Use the full name for tabs if the short name is not unique
2024-05-28 09:46:21 +02:00
Serhii Snitsaruk
127fa678f4
Editor: Add tab context menu
2024-05-27 16:53:44 +02:00
Serhii Snitsaruk
e0d47ddf08
Fix closing last tab leads to crash on exit
2024-05-27 15:36:17 +02:00
Serhii Snitsaruk
57382e10a7
Editor: Show full filename in tabs for BTs saved as built-in resources
2024-05-27 15:06:35 +02:00
Serhii Snitsaruk
0a28feb7a9
Fix GDExtension compilation issues
2024-05-27 14:27:14 +02:00
Serhii Snitsaruk
6f8f95b5de
Editor: Replace BT resource button with tabs
2024-05-27 13:48:08 +02:00
Serhii Snitsaruk
2718271bb1
Clean up & renames
2024-05-15 20:43:24 +02:00