-
Notifications
You must be signed in to change notification settings - Fork 20
Parse background and video events #122
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks! @OliBomby would you be interested in the commit bit on slider? I have less time to maintain it that I used to and you've sent good PRs over the years. |
| background = None | ||
| video = None | ||
| if 'Events' in groups: | ||
| for line in groups['Events']: | ||
| if line.startswith('0'): | ||
| background = line.split('\"')[1] | ||
| elif line.startswith('Video') or line.startswith('1'): | ||
| video = line.split('\"')[1] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can there ever be more than one background or video? I supported multiple in #69. I only ask because it matters whether we expose .background or .backgrounds to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some tests in osu! stable and it seems to only load the first background in the file and for videos im not sure, because it seems to support multiple videos but the second video wouldn't play for me, at most showing a black screen or a single frame.
I have a vague memory of some issue thread that wanted to fix multiple videos, but I can't find it.
I use slider for my projects so it would be nice to have the ability to quickly make changes and push out new versions on pip. However i don't plan on actively closing issues beyond the ones I encounter in my projects. |
|
Hi, whats the current state on this? I would love to see this getting merged. |
Every good beatmap at least has a background