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{
11 me.configureXonoticScreenshotList(me);
12 return me;
13}
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 154 of file screenshotlist.qc.

155{
156 strfree(me.filterString);
157
158 if(box.text != "")
159 {
160 if (strstrofs(box.text, "*", 0) >= 0 || strstrofs(box.text, "?", 0) >= 0)
161 me.filterString = strzone(box.text);
162 else
163 me.filterString = strzone(strcat("*", box.text, "*"));
164 }
165
167}
#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 169 of file screenshotlist.qc.

170{
171 me.filterBox = box;
172 me.filterTime = time + 0.5;
173}
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 148 of file screenshotlist.qc.

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

References entity().

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

◆ StartScreenshot_Click()

void StartScreenshot_Click ( entity btn,
entity me )

Definition at line 236 of file screenshotlist.qc.

237{
238 me.startScreenshot(me);
239}

References entity().

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