]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/radiobutton.qc
Listbox: don't allow double-click on non-selectable items
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / radiobutton.qc
index dac17b1415643f8c522cd100a668ad719f78c5aa..00dcb680ad0d7e652000719d8312e02eacdaab95 100644 (file)
@@ -1,17 +1,5 @@
-#ifndef ITEM_RADIOBUTTON_H
-       #define ITEM_RADIOBUTTON_H
-       #include "checkbox.qc"
-       void RadioButton_Click(entity me, entity other);
-       CLASS(RadioButton, CheckBox)
-               METHOD(RadioButton, configureRadioButton, void(entity, string, float, string, float, float));
-               ATTRIB(RadioButton, checked, float, 0)
-               ATTRIB(RadioButton, group, float, 0)
-               ATTRIB(RadioButton, allowDeselect, float, 0)
-               ATTRIB(RadioButton, onClick, void(entity, entity), RadioButton_Click)
-       ENDCLASS(RadioButton)
-#endif
+#include "radiobutton.qh"
 
-#ifdef IMPLEMENTATION
        void RadioButton_configureRadioButton(entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)
        {
                me.configureCheckBox(me, txt, sz, gfx);
@@ -34,4 +22,3 @@
                        me.setChecked(me, 1);
                }
        }
-#endif