Added preference for showing multiple toasties in one song. Added IsWaiting to Transition.
This commit is contained in:
@@ -345,6 +345,7 @@ AllowExtraStage=When enabled (and Event Mode isn't on), allows the player to ear
|
||||
AllowSongDeletion=Allow players to permanently delete songs from the system by pressing Ctrl+Backspace when browsing the music wheel.
|
||||
AllowW1=Enable or disable fantastic judgement. NEVER - never show Fantastic, COURSES ONLY - only during nonstop/oni modes, ALWAYS - all modes of play.
|
||||
AllowMultipleHighScoreWithSameName=If turned off, only the highest score with a given name will be saved. If turned on, it will allow mutliple high scores with a given name to be saved.
|
||||
AllowMultipleToasties=Allow multiple toasties to be shown in one song.
|
||||
Announcer=Choose from this list of installed announcer packs.
|
||||
Appearance=Appearance
|
||||
Appearance Options=Change the theme, announcer, and other style options.
|
||||
@@ -943,6 +944,7 @@ AllowExtraStage=Allow Extra Stage
|
||||
AllowSongDeletion=Allow Song Deletion
|
||||
AllowW1=Fantastic Timing
|
||||
AllowMultipleHighScoreWithSameName=Competitive Mode
|
||||
AllowMultipleToasties=Extra Toast
|
||||
Alter=Alter
|
||||
Announcer=Announcer
|
||||
Appearance=Appearance
|
||||
|
||||
@@ -3100,7 +3100,7 @@ Fallback="ScreenOptionsServiceChild"
|
||||
NextScreen="ScreenOptionsService"
|
||||
PrevScreen="ScreenOptionsService"
|
||||
# stuff tied to arcade features
|
||||
LineNames="1,2,3,4,5,6,7,8,9,HHLP,10,11,12,13,14"
|
||||
LineNames="1,2,3,4,5,6,7,8,AMT,9,HHLP,10,11,12,13,14"
|
||||
Line1="conf,GetRankingName"
|
||||
Line2="conf,CoinMode"
|
||||
Line3="conf,SongsPerPlay"
|
||||
@@ -3109,6 +3109,7 @@ Line5="conf,Premium"
|
||||
Line6="conf,EventMode"
|
||||
Line7="conf,AllowMultipleHighScoreWithSameName"
|
||||
Line8="conf,ComboContinuesBetweenSongs"
|
||||
LineAMT="conf,AllowMultipleToasties"
|
||||
Line9="conf,Disqualification"
|
||||
LineHHLP="conf,HarshHotLifePenalty"
|
||||
Line10="conf,FailOffForFirstStageEasy"
|
||||
|
||||
@@ -223,6 +223,7 @@ PrefsManager::PrefsManager() :
|
||||
m_iSongsPerPlay ( "SongsPerPlay", 3, ValidateSongsPerPlay ),
|
||||
m_bDelayedCreditsReconcile ( "DelayedCreditsReconcile", false ),
|
||||
m_bComboContinuesBetweenSongs ( "ComboContinuesBetweenSongs", false ),
|
||||
m_AllowMultipleToasties("AllowMultipleToasties", true),
|
||||
m_MinTNSToHideNotes("MinTNSToHideNotes", TNS_W3),
|
||||
m_ShowSongOptions ( "ShowSongOptions", Maybe_NO ),
|
||||
m_bDancePointsForOni ( "DancePointsForOni", true ),
|
||||
|
||||
@@ -215,6 +215,7 @@ public:
|
||||
Preference<int> m_iSongsPerPlay;
|
||||
Preference<bool> m_bDelayedCreditsReconcile; // zuh?
|
||||
Preference<bool> m_bComboContinuesBetweenSongs;
|
||||
Preference<bool> m_AllowMultipleToasties;
|
||||
Preference<TapNoteScore> m_MinTNSToHideNotes;
|
||||
Preference<Maybe> m_ShowSongOptions;
|
||||
Preference<bool> m_bDancePointsForOni;
|
||||
|
||||
@@ -582,8 +582,9 @@ void ScoreKeeperNormal::HandleTapRowScore( const NoteData &nd, int iRow )
|
||||
msg.SetParam("ToastyCombo", m_cur_toasty_combo);
|
||||
msg.SetParam("Level", m_cur_toasty_level);
|
||||
MESSAGEMAN->Broadcast(msg);
|
||||
// TODO: keep a pointer to the Profile. Don't index with m_PlayerNumber
|
||||
SCREENMAN->PostMessageToTopScreen(SM_PlayToasty, 0);
|
||||
// TODO: keep a pointer to the Profile. Don't index with m_PlayerNumber
|
||||
// TODO: Make the profile count the level and combo of the toasty. -Kyz
|
||||
PROFILEMAN->IncrementToastiesCount(m_pPlayerState->m_PlayerNumber);
|
||||
m_next_toasty_at= CalcNextToastyAt(m_cur_toasty_level);
|
||||
}
|
||||
|
||||
@@ -2874,10 +2874,14 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
|
||||
}
|
||||
else if( SM == SM_PlayToasty )
|
||||
{
|
||||
if( g_bEasterEggs )
|
||||
if(g_bEasterEggs)
|
||||
{
|
||||
m_Toasty.Reset();
|
||||
m_Toasty.StartTransitioning();
|
||||
if(PREFSMAN->m_AllowMultipleToasties ||
|
||||
m_Toasty.IsWaiting())
|
||||
{
|
||||
m_Toasty.Reset();
|
||||
m_Toasty.StartTransitioning();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( ScreenMessageHelpers::ScreenMessageToString(SM).find("0Combo") != string::npos )
|
||||
|
||||
@@ -785,6 +785,7 @@ static void InitializeConfOptions()
|
||||
ADD( ConfOption( "AllowExtraStage", MovePref<bool>, "Off","On" ) );
|
||||
ADD( ConfOption( "AllowMultipleHighScoreWithSameName", MovePref<bool>, "Off", "On" ) );
|
||||
ADD( ConfOption( "ComboContinuesBetweenSongs", MovePref<bool>, "Off", "On") );
|
||||
ADD(ConfOption("AllowMultipleToasties", MovePref<bool>, "Off", "On"));
|
||||
ADD( ConfOption( "Disqualification", MovePref<bool>, "Off","On" ) );
|
||||
ADD( ConfOption( "HarshHotLifePenalty", MovePref<bool>, "Off", "On") );
|
||||
ADD( ConfOption( "FailOffForFirstStageEasy", MovePref<bool>, "Off","On" ) );
|
||||
|
||||
@@ -22,6 +22,7 @@ public:
|
||||
virtual float GetTweenTimeLeft() const;
|
||||
void Reset(); // explicitly allow transitioning again
|
||||
|
||||
bool IsWaiting() const { return m_State == waiting; };
|
||||
bool IsTransitioning() const { return m_State == transitioning; };
|
||||
bool IsFinished() const { return m_State == finished; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user