Xonotic
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.

References entity(), and NEW.

Referenced by XonoticScreenshotBrowserTab_fill().

9 {
10  entity me;
12  me.configureXonoticScreenshotList(me);
13  return me;
14 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScreenshotList_Filter_Change()

void ScreenshotList_Filter_Change ( entity  box,
entity  me 
)

Definition at line 156 of file screenshotlist.qc.

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

Referenced by XonoticScreenshotList_draw().

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 }
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define NULL
Definition: post.qh:17
#define strstrofs
Definition: dpextensions.qh:42
void ScreenshotList_Refresh_Click(entity btn, entity me)
#define strfree(this)
Definition: string.qh:56
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScreenshotList_Filter_Would_Change()

void ScreenshotList_Filter_Would_Change ( entity  box,
entity  me 
)

Definition at line 171 of file screenshotlist.qc.

References time.

172 {
173  me.filterBox = box;
174  me.filterTime = time + 0.5;
175 }
float time
Definition: csprogsdefs.qc:16

◆ ScreenshotList_Refresh_Click()

void ScreenshotList_Refresh_Click ( entity  btn,
entity  me 
)

Definition at line 150 of file screenshotlist.qc.

Referenced by ScreenshotList_Filter_Change().

151 {
152  me.getScreenshots(me);
153  me.setSelected(me, 0); //always select the first element after a list update
154 }
+ Here is the caller graph for this function:

◆ StartScreenshot_Click()

void StartScreenshot_Click ( entity  btn,
entity  me 
)

Definition at line 238 of file screenshotlist.qc.

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