15 me.configureXonoticListBox(me);
25 for(i = 0; i < me.nItems; ++i)
30 for(i = 0; i < me.nItems; ++i)
58 me.itemAbsSize =
'0 0 0';
61 me.itemAbsSize.y = absSize.y * me.itemHeight;
62 me.itemAbsSize.x = absSize.x * (1 - me.controlWidth);
63 me.realFontSize.y = me.fontSize / me.itemAbsSize.y;
64 me.realFontSize.x = me.fontSize / me.itemAbsSize.x;
65 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
68 me.columnScoreSize = 5 * me.realFontSize.x;
69 me.columnNameSize = 1 - 3 * me.realFontSize.x - me.columnScoreSize;
71 me.columnScoreOrigin = me.realFontSize.x;
72 me.columnNameOrigin = me.columnScoreOrigin + me.columnScoreSize + me.realFontSize.x;
79 vector rgb = SKINCOLOR_TEXT;
93 bool is_bot = (
ping ==
"0");
94 bool is_spectator =
false;
115 score = _(
"spectator");
120 draw_Text(me.realUpperMargin2 *
eY + me.columnNameOrigin *
eX,
name, me.realFontSize,
'1 1 1', 1, 1);
123 float score_ofs = me.columnScoreSize -
draw_TextWidth(score, 1, me.realFontSize);
124 draw_Text(me.realUpperMargin2 *
eY + (me.columnScoreOrigin + score_ofs) *
eX, score, me.realFontSize, rgb, 1, 0);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define colormapPaletteColor(c, isPants)
const int FRAGS_SPECTATOR
#define tokenizebyseparator
const int PLAYERPARM_NAME
const int PLAYERPARM_PING
string XonoticPlayerList_getPlayerList(entity me, float i, float key)
const int PLAYERPARM_TEAM
entity makeXonoticPlayerList()
const int PLAYERPARM_SCORE
const int PLAYERPARM_COUNT
void XonoticPlayerList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
void XonoticPlayerList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
void XonoticPlayerList_setPlayerList(entity me, string plist)
ERASEABLE string cons(string a, string b)