1 #ifndef ITEM_RADIOBUTTON_H
2 #define ITEM_RADIOBUTTON_H
3 void RadioButton_Click(entity me, entity other);
4 CLASS(RadioButton, CheckBox)
5 METHOD(RadioButton, configureRadioButton, void(entity, string, float, string, float, float))
6 ATTRIB(RadioButton, checked, float, 0)
7 ATTRIB(RadioButton, group, float, 0)
8 ATTRIB(RadioButton, allowDeselect, float, 0)
9 ATTRIB(RadioButton, onClick, void(entity, entity), RadioButton_Click)
14 void RadioButton_configureRadioButton(entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)
16 me.configureCheckBox(me, txt, sz, gfx);
19 me.allowDeselect = doAllowDeselect;
21 void RadioButton_Click(entity me, entity other)
31 for(e = me.parent.firstChild; e; e = e.nextSibling)
33 if(e.group == me.group)