Xonotic
playlist.qh File Reference
#include "listbox.qh"
+ Include dependency graph for playlist.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticPlayList
 

Functions

entity makeXonoticPlayList ()
 
void NextSound_Click (entity btn, entity me)
 
void PauseSound_Click (entity btn, entity me)
 
void PlayList_Remove (entity btn, entity me)
 
void PlayList_Remove_All (entity btn, entity me)
 
void PrevSound_Click (entity btn, entity me)
 
void StartSound_Click (entity btn, entity me)
 
void StopSound_Click (entity btn, entity me)
 

Function Documentation

◆ makeXonoticPlayList()

entity makeXonoticPlayList ( )

Definition at line 3 of file playlist.qc.

References entity(), and NEW.

4 {
5  entity me;
6  me = NEW(XonoticPlayList);
7  me.configureXonoticPlayList(me);
8  return me;
9 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:

◆ NextSound_Click()

void NextSound_Click ( entity  btn,
entity  me 
)

Definition at line 222 of file playlist.qc.

223 {
224  me.startSound(me, +1);
225 }

◆ PauseSound_Click()

void PauseSound_Click ( entity  btn,
entity  me 
)

Definition at line 243 of file playlist.qc.

244 {
245  me.pauseSound(me);
246 }

◆ PlayList_Remove()

void PlayList_Remove ( entity  btn,
entity  me 
)

Definition at line 92 of file playlist.qc.

93 {
94  me.removeSelectedFromPlayList(me);
95 }

◆ PlayList_Remove_All()

void PlayList_Remove_All ( entity  btn,
entity  me 
)

Definition at line 97 of file playlist.qc.

References cvar_set().

98 {
99  cvar_set("music_playlist_list0", "");
100  me.stopSound(me);
101  me.selectedItem = 0;
102 }
+ Here is the call graph for this function:

◆ PrevSound_Click()

void PrevSound_Click ( entity  btn,
entity  me 
)

Definition at line 217 of file playlist.qc.

218 {
219  me.startSound(me, -1);
220 }

◆ StartSound_Click()

void StartSound_Click ( entity  btn,
entity  me 
)

Definition at line 212 of file playlist.qc.

213 {
214  me.startSound(me, 0);
215 }

◆ StopSound_Click()

void StopSound_Click ( entity  btn,
entity  me 
)

Definition at line 174 of file playlist.qc.

175 {
176  me.stopSound(me);
177 }