Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
checkbox.qc
Go to the documentation of this file.
1#include "checkbox.qh"
2
3 void CheckBox_setChecked(entity me, bool val)
4 {
5 me.checked = val;
6 }
8 {
9 me.setChecked(me, !me.checked);
10 }
12 {
13 return strcat(SUPER(CheckBox).toString(me), ", ", me.checked ? "checked" : "unchecked");
14 }
15 void CheckBox_configureCheckBox(entity me, string txt, float sz, string gfx)
16 {
17 me.configureButton(me, txt, sz, gfx);
18 me.align = 0;
19 }
21 {
22 float s = me.pressed;
23 if (me.useDownAsChecked)
24 {
25 me.srcSuffix = string_null;
26 me.forcePressed = me.checked;
27 }
28 else
29 {
30 me.srcSuffix = (me.checked ? "1" : "0");
31 }
32 me.pressed = s;
33 SUPER(CheckBox).draw(me);
34 }
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity other
string CheckBox_toString(entity me)
Definition checkbox.qc:11
void CheckBox_draw(entity me)
Definition checkbox.qc:20
void CheckBox_configureCheckBox(entity me, string txt, float sz, string gfx)
Definition checkbox.qc:15
void CheckBox_Click(entity me, entity other)
Definition checkbox.qc:7
void CheckBox_playClickSound(entity me)
Definition checkbox.qc:35
void CheckBox_setChecked(entity me, bool val)
Definition checkbox.qc:3
void m_play_click_sound(string soundfile)
Definition menu.qc:1111
const string MENU_SOUND_SELECT
Definition menu.qh:54
string string_null
Definition nil.qh:9
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define SUPER(cname)
Definition oo.qh:231