1 #ifndef ITEM_RADIOBUTTON_H
2 #define ITEM_RADIOBUTTON_H
4 void RadioButton_Click(entity me, entity other);
5 CLASS(RadioButton, CheckBox)
6 METHOD(RadioButton, configureRadioButton, void(entity, string, float, string, float, float))
7 ATTRIB(RadioButton, checked, float, 0)
8 ATTRIB(RadioButton, group, float, 0)
9 ATTRIB(RadioButton, allowDeselect, float, 0)
10 ATTRIB(RadioButton, onClick, void(entity, entity), RadioButton_Click)
15 void RadioButton_configureRadioButton(entity me, string txt, float sz, string gfx, float theGroup, float doAllowDeselect)
17 me.configureCheckBox(me, txt, sz, gfx);
20 me.allowDeselect = doAllowDeselect;
22 void RadioButton_Click(entity me, entity other)
32 for(e = me.parent.firstChild; e; e = e.nextSibling)
34 if(e.group == me.group)