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

Go to the source code of this file.

Classes

class  RadioButton
 

Functions

void RadioButton_Click (entity me, entity other)
 

Function Documentation

◆ RadioButton_Click()

void RadioButton_Click ( entity  me,
entity  other 
)

Definition at line 10 of file radiobutton.qc.

References entity().

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  }
entity() spawn
+ Here is the call graph for this function: