mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-18 16:41:49 +00:00
29 lines
711 B
Text
29 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);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|