7 me.configureXonoticPlayerModelSelector(me);
18 #define XONVOTE186 1 // (nyov) removal of model text description 46 buf_sort(sortbuf, 128, 0);
47 me.numModels = buf_getsize(sortbuf);
49 for(i = 0; i < me.numModels; ++i)
51 fn =
substring(bufstr_get(sortbuf, i), 128, -1);
53 error(
"But it JUST worked!");
88 buf_del(me.bufModels);
95 string skin, modelname;
101 for(i = 0; i < me.numModels; ++i)
107 if(i >= me.numModels)
114 me.idxModels =
mod(me.idxModels + d + me.numModels, me.numModels);
125 me.src =
"nopreview_player";
127 me.src = me.currentModelImage;
133 if (me.numModels <= 0)
141 if (me.numModels <= 0)
150 cvar_set(
"_cl_playermodel", me.currentModel);
159 if (me.numModels <= 0)
161 draw_CenterText(
'0.5 0.5 0', _(
"<no model found>"), me.realFontSize, SKINCOLOR_TEXT, 0.6,
false);
170 #if XONVOTE186 // (nyov) lower name display looks better when there is no description text 171 draw_CenterText(
'0.5 0.8 0', me.currentModelTitle, me.realFontSize * (me.titleFontSize / me.fontSize), SKINCOLOR_MODELTITLE, SKINALPHA_MODELTITLE,
false);
173 draw_CenterText(
'0.5 0 0', me.currentModelTitle, me.realFontSize * (me.titleFontSize / me.fontSize), SKINCOLOR_MODELTITLE, SKINALPHA_MODELTITLE,
false);
178 o =
'0.5 1 0' -
eY * me.realFontSize.y * ((n =
tokenizebyseparator(me.currentModelDescription,
"\n")) + 0.5);
179 for(i = 0; i < n; ++i)
182 o +=
eY * me.realFontSize.y;
189 me.realFontSize_y = me.fontSize / absSize.y;
190 me.realFontSize_x = me.fontSize / absSize.x;
float get_model_parameters_weight
string get_model_datafilename(string m, float sk, string fil)
string get_model_parameters_desc
const float BUFMODELS_SKIN
#define draw_endBoldFont()
void XonoticPlayerModelSelector_saveCvars(entity me)
float get_model_parameters(string m, float sk)
#define draw_beginBoldFont()
string get_model_parameters_description
void XonoticPlayerModelSelector_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
const float BUFMODELS_DESC
void PlayerModelSelector_Next_Click(entity btn, entity me)
void XonoticPlayerModelSelector_draw(entity me)
string get_model_parameters_sex
float get_model_parameters_age
float get_model_parameters_modelskin
void XonoticPlayerModelSelector_loadCvars(entity me)
void XonoticPlayerModelSelector_go(entity me, float d)
void PlayerModelSelector_Prev_Click(entity btn, entity me)
void XonoticPlayerModelSelector_configureXonoticPlayerModelSelector(entity me)
string get_model_parameters_modelname
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"))
const float BUFMODELS_IMAGE
const float BUFMODELS_TITLE
const float BUFMODELS_COUNT
entity makeXonoticPlayerModelSelector()
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void XonoticPlayerModelSelector_showNotify(entity me)
#define tokenizebyseparator
bool get_model_parameters_hidden
void XonoticPlayerModelSelector_loadModels(entity me)
const float BUFMODELS_MODEL
void XonoticPlayerModelSelector_destroy(entity me)
string get_model_parameters_name