mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-28 06:53:29 +00:00
0d793a59fd
More adjustments for making this code compatible with GZDoom.
28 lines
711 B
Text
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);
|
|
}
|
|
|
|
}
|
|
|