Xonotic
hudskinlist.qh File Reference
#include "listbox.qh"
+ Include dependency graph for hudskinlist.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticHUDSkinList
 

Functions

void HUDSkinList_Filter_Change (entity box, entity me)
 
void HUDSkinList_Refresh_Click (entity btn, entity me)
 
void HUDSkinList_SavedName_Change (entity box, entity me)
 
entity makeXonoticHUDSkinList ()
 
void SaveHUDSkin_Click (entity btn, entity me)
 
void SetHUDSkin_Click (entity btn, entity me)
 

Variables

entity hudskinlist
 

Function Documentation

◆ HUDSkinList_Filter_Change()

void HUDSkinList_Filter_Change ( entity  box,
entity  me 
)

Definition at line 199 of file hudskinlist.qc.

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

200 {
201  strfree(me.filterString);
202 
203  if(box.text != "")
204  {
205  if (strstrofs(box.text, "*", 0) >= 0 || strstrofs(box.text, "?", 0) >= 0)
206  me.filterString = strzone(box.text);
207  else
208  me.filterString = strzone(strcat("*", box.text, "*"));
209  }
210 
211  me.getHUDSkins(me);
212 }
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 strstrofs
Definition: dpextensions.qh:42
#define strfree(this)
Definition: string.qh:56
+ Here is the call graph for this function:

◆ HUDSkinList_Refresh_Click()

void HUDSkinList_Refresh_Click ( entity  btn,
entity  me 
)

Definition at line 185 of file hudskinlist.qc.

Referenced by XonoticHUDSkinList_draw().

186 {
187  me.getHUDSkins(me);
188  me.setSelected(me, 0); //always select the first element after a list update
189 }
+ Here is the caller graph for this function:

◆ HUDSkinList_SavedName_Change()

void HUDSkinList_SavedName_Change ( entity  box,
entity  me 
)

Definition at line 191 of file hudskinlist.qc.

References strfree, and strzone().

192 {
193  strfree(me.savedName);
194 
195  if(box.text != "")
196  me.savedName = strzone(box.text);
197 }
#define strfree(this)
Definition: string.qh:56
+ Here is the call graph for this function:

◆ makeXonoticHUDSkinList()

entity makeXonoticHUDSkinList ( )

Definition at line 5 of file hudskinlist.qc.

References entity(), and NEW.

Referenced by XonoticHUDExitDialog_fill().

6 {
7  entity me;
9  me.configureXonoticHUDSkinList(me);
10  return me;
11 }
#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:

◆ SaveHUDSkin_Click()

void SaveHUDSkin_Click ( entity  btn,
entity  me 
)

Definition at line 214 of file hudskinlist.qc.

References localcmd, and time.

215 {
216  string s = me.savedName;
217  if(s == "")
218  s = "myconfig";
219  localcmd(sprintf("hud save \"%s\"\n", s));
220  me.delayedRefreshTime = time + 1;
221 }
float time
Definition: csprogsdefs.qc:16

◆ SetHUDSkin_Click()

void SetHUDSkin_Click ( entity  btn,
entity  me 
)

Definition at line 239 of file hudskinlist.qc.

240 {
241  me.setHUDSkin(me);
242 }

Variable Documentation

◆ hudskinlist

entity hudskinlist

Definition at line 33 of file hudskinlist.qh.

Referenced by XonoticHUDExitDialog_fill().