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{
8 entity me;
10 me.configureXonoticSoundList(me);
11 return me;
12}
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 117 of file soundlist.qc.

118{
119 me.playlist.addToPlayList(me.playlist, me.soundName(me, me.selectedItem));
120}

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 122 of file soundlist.qc.

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

References entity().

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

◆ SoundList_Filter_Change()

void SoundList_Filter_Change ( entity box,
entity me )

Definition at line 107 of file soundlist.qc.

108{
109 strfree(me.filterString);
110
111 if(box.text != "")
112 me.filterString = strzone(box.text);
113
114 me.getSounds(me);
115}
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 97 of file soundlist.qc.

98{
99 cvar_set("menu_cdtrack", me.soundName(me, me.selectedItem));
100}
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 102 of file soundlist.qc.

103{
104 cvar_set("menu_cdtrack", cvar_defstring("menu_cdtrack"));
105}
const string cvar_defstring(string name)

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

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