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

Go to the source code of this file.

Classes

class  XonoticDemoList

Functions

void DemoList_Filter_Change (entity box, entity me)
void DemoList_Refresh_Click (entity btn, entity me)
entity makeXonoticDemoList ()

Variables

entity demolist

Function Documentation

◆ DemoList_Filter_Change()

void DemoList_Filter_Change ( entity box,
entity me )

Definition at line 132 of file demolist.qc.

133{
134 strfree(me.filterString);
135
136 if(box.text != "")
137 {
138 if (strstrofs(box.text, "*", 0) >= 0 || strstrofs(box.text, "?", 0) >= 0)
139 me.filterString = strzone(box.text);
140 else
141 me.filterString = strzone(strcat("*", box.text, "*"));
142 }
143 else
144 me.filterString = string_null;
145
146 me.getDemos(me);
147}
#define strstrofs
string strzone(string s)
string string_null
Definition nil.qh:9
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define strfree(this)
Definition string.qh:59

References entity(), strcat(), strfree, string_null, strstrofs, and strzone().

Referenced by XonoticDemoBrowserTab_fill().

◆ DemoList_Refresh_Click()

void DemoList_Refresh_Click ( entity btn,
entity me )

Definition at line 126 of file demolist.qc.

127{
128 me.getDemos(me);
129 me.setSelected(me, 0); //always select the first element after a list update
130}

References entity().

Referenced by XonoticDemoBrowserTab_fill().

◆ makeXonoticDemoList()

entity makeXonoticDemoList ( )

Definition at line 5 of file demolist.qc.

6{
7 entity me;
9 me.configureXonoticDemoList(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 XonoticDemoBrowserTab_fill().

Variable Documentation

◆ demolist