21 for (
int i = RANKINGS_CNT - 1; i >= 0; --i)
62 if(score && (score < t || !t)) {
79 if(mySize.x > mySize.y) {
81 squareSize =
min(mySize.y, mySize.x/2);
82 vector ofs =
vec2(0.5 *
max(0, mySize.x/2 - squareSize), 0.5 * (mySize.y - squareSize));
84 ofs.x += 0.5 * mySize.x;
88 squareSize =
min(mySize.x, mySize.y/2);
89 vector ofs =
vec2(0.5 * (mySize.x - squareSize), 0.5 *
max(0, mySize.y/2 - squareSize));
91 ofs.y += 0.5 * mySize.y;
94 vector textSize =
vec2(squareSize, 0.25 * squareSize);
105 textPos +=
eY * 0.5 * squareSize;
122 vector namepos = medalPos +
'0 0.8 0' * squareSize;
123 vector rankpos = medalPos +
'0 0.15 0' * squareSize;
178 M_ARGV(0,
string) = _(
"Rankings");
ERASEABLE void db_put(int db, string key, string value)
void drawstring_aspect(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag)
string textShortenToWidth(string theText, float maxWidth, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
bool autocvar_cl_autodemo_delete
REGISTER_MUTATOR(cl_race, true)
#define TIME_ENCODED_TOSTRING(n)
float crecordtime_change_time
ERASEABLE string count_ordinal(int interval)
string race_status_name_prev
string grecordholder[RANKINGS_CNT]
#define drawpic_aspect_skin(pos, pic, sz, color, theAlpha, drawflag)
MUTATOR_HOOKFUNCTION(cl_race, HUD_Physics_showoptional)
void drawstring_aspect_expanding(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag, float fadelerp)
float srecordtime_change_time
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
void drawcolorcodedstring_aspect(vector pos, string text, vector sz, float theAlpha, float drawflag)
ERASEABLE string ColorTranslateRGB(string s)
bool autocvar_cl_autodemo_delete_keeprecords
const float DRAWFLAG_NORMAL
ERASEABLE string db_get(int db, string key)
#define scores_flags(this)
void HUD_Mod_Race(vector pos, vector mySize)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
PlayerScoreField ps_primary
int race_CheckName(string net_name)
void race_showTime(string text, vector pos, vector timeText_ofs, float theTime, vector textSize, float f)
const int SFL_TIME
Display as mm:ss.s, value is stored as 10ths of a second (AND 0 is the worst possible value!) ...