better messages
This commit is contained in:
@@ -51,7 +51,6 @@ static const char *MessageIDNames[] = {
|
|||||||
"MenuRightP1",
|
"MenuRightP1",
|
||||||
"MenuRightP2",
|
"MenuRightP2",
|
||||||
"MenuSelectionChanged",
|
"MenuSelectionChanged",
|
||||||
"CoinInserted",
|
|
||||||
"PlayerJoined",
|
"PlayerJoined",
|
||||||
"PlayerUnjoined",
|
"PlayerUnjoined",
|
||||||
"AutosyncChanged",
|
"AutosyncChanged",
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ enum MessageID
|
|||||||
Message_MenuRightP1,
|
Message_MenuRightP1,
|
||||||
Message_MenuRightP2,
|
Message_MenuRightP2,
|
||||||
Message_MenuSelectionChanged,
|
Message_MenuSelectionChanged,
|
||||||
Message_CoinInserted,
|
|
||||||
Message_PlayerJoined,
|
Message_PlayerJoined,
|
||||||
Message_PlayerUnjoined,
|
Message_PlayerUnjoined,
|
||||||
Message_AutosyncChanged,
|
Message_AutosyncChanged,
|
||||||
|
|||||||
@@ -1190,7 +1190,10 @@ void StepMania::InsertCoin( int iNum, bool bCountInBookkeeping )
|
|||||||
GAMESTATE->m_iCoins += iNum;
|
GAMESTATE->m_iCoins += iNum;
|
||||||
LOG->Trace("%i coins inserted, %i needed to play", GAMESTATE->m_iCoins, PREFSMAN->m_iCoinsPerCredit.Get() );
|
LOG->Trace("%i coins inserted, %i needed to play", GAMESTATE->m_iCoins, PREFSMAN->m_iCoinsPerCredit.Get() );
|
||||||
SCREENMAN->PlayCoinSound();
|
SCREENMAN->PlayCoinSound();
|
||||||
MESSAGEMAN->Broadcast( Message_CoinInserted );
|
Message msg( "CoinInserted" );
|
||||||
|
msg.SetParam( "Coins", GAMESTATE->m_iCoins );
|
||||||
|
msg.SetParam( "Inserted", iNum );
|
||||||
|
MESSAGEMAN->Broadcast( msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
void StepMania::InsertCredit()
|
void StepMania::InsertCredit()
|
||||||
@@ -1203,7 +1206,10 @@ void StepMania::ClearCredits()
|
|||||||
LOG->Trace("%i coins cleared", GAMESTATE->m_iCoins );
|
LOG->Trace("%i coins cleared", GAMESTATE->m_iCoins );
|
||||||
GAMESTATE->m_iCoins = 0;
|
GAMESTATE->m_iCoins = 0;
|
||||||
SCREENMAN->PlayInvalidSound();
|
SCREENMAN->PlayInvalidSound();
|
||||||
MESSAGEMAN->Broadcast( Message_CoinInserted );
|
Message msg( "CoinInserted" );
|
||||||
|
msg.SetParam( "Coins", GAMESTATE->m_iCoins );
|
||||||
|
msg.SetParam( "Clear", true );
|
||||||
|
MESSAGEMAN->Broadcast( msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns true if the key has been handled and should be discarded, false if
|
/* Returns true if the key has been handled and should be discarded, false if
|
||||||
|
|||||||
Reference in New Issue
Block a user