Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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.

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}
#define strstrofs
string strzone(string s)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define strfree(this)
Definition string.qh:59

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

Referenced by XonoticHUDExitDialog_fill().

◆ HUDSkinList_Refresh_Click()

void HUDSkinList_Refresh_Click ( entity btn,
entity me )

Definition at line 185 of file hudskinlist.qc.

186{
187 me.getHUDSkins(me);
188 me.setSelected(me, 0); //always select the first element after a list update
189}

References entity().

Referenced by XonoticHUDExitDialog_fill(), and XonoticHUDSkinList_draw().

◆ HUDSkinList_SavedName_Change()

void HUDSkinList_SavedName_Change ( entity box,
entity me )

Definition at line 191 of file hudskinlist.qc.

192{
193 strfree(me.savedName);
194
195 if(box.text != "")
196 me.savedName = strzone(box.text);
197}

References entity(), strfree, and strzone().

Referenced by XonoticHUDExitDialog_fill().

◆ makeXonoticHUDSkinList()

entity makeXonoticHUDSkinList ( )

Definition at line 5 of file hudskinlist.qc.

6{
7 entity me;
9 me.configureXonoticHUDSkinList(me);
10 return me;
11}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

Referenced by XonoticHUDExitDialog_fill(), and XonoticSkinResetDialog_fill().

◆ SaveHUDSkin_Click()

void SaveHUDSkin_Click ( entity btn,
entity me )

Definition at line 214 of file hudskinlist.qc.

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
void localcmd(string command,...)

References entity(), localcmd(), and time.

Referenced by XonoticHUDExitDialog_fill().

◆ SetHUDSkin_Click()

void SetHUDSkin_Click ( entity btn,
entity me )

Definition at line 239 of file hudskinlist.qc.

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

References entity().

Referenced by XonoticSkinResetDialog_fill().

Variable Documentation

◆ hudskinlist

entity hudskinlist

Definition at line 33 of file hudskinlist.qh.

Referenced by XonoticHUDExitDialog_fill(), and XonoticSkinResetDialog_fill().