Files
itgmania212121/Themes/legacy/Graphics/ScreenGameplay DeltaSeconds.lua
T
ListenerJubatus f257f19dad Add new 5.1 default theme Lambda
I'd like to thank everyone who made this possible;, including but not
limited to Riakodoadm, MrThatKid, kyzentun, Luizsan, JoseVarelaP,
everyone else who provided feedback and bug reports.
2017-08-08 01:07:34 -06:00

25 lines
634 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
local tns = ToEnumShortString(params.TapNoteScore)
local prefname= ("TimeMeterSecondsChange%s"):format(tns)
if PREFSMAN:PreferenceExists(prefname) then
self:playcommand( "GainSeconds" );
self:playcommand( tns );
self:settextf( "%+1.1fs", PREFSMAN:GetPreference(prefname) );
end
else
return
end
else
return
end
end;
};
return t