Skip to content

Conversation

@kszlim
Copy link

@kszlim kszlim commented May 5, 2020

Added event support (breaks, videos, background)

I don't expect this to be accepted as is, but wanted to see if this is roughly along the lines of what you expect.

Missing:
Docstrings
Tests (1 simple test case is available)

@llllllllll llllllllll self-requested a review May 5, 2020 18:07
event_type, start_time, *event_params = data.split(',')
try:
start_time = int(start_time)
start_time = timedelta(milliseconds=start_time)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming timedelta in this lib is used to refer to delta from beginning vs delta from last event?

@Liam-DeVoe
Copy link
Collaborator

not sure why I never reviewed this PR properly but I'll try and get this in once my exams are over (only 2 years late...)

@Liam-DeVoe
Copy link
Collaborator

I pushed some significant structure changes to try and get this into a better state. I also removed the unimplemented events (sprite/animation) instead of half-implementing them; was more trouble than it's worth. Let me know if you disagree with any of my changes.

@kszlim
Copy link
Author

kszlim commented May 19, 2022

Honestly I've forgotten about how this PR mostly works, so feel free to make whatever changes you like.

@Liam-DeVoe
Copy link
Collaborator

no worries, I kinda figured that was the case

@Liam-DeVoe
Copy link
Collaborator

Liam-DeVoe commented May 30, 2022

for anyone following along - I'm not happy with how this PR deals with not-yet-implemented events, so I need to work on that before pushing this along. I have some local changes to that effect but I'm not happy with them either. I would say it would be less effort to just fully implement the rest of the events, but storyboard events are so underdocumented that I don't really want to touch it yet.

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