Logo

Changing a SM5 Preference In-Game?

Register Log In Back To Forums

Post #1 · Posted at 2016-10-10 05:09:14am 7.5 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
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!
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #2 · Posted at 2016-10-10 08:32:31am 7.5 years ago

Offline dbk2
dbk2 Avatar Member
332 Posts
Not Set
Reg. 2012-04-30


Last updated: 2016-10-10 12:20pm
I'll assume you mean RandomBackgroundMode since StepMania 5 doesn't have a preference titled BackgroundMode.

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

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
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.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 4% · Server Time: 2024-04-26 16:44:34
This page took 0.005 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language