Xonotic
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.

References entity(), and NEW.

7 {
8  entity me;
9  me = NEW(XonoticSoundList);
10  me.configureXonoticSoundList(me);
11  return me;
12 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:

◆ 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 }

◆ 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 }

◆ SoundList_Filter_Change()

void SoundList_Filter_Change ( entity  box,
entity  me 
)

Definition at line 107 of file soundlist.qc.

References strfree, and strzone().

108 {
109  strfree(me.filterString);
110 
111  if(box.text != "")
112  me.filterString = strzone(box.text);
113 
114  me.getSounds(me);
115 }
#define strfree(this)
Definition: string.qh:56
+ Here is the call graph for this function:

◆ SoundList_Menu_Track_Change()

void SoundList_Menu_Track_Change ( entity  box,
entity  me 
)

Definition at line 97 of file soundlist.qc.

References cvar_set().

98 {
99  cvar_set("menu_cdtrack", me.soundName(me, me.selectedItem));
100 }
+ Here is the call graph for this function:

◆ SoundList_Menu_Track_Reset()

void SoundList_Menu_Track_Reset ( entity  box,
entity  me 
)

Definition at line 102 of file soundlist.qc.

References cvar_defstring(), and cvar_set().

103 {
104  cvar_set("menu_cdtrack", cvar_defstring("menu_cdtrack"));
105 }
+ Here is the call graph for this function: