Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
radiobutton.qc File Reference
#include "radiobutton.qh"
Include dependency graph for radiobutton.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void RadioButton_Click (entity me, entity other)
void RadioButton_configureRadioButton (entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)

Function Documentation

◆ RadioButton_Click()

void RadioButton_Click ( entity me,
entity other )

Definition at line 10 of file radiobutton.qc.

11 {
12 if (me.checked)
13 {
14 if (me.allowDeselect) me.setChecked(me, false);
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, false);
22 me.setChecked(me, true);
23 }
24 }
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback

References entity(), and other.

Referenced by RadioButton::void().

◆ RadioButton_configureRadioButton()

void RadioButton_configureRadioButton ( entity me,
string txt,
float sz,
string gfx,
float theGroup,
float doAllowDeselect )

Definition at line 3 of file radiobutton.qc.

4 {
5 me.configureCheckBox(me, txt, sz, gfx);
6 me.align = 0;
7 me.group = theGroup;
8 me.allowDeselect = doAllowDeselect;
9 }

References entity().