Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
soundlist.qh File Reference
#include "listbox.qh"
Include dependency graph for soundlist.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticSoundList

Functions

entity makeXonoticSoundList ()
void SoundList_Add (entity box, entity me)
void SoundList_Add_All (entity box, entity me)
void SoundList_Filter_Change (entity box, entity me)
void SoundList_Menu_Track_Change (entity box, entity me)
void SoundList_Menu_Track_Reset (entity box, entity me)

Function Documentation

◆ makeXonoticSoundList()

entity makeXonoticSoundList ( )

Definition at line 6 of file soundlist.qc.

7{
9 me.configureXonoticSoundList(me);
10 return me;
11}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

Referenced by XonoticSoundList::ATTRIB(), and XonoticMusicPlayerTab_fill().

◆ SoundList_Add()

void SoundList_Add ( entity box,
entity me )

Definition at line 115 of file soundlist.qc.

116{
117 me.playlist.addToPlayList(me.playlist, me.soundName(me, me.selectedItem));
118}

References entity().

Referenced by XonoticSoundList::ATTRIB(), XonoticMusicPlayerTab_fill(), and XonoticSoundList_keyDown().

◆ SoundList_Add_All()

void SoundList_Add_All ( entity box,
entity me )

Definition at line 120 of file soundlist.qc.

121{
122 int i;
123 for(i = 0; i < me.nItems; ++i)
124 me.playlist.addToPlayList(me.playlist, me.soundName(me, i));
125}

References entity().

Referenced by XonoticSoundList::ATTRIB(), and XonoticMusicPlayerTab_fill().

◆ SoundList_Filter_Change()

void SoundList_Filter_Change ( entity box,
entity me )

Definition at line 105 of file soundlist.qc.

106{
107 strfree(me.filterString);
108
109 if(box.text != "")
110 me.filterString = strzone(box.text);
111
112 me.getSounds(me);
113}
string strzone(string s)
#define strfree(this)
Definition string.qh:59

References entity(), strfree, and strzone().

Referenced by XonoticSoundList::ATTRIB(), and XonoticMusicPlayerTab_fill().

◆ SoundList_Menu_Track_Change()

void SoundList_Menu_Track_Change ( entity box,
entity me )

Definition at line 95 of file soundlist.qc.

96{
97 cvar_set("menu_cdtrack", me.soundName(me, me.selectedItem));
98}
void cvar_set(string name, string value)

References cvar_set(), and entity().

Referenced by XonoticSoundList::ATTRIB(), and XonoticMusicPlayerTab_fill().

◆ SoundList_Menu_Track_Reset()

void SoundList_Menu_Track_Reset ( entity box,
entity me )

Definition at line 100 of file soundlist.qc.

101{
102 cvar_set("menu_cdtrack", cvar_defstring("menu_cdtrack"));
103}
const string cvar_defstring(string name)

References cvar_defstring(), cvar_set(), and entity().

Referenced by XonoticSoundList::ATTRIB(), and XonoticMusicPlayerTab_fill().