Fixed DeltaSeconds actor in timed courses to check whether the pref for the delta exists.
This commit is contained in:
@@ -8,9 +8,12 @@ local t = LoadFont("ScreenGameplay","RemainingTime") .. {
|
|||||||
if params.Player == PlayerNumber then
|
if params.Player == PlayerNumber then
|
||||||
if params.TapNoteScore then
|
if params.TapNoteScore then
|
||||||
local tns = ToEnumShortString(params.TapNoteScore)
|
local tns = ToEnumShortString(params.TapNoteScore)
|
||||||
self:playcommand( "GainSeconds" );
|
local prefname= ("TimeMeterSecondsChange%s"):format(tns)
|
||||||
self:playcommand( tns );
|
if PREFSMAN:PreferenceExists(prefname) then
|
||||||
self:settextf( "%+1.1fs", PREFSMAN:GetPreference( string.format("TimeMeterSecondsChange%s", tns) ) );
|
self:playcommand( "GainSeconds" );
|
||||||
|
self:playcommand( tns );
|
||||||
|
self:settextf( "%+1.1fs", PREFSMAN:GetPreference(prefname) );
|
||||||
|
end
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user