9 me.configureXonoticHUDSkinList(me);
15 me.configureXonoticListBox(me);
49 s =
strcat(subdir,
"hud_", s,
".cfg");
55 for(
int i = 0; i < n; ++i)
70 bufstr_add(sortbuf, s,
true);
74 string filename =
substring(s, subdir_ofs + 1, -1);
76 bufstr_add(sortbuf,
strcat(filename,
"/", subdir),
true);
85 int n = buf_getsize(sortbuf);
86 for(
int i = 0; i < n; ++i)
88 string entry = bufstr_get(sortbuf, i);
91 string filename = entry;
110 if(
argv(0) ==
"title")
112 else if(
argv(0) ==
"author")
121 if (me.listHUDSkin >= 0)
122 buf_del(me.listHUDSkin);
124 if (me.listHUDSkin < 0)
132 buf_sort(sortbuf, 128, 0);
141 buf_del(me.listHUDSkin);
146 me.itemAbsSize =
'0 0 0';
149 me.itemAbsSize.y = absSize.y * me.itemHeight;
150 me.itemAbsSize.x = absSize.x * (1 - me.controlWidth);
151 me.realFontSize.y = me.fontSize / me.itemAbsSize.y;
152 me.realFontSize.x = me.fontSize / me.itemAbsSize.x;
153 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
155 me.columnNameOrigin = me.realFontSize.x;
156 me.columnNameSize = 1 - 2 * me.realFontSize.x;
163 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
166 me.focusedItemAlpha =
getFadedAlpha(me.focusedItemAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
167 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
170 s = me.hudskinTitle(me, i);
172 s = me.hudskinName(me, i);
173 s2 = me.hudskinAuthor(me, i);
175 s =
strcat(s,
" (", s2,
")");
177 draw_Text(me.realUpperMargin *
eY + (me.columnNameOrigin + 0.00 * (me.columnNameSize -
draw_TextWidth(s, 0, me.realFontSize))) *
eX, s, me.realFontSize, SKINCOLOR_TEXT, SKINALPHA_TEXT, 1);
188 me.setSelected(me, 0);
196 me.savedName =
strzone(box.text);
206 me.filterString =
strzone(box.text);
216 string s = me.savedName;
219 localcmd(sprintf(
"hud save \"%s\"\n", s));
220 me.delayedRefreshTime =
time + 1;
225 if(me.delayedRefreshTime > 0 && me.delayedRefreshTime <
time)
228 me.delayedRefreshTime = 0;
235 string cfg =
strcat(me.hudskinPath(me, me.selectedItem),
"hud_", me.hudskinName(me, me.selectedItem),
".cfg");
void HUDSkinList_Filter_Change(entity box, entity me)
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 XonoticHUDSkinList_keyDown(entity me, float scan, float ascii, float shift)
void HUDSkinList_SavedName_Change(entity box, entity me)
const float HUDSKINPARM_PATH
void SaveHUDSkin_Click(entity btn, entity me)
const float HUDSKINPARM_NAME
string XonoticHUDSkinList_hudskinAuthor(entity me, float i)
string XonoticHUDSkinList_hudskinName(entity me, float i)
string XonoticHUDSkinList_hudskinPath(entity me, float i)
void getHUDSkinFiles(entity me, int sortbuf, string subdir)
void XonoticHUDSkinList_showNotify(entity me)
void XonoticHUDSkinList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
void XonoticHUDSkinList_setHUDSkin(entity me)
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 XonoticHUDSkinList_configureXonoticHUDSkinList(entity me)
void XonoticHUDSkinList_getHUDSkins(entity me)
const float HUDSKINPARM_AUTHOR
void HUDSkinList_Refresh_Click(entity btn, entity me)
void XonoticHUDSkinList_destroy(entity me)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void XonoticHUDSkinList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
string XonoticHUDSkinList_hudskinTitle(entity me, float i)
const float HUDSKINPARM_TITLE
void XonoticHUDSkinList_doubleClickListBoxItem(entity me, float i, vector where)
entity makeXonoticHUDSkinList()
void XonoticHUDSkinList_draw(entity me)
void SetHUDSkin_Click(entity btn, entity me)
const float HUDSKINPARM_COUNT
void getAllHUDSkins(entity me, int sortbuf)