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 130 of file demolist.qc.

131{
132 strfree(me.filterString);
133
134 if(box.text != "")
135 {
136 if (strstrofs(box.text, "*", 0) >= 0 || strstrofs(box.text, "?", 0) >= 0)
137 me.filterString = strzone(box.text);
138 else
139 me.filterString = strzone(strcat("*", box.text, "*"));
140 }
141 else
142 me.filterString = string_null;
143
144 me.getDemos(me);
145}
#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 124 of file demolist.qc.

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

References entity().

Referenced by XonoticDemoBrowserTab_fill().

◆ makeXonoticDemoList()

entity makeXonoticDemoList ( )

Definition at line 5 of file demolist.qc.

6{
8 me.configureXonoticDemoList(me);
9 return me;
10}
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