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

Dialogic 2.0: Condition event and folding (and more) #921

Merged

Conversation

Jowan-Spooner
Copy link
Collaborator

Condition event

Adds a new condition event. Conditions can be anything the Expression class can parse INCLUDING methods. Currently you can not use variables oc and there is only a text input.
Conditions should work as expected in game, but I could be wrong.

Event folding

The condition and choice event can now be folded. The hiding logic is done in TimelineEditor.indent_events(). More info in the commit.

Fixed the undo command a bit

You can now delete and undo the deletion again. Duplication, copy/paste/cut are on the todo list.

Other stuff

  • added a timeline_ended signal to the DialogicGameHandler and made the preview scene hide on timeline end
  • updated the single-line style to be the same as the resource picker. not optimal, but better looking than before. Sorry UI/UX is not my concern right now.

Tried to make it as simple as possible. Basically:
- EventNode has a new collapsed flag and a new toggle button. The button only shows, if a end_node is set.
- TimelineEditor.indent_events checks if an event is set to collapsed. If so all nodes until the end node of that event will be hidden.
# Condition event
Adds a new condition event. Conditions can be anything the Expression class can parse INCLUDING methods. Currently you can not use variables oc and there is only a text input. 
Conditions should work as expected in game, but I could be wrong.

# Fixed the undo command a bit
You can now delete and undo the deletion again. Duplication, copy/paste/cut are on the todo list.

# Other stuff
- added a timeline_ended signal to the DialogicGameHandler and made the preview scene hide on timeline end
- updated the single-line style to be the same as the resource picker. not optimal, but better looking than before. Sorry UI/UX is not my concern right now.
@coppolaemilio coppolaemilio merged commit 38cf2a9 into dialogic-godot:version-2.0 Jun 9, 2022
@Jowan-Spooner Jowan-Spooner deleted the condition_and_folding branch December 26, 2023 17:50
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.

2 participants