raze-gles/wadsrc/static/zscript/summary.zs
Christoph Oelckers 0d793a59fd - moved the cutscene core to 'engine'.
More adjustments for making this code compatible with GZDoom.
2021-05-22 02:15:49 +02:00

28 lines
711 B
Text

//---------------------------------------------------------------------------
//
// this is to have a unified interface to the summary screens
// that can be set up automatically by the games to avoid direct access to game data.
//
//---------------------------------------------------------------------------
class SummaryScreenBase : ScreenJob
{
MapRecord level;
SummaryInfo stats;
void SetParameters(MapRecord map, SummaryInfo thestats)
{
level = map;
stats = thestats;
}
String FormatTime(int time)
{
if (time >= 60 * 50)
return String.Format("%02d:%02d:%02d", time / (60*60), (time / 60) % 60, time % 60);
else
return String.Format("%02d:%02d", (time / 60) % 60, time % 60);
}
}