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

Layout editor #1421

Merged
merged 5 commits into from
Feb 13, 2023
Merged

Layout editor #1421

merged 5 commits into from
Feb 13, 2023

Conversation

Jowan-Spooner
Copy link
Collaborator

This PR is mostly focused on the layout update. However many small other things have also come up, and I decided to push them into here. Sorry :(.

Layout update

There is now a working layout editor. It has three modes "Preset", "Custom" and "No Scene".
In Preset mode you can select one of the provided presets and customize it's exported variables.
In Cutsom Mode you can select a scene from the file system. You can currently not customize it's exports yet.
In No Scene mode, you can't set anything. The mode doesn't really do anything.

The customization editor parses the exported variables similar to custom por
trait scenes. This meant I moved some of it's functionality into the DialogicUtil, meaning the custom portraits exports also improved.

Added DialogicUtil.get_default_layout() that returns the path to the default layout. Makes it easier to move in case needed.

Removed layout scene settings from general settings page. Also changed the layout there a bit because of that.

Other things

  • Creating timelines/characters didn't add them into the sidebar instantly. Made some changes to the "latest_resource" list changing, to improve this
  • A wrong code prevented event block fields to be hidden when their condition was wrong.
  • Tried out a bit of a different color for the text event text field, but we could change it back if wanted.
  • removed print statements
  • fixed to_int() call to int()
  • fixed portrait position being referenced by global position to correclt place portraits
  • fixed a bug where Event.event_node_ready would prevent events from being played when created from code
  • Default to home page instead of timeline editor for first opening of plugin
  • fixed positioning of non canvas layer based scenes (e.g. Textbubble)
  • Added CTRL+F5 as shortcut for "Play current timeline"

These are now autocreated by their subsystems. This removes a few possible features (which I'm sure can be worked around by professionals) but makes the creation of layout scenes easier (less required nodes).
This is the rest of the layout update. However many small other things have also come up, and I decided to push them into here. Sorry :(.

# Layout update
There is now a working layout editor. It has three modes "Preset", "Custom" and "No Scene". 
In Preset mode you can select one of the provided presets and customize it's exported variables.
In Cutsom Mode you can select a scene from the file system. You can currently not customize it's exports yet.
In No Scene mode, you can't set anything. The mode doesn't really do anything.

The customization editor parses the exported variables similar to custom por
trait scenes. This meant I moved some of it's functionality into the DialogicUtil, meaning the custom portraits exports also improved.

Added DialogicUtil.get_default_layout() that returns the path to the default layout. Makes it easier to move in case needed.

Removed layout scene settings from general settings page. Also changed the layout there a bit because of that.

# Other things
- Creating timelines/characters didn't add them into the sidebar instantly. Made some changes to the "latest_resource" list changing, to improve this
- A wrong code prevented event block fields to be hidden when their condition was wrong. 
- Tried out a bit of a different color for the text event text field, but we could change it back if wanted.
- removed print statements
- fixed to_int() call to int()
- fixed portrait position being referenced by global position to correclt place portraits
 - fixed a bug where Event.event_node_ready would prevent events from being played when created from code
- Default to home page instead of timeline editor for first opening of plugin
- fixed positioning of non canvas layer based scenes (e.g. Textbubble)
- Added CTRL+F5 as shortcut for "Play current timeline"
@Jowan-Spooner Jowan-Spooner merged commit 80a0e0f into main Feb 13, 2023
@Jowan-Spooner Jowan-Spooner deleted the themeing-updates branch February 17, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant