Post #1 · Posted at 2016-10-10 05:09:14am 7.5 years ago
leadbman | |
---|---|
Member | |
263 Posts | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
Hi all,
Just wondering if it would be possible to change a preference during gameplay rather than via the options screen? What I would like to do is be able to change:
BackgroundMode to BGMODE_ANIMATIONS rather than BGMODE_RANDOMMOVIES for a specific set of songs using an if statement.
I've already got the announcer swapping correctly so I'd just add this new line to that code, I'd just like some help getting the movies to change over. I've had trouble finding out the correct way to code this change.
Hope someone can help me out!
Just wondering if it would be possible to change a preference during gameplay rather than via the options screen? What I would like to do is be able to change:
BackgroundMode to BGMODE_ANIMATIONS rather than BGMODE_RANDOMMOVIES for a specific set of songs using an if statement.
I've already got the announcer swapping correctly so I'd just add this new line to that code, I'd just like some help getting the movies to change over. I've had trouble finding out the correct way to code this change.
Hope someone can help me out!
Post #2 · Posted at 2016-10-10 08:32:31am 7.5 years ago
I'll assume you mean RandomBackgroundMode since StepMania 5 doesn't have a preference titled BackgroundMode.
You can change RandomBackgroundMode with:
You should be aware, however, that using PREFSMAN to change preferences can be problematic because:
1. Once they are set, preferences will stay set until manually changed again.
2. Your users may not realize their preferences are being changed by your theme.
3. It is possible for them to change themes and have a preference set in a way they don't want and not understand why or how to change it.
You can change RandomBackgroundMode with:
Quote
PREFSMAN:SetPreference("RandomBackgroundMode", "RandomBackgroundMode_Animations")
You should be aware, however, that using PREFSMAN to change preferences can be problematic because:
1. Once they are set, preferences will stay set until manually changed again.
2. Your users may not realize their preferences are being changed by your theme.
3. It is possible for them to change themes and have a preference set in a way they don't want and not understand why or how to change it.
Post #3 · Posted at 2016-10-10 08:53:16am 7.5 years ago
leadbman | |
---|---|
Member | |
263 Posts | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
Awesome, I'll try that. It's for my own personal theme. I'm making it work so that when I play songs from a specific time in DDR's history, the background animations/movies, announcer, etc will change. What I have been doing is once the user returns to the music select screen it resets all values back to what they were.
I'll let you know how I go.
I'll let you know how I go.