Skip to content

Commit

Permalink
add multi toasty back
Browse files Browse the repository at this point in the history
new preference name, defaulted off
i have a miku toasty and i really really just want to see miku more please
  • Loading branch information
poco0317 committed May 17, 2021
1 parent 237ce90 commit bc0424b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Etterna/Screen/Gameplay/ScreenGameplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ ScreenGameplay::HandleScreenMessage(const ScreenMessage& SM)
StartPlayingSong(MIN_SECONDS_TO_STEP_NEXT_SONG, 0);
} else if (SM == SM_PlayToasty) {
if (PREFSMAN->m_bEasterEggs) {
if (m_Toasty.IsWaiting()) {
if (m_Toasty.IsWaiting() || PREFSMAN->m_AllowMultipleToasties) {
m_Toasty.Reset();
m_Toasty.StartTransitioning();
}
Expand Down
1 change: 1 addition & 0 deletions src/Etterna/Singletons/PrefsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ PrefsManager::PrefsManager()
, m_bDelayedModelDelete("DelayedModelDelete", false)
, m_bDelayedTextureDelete("DelayedTextureDeletion", true)
, m_bEasterEggs("EasterEggs", true)
, m_AllowMultipleToasties("MultiToasty", false)
, EnablePitchRates("EnablePitchRates", true)
, m_bEnableScoreboard("EnableScoreboard", true)
, m_bEventMode("EventMode", true)
Expand Down
1 change: 1 addition & 0 deletions src/Etterna/Singletons/PrefsManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class PrefsManager
Preference<bool> EnablePitchRates;
Preference<bool> LiftsOnOsuHolds;
Preference<bool> m_bEasterEggs;
Preference<bool> m_AllowMultipleToasties;
Preference<bool> m_bUseMidGrades;

// Number of seconds it takes for a button on the controller to release
Expand Down

0 comments on commit bc0424b

Please sign in to comment.