[sm130score] Don't rely on the PREFS.

Also get _fallback ready just in case.
This commit is contained in:
Jason Felds
2011-04-10 21:52:58 -04:00
parent c61ce06a5b
commit 3fafe93064
2 changed files with 18 additions and 7 deletions
@@ -0,0 +1,10 @@
local t = Def.ActorFrame {};
t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params)
SpecialScoring[GetUserPref("UserPrefSpecialScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end;
};
return t;
@@ -168,11 +168,12 @@ t[#t+1] = Def.ActorFrame {
};
CreateStops();
};
if PREFSMAN:GetPreference("ScoringType") == 'ScoringType_Custom' then
t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params)
SpecialScoring[GetUserPref("UserPrefSpecialScoringMode")](params, STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end;
};
end;
t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params)
SpecialScoring[GetUserPref("UserPrefSpecialScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end;
};
return t