Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update editor view #172

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

Update editor view #172

wants to merge 25 commits into from

Conversation

AnidemDex
Copy link
Owner

@AnidemDex AnidemDex commented Sep 8, 2024

image

This is a kinda big update and I used this chance to adjust things for the future.

What's new?

I think it also fix #161 and fix #107 (fix #92 for sure, fix #164)

Since now our command blocks are nodes and not objects (as was before with Tree), users can make their own blocks in custom scenes. I decided to not make the whole block replicate the old Tree look to force me to create a scene that mimics that old TreeItem look

FancyDisplayer is a Displayer alternative, adding more details to command blocks, using Block and BlockCell nodes as visual representation of commands.
Add extra information at the end of the command for advanced scenarios. This will serve for template creation
This editor uses a fancy displayer, a new displayer that uses nodes to create the command list
Node based blocks that acts as a visual representation of a command
Add update function, that forces the recreation of its structuree
Made to ensure proper coloring in the future modifications
Deprecates background_color.
Deprecates command_hint_icon.
Deprecates command_text_color.
Deprecates defines_default_branches
Deprecates can_be_moved
Deprecates can_be_selected
Deprecates go_to_branch()

Marks _add_variable as experimental.
Marks _remove_variable as experimental.
Marks _add_signal as experimental.
Marks _remove_signal as experimental.
Marks _add_function as experimental.
Marks _remove_function as experimental.
Add "Command Data" group.
Add "Block" group.
Add block_name property.
Add block_color property.
Add block_custom_color property.
Add block_icon property.

Add debug properties for advanced debugging.
Expose command_ properties as read-only properties.
Update block script to reflect changes in command properties
Add command_selected signal
Hide left section if no timeline is selected (future update)
Update its container flags
Update collection usage
Hopefully, nothing breaks
Make block change when command block_ properties are changed
@AnidemDex AnidemDex added enhancement New feature or request editor Is related to editor labels Sep 8, 2024
@AnidemDex AnidemDex added this to the 1.x milestone Sep 8, 2024
@AnidemDex
Copy link
Owner Author

Bugs so far:

  • UndoRedo doesn't work
  • Because of that, block operations fails

This splits the views to have the runtime view sepparated from the editor view (little redundant but can't find a better selection of words
@AnidemDex
Copy link
Owner Author

UndoRedo restored splitting runtime and editor behavior

@AnidemDex AnidemDex marked this pull request as draft October 20, 2024 18:36
Remove editors, static variables seems bugged, preventing the script clean the static variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Is related to editor enhancement New feature or request
Projects
None yet
1 participant