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

Split Script view that updates generated code as blocks are added/ removed #381

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FocusedPhoenixGames
Copy link

  • Script Window code moved from block_code_plugin.gd to main_panel.gd
  • Added Split Script scene
  • "Show Generated Code" button now toggles Split Script view
  • Split Script view has an "Open Window" button that opens the Script Window
  • Split Script view becomes hidden when Script Window is open; users can no longer open multiple Script Windows
  • Split Script and Script Window update generated code as blocks are added/ removed
2025-02-06.21-21-40.mp4

- Added Split Script scene
- "Show Generated Code" button now toggles Split Script view
- Split Script view has an "Open Window" button that opens the Script Window
- Script Window code moved from block_code_plugin.gd to main_panel.gd
- Split Script and Script Window update generated code as blocks are added/ removed
- Added HSplitContainer to main scene with PickerSplit and SplitScriptContainer as child nodes
@FocusedPhoenixGames
Copy link
Author

I'm from the ReBlocks team and I've been working on improving the Generated Script views. These changes allow flexibility for users to see the generated code automatically update and they have the option of viewing it in the editor, or use the window for a 2nd monitor.

I've also added a HSplitContainer to the Main Scene so the split script window is now resizable. The video below demonstrates this and the generated code updating when new blocks are added and removed.

split_script_demo.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants