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

Go to the source code of this file.

Classes

class  XonoticScreenshotList

Functions

entity makeXonoticScreenshotList ()
void ScreenshotList_Filter_Change (entity box, entity me)
void ScreenshotList_Filter_Would_Change (entity box, entity me)
void ScreenshotList_Refresh_Click (entity btn, entity me)
void StartScreenshot_Click (entity btn, entity me)

Function Documentation

◆ makeXonoticScreenshotList()

entity makeXonoticScreenshotList ( )

Definition at line 8 of file screenshotlist.qc.

9{
10 entity me;
12 me.configureXonoticScreenshotList(me);
13 return me;
14}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

Referenced by XonoticScreenshotList::stopSlideShow(), and XonoticScreenshotBrowserTab_fill().

◆ ScreenshotList_Filter_Change()

void ScreenshotList_Filter_Change ( entity box,
entity me )

Definition at line 156 of file screenshotlist.qc.

157{
158 strfree(me.filterString);
159
160 if(box.text != "")
161 {
162 if (strstrofs(box.text, "*", 0) >= 0 || strstrofs(box.text, "?", 0) >= 0)
163 me.filterString = strzone(box.text);
164 else
165 me.filterString = strzone(strcat("*", box.text, "*"));
166 }
167
169}
#define strstrofs
string strzone(string s)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define NULL
Definition post.qh:14
void ScreenshotList_Refresh_Click(entity btn, entity me)
#define strfree(this)
Definition string.qh:59

References entity(), NULL, ScreenshotList_Refresh_Click(), strcat(), strfree, strstrofs, and strzone().

Referenced by XonoticScreenshotList::stopSlideShow(), and XonoticScreenshotList_draw().

◆ ScreenshotList_Filter_Would_Change()

void ScreenshotList_Filter_Would_Change ( entity box,
entity me )

Definition at line 171 of file screenshotlist.qc.

172{
173 me.filterBox = box;
174 me.filterTime = time + 0.5;
175}
float time

References entity(), and time.

Referenced by XonoticScreenshotList::stopSlideShow(), and XonoticScreenshotBrowserTab_fill().

◆ ScreenshotList_Refresh_Click()

void ScreenshotList_Refresh_Click ( entity btn,
entity me )

Definition at line 150 of file screenshotlist.qc.

151{
152 me.getScreenshots(me);
153 me.setSelected(me, 0); //always select the first element after a list update
154}

References entity().

Referenced by ScreenshotList_Filter_Change(), XonoticScreenshotList::stopSlideShow(), and XonoticScreenshotBrowserTab_fill().

◆ StartScreenshot_Click()

void StartScreenshot_Click ( entity btn,
entity me )

Definition at line 238 of file screenshotlist.qc.

239{
240 me.startScreenshot(me);
241}

References entity().

Referenced by XonoticScreenshotList::stopSlideShow(), and XonoticScreenshotBrowserTab_fill().