]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/radiobutton.qc
take3: format 903 files
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / radiobutton.qc
index 00dcb680ad0d7e652000719d8312e02eacdaab95..e2a2c9fe0cea3b59df8d4027d62730714087a7e1 100644 (file)
@@ -1,24 +1,22 @@
 #include "radiobutton.qh"
 
-       void RadioButton_configureRadioButton(entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)
-       {
-               me.configureCheckBox(me, txt, sz, gfx);
-               me.align = 0;
-               me.group = theGroup;
-               me.allowDeselect = doAllowDeselect;
-       }
-       void RadioButton_Click(entity me, entity other)
-       {
-               if (me.checked)
-               {
-                       if (me.allowDeselect) me.setChecked(me, 0);
-               }
-               else
-               {
-                       entity e;
-                       for (e = me.parent.firstChild; e; e = e.nextSibling)
-                               if (e != me)
-                                       if (e.group == me.group) e.setChecked(e, 0);
-                       me.setChecked(me, 1);
+void RadioButton_configureRadioButton(entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)
+{
+       me.configureCheckBox(me, txt, sz, gfx);
+       me.align = 0;
+       me.group = theGroup;
+       me.allowDeselect = doAllowDeselect;
+}
+void RadioButton_Click(entity me, entity other)
+{
+       if (me.checked) {
+               if (me.allowDeselect) { me.setChecked(me, 0); }
+       } else {
+               entity e;
+               for (e = me.parent.firstChild; e; e = e.nextSibling) {
+                       if (e != me) {
+                               if (e.group == me.group) { e.setChecked(e, 0); } }
                }
+               me.setChecked(me, 1);
        }
+}