Xonotic
radiobutton.qc
Go to the documentation of this file.
1
#include "
radiobutton.qh
"
2
3
void
RadioButton_configureRadioButton
(
entity
me,
string
txt,
float
sz,
string
gfx,
float
theGroup,
float
doAllowDeselect)
4
{
5
me.configureCheckBox(me, txt, sz, gfx);
6
me.align = 0;
7
me.group = theGroup;
8
me.allowDeselect = doAllowDeselect;
9
}
10
void
RadioButton_Click
(
entity
me,
entity
other
)
11
{
12
if
(me.checked)
13
{
14
if
(me.allowDeselect) me.setChecked(me, 0);
15
}
16
else
17
{
18
entity
e;
19
for
(e = me.parent.firstChild; e; e = e.nextSibling)
20
if
(e != me)
21
if
(e.group == me.group) e.setChecked(e, 0);
22
me.setChecked(me, 1);
23
}
24
}
RadioButton_Click
void RadioButton_Click(entity me, entity other)
Definition:
radiobutton.qc:10
entity
entity() spawn
other
entity other
Definition:
csprogsdefs.qc:14
radiobutton.qh
RadioButton_configureRadioButton
void RadioButton_configureRadioButton(entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)
Definition:
radiobutton.qc:3
menu
item
radiobutton.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13