10 me.configureXonoticSoundList(me);
16 me.configureXonoticListBox(me);
35 s =
strcat(
"sound/cdtracks/*", me.filterString,
"*.ogg");
37 s =
"sound/cdtracks/*.ogg";
55 me.itemAbsSize =
'0 0 0';
58 me.itemAbsSize.y = absSize.y * me.itemHeight;
59 me.itemAbsSize.x = absSize.x * (1 - me.controlWidth);
60 me.realFontSize.y = me.fontSize / me.itemAbsSize.y;
61 me.realFontSize.x = me.fontSize / me.itemAbsSize.x;
62 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
64 me.columnNumberOrigin = 0;
65 me.columnNumberSize = me.realFontSize.x * 3;
67 me.columnNameOrigin = me.columnNumberSize;
68 me.columnNameSize = 1 - me.columnNameOrigin - me.realFontSize.x;
75 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
78 me.focusedItemAlpha =
getFadedAlpha(me.focusedItemAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
79 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
82 s = me.soundName(me, i);
84 draw_CenterText((me.columnNumberOrigin + 0.5 * me.columnNumberSize) *
eX + me.realUpperMargin *
eY,
"[C]", me.realFontSize,
'1 1 1', SKINALPHA_TEXT, 0);
86 draw_CenterText((me.columnNumberOrigin + 0.5 * me.columnNumberSize) *
eX + me.realUpperMargin *
eY,
"[D]", me.realFontSize,
'1 1 1', SKINALPHA_TEXT, 0);
89 draw_Text(me.realUpperMargin *
eY + me.columnNameOrigin *
eX, s, me.realFontSize,
'1 1 1', SKINALPHA_TEXT, 0);
99 cvar_set(
"menu_cdtrack", me.soundName(me, me.selectedItem));
112 me.filterString =
strzone(box.text);
119 me.playlist.addToPlayList(me.playlist, me.soundName(me, me.selectedItem));
125 for(i = 0; i < me.nItems; ++i)
126 me.playlist.addToPlayList(me.playlist, me.soundName(me, i));
131 me.playlist.addToPlayList(me.playlist, me.soundName(me, i));
137 me.playlist.addToPlayList(me.playlist, me.soundName(me, me.selectedItem));
entity makeXonoticSoundList()
void XonoticSoundList_showNotify(entity me)
void XonoticSoundList_configureXonoticSoundList(entity me)
void XonoticSoundList_destroy(entity me)
void SoundList_Menu_Track_Change(entity box, entity me)
void XonoticSoundList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
void SoundList_Add(entity box, entity me)
void SoundList_Add_All(entity box, 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 SoundList_Menu_Track_Reset(entity box, entity me)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
string XonoticSoundList_soundName(entity me, int i)
void XonoticSoundList_getSounds(entity me)
void SoundList_Filter_Change(entity box, entity me)
float XonoticSoundList_keyDown(entity me, float scan, float ascii, float shift)
void XonoticSoundList_doubleClickListBoxItem(entity me, int i, vector where)
void XonoticSoundList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)