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

Character Editor Update #1380

Merged
merged 7 commits into from
Dec 30, 2022
Merged

Character Editor Update #1380

merged 7 commits into from
Dec 30, 2022

Conversation

Jowan-Spooner
Copy link
Collaborator

@Jowan-Spooner Jowan-Spooner commented Dec 27, 2022

Big features

Groups for portrait list

grafik

The portrait list now allows to add groups. These are not actually saved. If a portrait is in a group it will be saved as it's full path (with / e.g.: "Group/Subgroup/Portrait").
You can now also drag and drop to reorder/reparent portrait items.

Custom exports

Custom portrait scenes now have a Export tab in the portrait settings section. If the scenes script has some exported variables, they will be listed there.

For scenes that are in @tool mode, updates can be shown in editor (even with transitions if _should_do_portrait_update() returns true).

These "export_overrides" are saved in the portrait data and applied on change_portrait().
grafik
grafik

Small changes

# Autosave on all changes for the character editor
This is not optimal, but is a quick fix for the portrait preview not working. Also character resources aren't complex enough to make this a problem I believe.

# Move global portrait settings to seperate tab
This makes default portrait and main_scale, *_offset and *_mirror part of the character editor again in the portrait section. This makes the editor less crowded.
New portrait settings section "Exports" if a custom portrait scene is selected. This tab shows all the exported variables of that scene and allows to set those.

The editor will now also keep the same scene if _should_do_portrait_update is defined and true. This allows blending from one portrait to the other in editor.
- makes sure typing pitch cannot be set to <= 0 by randomness.

- forgot to stage the code that actually makes the export overrides work in game
The groups are just a fake representations of portraits named with / in them. 

So "Emotions/Happy" will be represented as a group Emotions with an item Happy. 

As this was quite the change from the single level list we had before, many things like searching had to be redone. Search will only look for portrait items (not group items).
@coppolaemilio coppolaemilio merged commit 26cf363 into main Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working Feature✨ Noob Friendly 👍 Good for newcomers UI/UX ✏
Projects
None yet
2 participants