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

Go to the source code of this file.

Classes

class  XonoticPlayerModelSelector
 

Functions

entity makeXonoticPlayerModelSelector ()
 
void PlayerModelSelector_Next_Click (entity btn, entity me)
 
void PlayerModelSelector_Prev_Click (entity btn, entity me)
 

Function Documentation

◆ makeXonoticPlayerModelSelector()

entity makeXonoticPlayerModelSelector ( )

Definition at line 3 of file playermodel.qc.

References entity(), and NEW.

4 {
5  entity me;
7  me.configureXonoticPlayerModelSelector(me);
8  return me;
9 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:

◆ PlayerModelSelector_Next_Click()

void PlayerModelSelector_Next_Click ( entity  btn,
entity  me 
)

Definition at line 131 of file playermodel.qc.

132 {
133  if (me.numModels <= 0)
134  return;
135  me.go(me, +1);
136  me.saveCvars(me);
137 }

◆ PlayerModelSelector_Prev_Click()

void PlayerModelSelector_Prev_Click ( entity  btn,
entity  me 
)

Definition at line 139 of file playermodel.qc.

140 {
141  if (me.numModels <= 0)
142  return;
143  me.go(me, -1);
144  me.saveCvars(me);
145 }