Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AnidemDex
Copy link
Owner

@AnidemDex AnidemDex commented Jan 16, 2024

Updates EditorCommandList (yeah, it has a name now) layout, adding collapsible categories.
imageimage

The category name definition is on Command.command_category property (and _get_category aswell, since is supposed to be defined in the command and not in the file that command serializes).
fix #108

Add command_category property to define the command category it belongs to
An script that handles the creation and selection of defined commands.
Add `disable` and `enable`  methods to notify the editor and all childs that editor was enabled or disabled.
Those methods are called on very specific scenarios and can be or not related to editing of a collection.

Add `EditorConstants` (constants.gd) to keep track of editor constants that are related to editor but used by other non main editor related scripts.
Renames `command_list_button_pressed` to `command_button_pressed_callback`  to make it a bit more specific of what command list needs.

Changes argument of Editor `_command_list_button_pressed` from `Script` to `Command` , making easier the creation of commands from other commands (that will probably use more ram due keeping the resources always loaded but we'll see).
Update command list icon even when its disabled.

Listen to DISABLED and ENABLED editor notifications to disable or enable command buttons.
@AnidemDex AnidemDex changed the title Fix 108 Update CommandList layout Jan 20, 2024
@AnidemDex AnidemDex self-assigned this Jan 20, 2024
@AnidemDex AnidemDex added the enhancement New feature or request label Jan 20, 2024
@AnidemDex AnidemDex marked this pull request as ready for review January 20, 2024 23:59
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is supposed to be a file moved, no idea why it added it as a new file 🤔

Add a method to get ProjectSetting custom commands
Add custom commands into the list
Update the way commands are displayed, sorting them after being added.
@AnidemDex AnidemDex merged commit 3b1d58e into main Jan 21, 2024
@AnidemDex AnidemDex deleted the fix-108 branch January 21, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve command list selector adding categories

3 participants