11 me.configureXonoticGametypeList(me);
16 me.configureXonoticListBox(me);
19 if(SKINBOOL_GAMETYPELIST_ICON_BLUR)
37 for(i = 0; i <
cnt; ++i)
42 for(i = 0; i <
cnt; ++i)
43 if(t == MAPINFO_TYPE_DEATHMATCH)
48 me.setSelected(me, i);
60 owner.gameTypeChangeNotify(owner);
68 me.setSelected(me, 0);
77 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
80 me.focusedItemAlpha =
getFadedAlpha(me.focusedItemAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
81 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
90 s2 = _(
"free for all");
95 vector fs = me.realFontSize;
97 draw_Text(me.realUpperMargin *
eY + me.columnNameOrigin *
eX, s1, fs,
'1 1 1', SKINALPHA_TEXT, 0);
98 draw_Text(me.realUpperMargin *
eY + (me.columnNameOrigin + 1.0 * (me.columnNameSize -
draw_TextWidth(s2, 0, fs))) *
eX, s2, fs, SKINCOLOR_TEXT, SKINALPHA_TEXT, 0);
103 me.itemAbsSize =
'0 0 0';
106 me.itemAbsSize.y = absSize.y * me.itemHeight;
107 me.itemAbsSize.x = absSize.x * (1 - me.controlWidth);
108 me.realFontSize.y = me.fontSize / me.itemAbsSize.y;
109 me.realFontSize.x = me.fontSize / me.itemAbsSize.x;
110 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
111 me.columnIconOrigin = 0;
112 me.columnIconSize = me.itemAbsSize.y / me.itemAbsSize.x;
113 me.columnNameOrigin = me.columnIconOrigin + me.columnIconSize + (0.5 * me.realFontSize.x);
114 me.columnNameSize = 1 - me.columnIconSize - (1.5 * me.realFontSize.x);
121 me.parent.gameTypeSelectNotify(me.parent);
133 if(me.focusedItem >= 0)
float XonoticGametypeList_keyDown(entity me, float scan, float ascii, float shift)
void XonoticGametypeList_saveCvars(entity me)
void XonoticGametypeList_draw(entity me)
spree_inf s1 s2 s3loc s2 s1
spree_inf s1 s2 s3loc s2 spree_inf s1 s2 s3loc s2 spree_inf s1 s2 s3loc s2 s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2 f1 f1points s1 s2
float _MapInfo_GetTeamPlayBool(Gametype t)
void XonoticGametypeList_focusedItemChangeNotify(entity me)
void XonoticGametypeList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
void XonoticGametypeList_clickListBoxItem(entity me, float i, vector where)
float PRECACHE_PIC_MIPMAP
Gametype MapInfo_CurrentGametype()
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"))
entity makeXonoticGametypeList()
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void XonoticGametypeList_setSelected(entity me, float i)
string MapInfo_Type_Description(Gametype t)
void XonoticGametypeList_configureXonoticGametypeList(entity me)
void MapInfo_SwitchGameType(Gametype t)
void XonoticGametypeList_loadCvars(entity me)
void XonoticGametypeList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)