various theme changes, mostly from midi

removes duplicate round() function in productivityhelpers
This commit is contained in:
AJ Kelly
2010-08-14 19:22:44 -05:00
parent 5175499e08
commit ccd2b4ae6d
6 changed files with 54 additions and 52 deletions
@@ -83,16 +83,23 @@ t[#t+1] = Def.ActorFrame {
end
end
-- we're safe, you can push the values
tTotalJudgments[#tTotalJudgments+1] = math.abs( param.TapNoteOffset );
local iTapNoteOffset = param.TapNoteOffset;
local fTapNoteOffset = param.TapNoteOffset;
if param.HoldNoteScore then
iTapNoteOffset = 1;
fTapNoteOffset = 1;
else
iTapNoteOffset = param.TapNoteOFfset;
fTapNoteOffset = param.TapNoteOffset;
end
if param.TapNoteScore == 'TapNoteScore_Miss' then
fTapNoteOffset = 1;
else
fTapNoteOffset = fTapNoteOffset;
end;
-- we're safe, you can push the values
tTotalJudgments[#tTotalJudgments+1] = math.abs( fTapNoteOffset );
self:playcommand("Reset");
c.Judgment:visible( not bShowProtiming );
@@ -100,11 +107,11 @@ t[#t+1] = Def.ActorFrame {
JudgeCmds[param.TapNoteScore](c.Judgment);
c.ProtimingDisplay:visible( bShowProtiming );
c.ProtimingDisplay:settextf("%i%%",100 - math.floor(math.abs(param.TapNoteOffset * 1000)) );
c.ProtimingDisplay:settextf("%i%%",clamp(100 - math.floor(math.abs(fTapNoteOffset * 1000)) ,0,100));
ProtimingCmds[param.TapNoteScore](c.ProtimingDisplay);
c.ProtimingAverage:visible( bShowProtiming );
c.ProtimingAverage:settextf("%.2f%%",100 - MakeAverage( tTotalJudgments ) * 1000 );
c.ProtimingAverage:settextf("%.2f%%",clamp(100 - MakeAverage( tTotalJudgments ) * 1000 ,0,100));
AverageCmds['Pulse'](c.ProtimingAverage);
end;
};