Files
itgmania212121/Themes/default/Graphics/ScreenGameplay DeltaSeconds.lua
T
2011-03-17 01:47:30 -04:00

21 lines
575 B
Lua

local PlayerNumber = ...;
assert( PlayerNumber );
local t = LoadFont("ScreenGameplay","RemainingTime") .. {
Name="RemainingTime";
Text="";
JudgmentMessageCommand=function(self,params)
if params.Player == PlayerNumber then
if params.TapNoteScore then
self:playcommand( "GainSeconds" );
self:playcommand( ToEnumShortString( params.TapNoteScore ) );
self:settextf( "%+1.1fs", PREFSMAN:GetPreference( string.format("TimeMeterSecondsChange%s", ToEnumShortString( params.TapNoteScore ) ) ) );
else
return
end
else
return
end
end;
};
return t