HNS_Missed

Added an HNS type to handle holds which are never initialized due to
missed taps. This fixes a long standing issue with
iCurPossibleDancePoints and allows themes to decide how to handled this
case.
This commit is contained in:
sigatrev
2014-03-16 11:36:40 -05:00
parent 411026191d
commit 343511f4c3
10 changed files with 36 additions and 7 deletions
+8 -5
View File
@@ -235,19 +235,21 @@ static const char *HoldNoteScoreNames[] = {
"None",
"LetGo",
"Held",
"MissedHold",
};
XToString( HoldNoteScore );
LuaXType( HoldNoteScore );
HoldNoteScore StringToHoldNoteScore( const RString &s )
{
// for backward compatibility
if ( s == "NG" ) return HNS_LetGo;
else if( s == "OK" ) return HNS_Held;
if ( s == "NG" ) return HNS_LetGo;
else if( s == "OK" ) return HNS_Held;
// new style
else if( s == "None" ) return HNS_None;
else if( s == "LetGo" ) return HNS_LetGo;
else if( s == "Held" ) return HNS_Held;
else if( s == "None" ) return HNS_None;
else if( s == "LetGo" ) return HNS_LetGo;
else if( s == "Held" ) return HNS_Held;
else if( s == "MissedHold" ) return HNS_Missed;
return HoldNoteScore_Invalid;
}
@@ -278,6 +280,7 @@ static const char *ScoreEventNames[] = {
"CheckpointMiss",
"Held",
"LetGo",
"MissedHold",
};
XToString( ScoreEvent );