Files
itgmania212121/Themes/default/Graphics/ScreenGameplay DeltaSeconds.lua
T

22 lines
554 B
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local PlayerNumber = ...;
assert( PlayerNumber );
local t = LoadFont("ScreenGameplay","RemainingTime") .. {
Name="RemainingTime";
Text="";
JudgmentMessageCommand=function(self,params)
if params.Player == PlayerNumber then
2011-08-24 13:07:15 -05:00
if params.TapNoteScore then
local tns = ToEnumShortString(params.TapNoteScore)
2011-03-17 01:47:30 -04:00
self:playcommand( "GainSeconds" );
2011-08-24 13:07:15 -05:00
self:playcommand( tns );
self:settextf( "%+1.1fs", PREFSMAN:GetPreference( string.format("TimeMeterSecondsChange%s", tns) ) );
2011-03-17 01:47:30 -04:00
else
return
end
else
return
end
end;
};
2010-09-27 22:41:11 -07:00
return t