set sv_intermission_cdtrack ""
set g_cdtracks_dontusebydefault "rising-of-the-phoenix"
-set menu_cdtrack "rising-of-the-phoenix"
+seta menu_cdtrack "rising-of-the-phoenix"
// maxidle (in seconds): kick players idle for more than that amount of time
set sv_maxidle 0
me.TR(me);
me.TD(me, me.rows - 4, me.columns, soundList);
- me.gotoRC(me, me.rows - 1, 0);
+ me.gotoRC(me, me.rows - 2, 0);
me.TD(me, 1, me.columns / 5, e = makeXonoticButton(ZCTX(_("MP^Stop")), '0 0 0'));
e.onClick = StopSound_Click;
e.onClickEntity = soundList;
me.TD(me, 1, me.columns / 5, e = makeXonoticButton(ZCTX(_("MP^Next")), '0 0 0'));
e.onClick = NextSound_Click;
e.onClickEntity = soundList;
+ me.TR(me);
+ me.TD(me, 1, me.columns, e = makeXonoticButton(_("Set selected as default menu track"), '0 0 0'));
+ e.onClick = SoundList_Menu_Track_Change;
+ e.onClickEntity = soundList;
}
#endif
void PrevSound_Click(entity btn, entity me);
void NextSound_Click(entity btn, entity me);
void SoundList_Filter_Change(entity box, entity me);
+void SoundList_Menu_Track_Change(entity box, entity me);
#endif
#ifdef IMPLEMENTATION
me.getSounds(me);
}
+void SoundList_Menu_Track_Change(entity box, entity me)
+{
+ cvar_set("menu_cdtrack", me.soundName(me,me.selectedItem));
+}
+
void SoundList_Filter_Change(entity box, entity me)
{
if(me.filterString)