3 void CheckBox_setChecked(entity me, float val)
7 void CheckBox_Click(entity me, entity other)
9 me.setChecked(me, !me.checked);
11 string CheckBox_toString(entity me)
13 return strcat(SUPER(CheckBox).toString(me), ", ", me.checked ? "checked" : "unchecked");
15 void CheckBox_configureCheckBox(entity me, string txt, float sz, string gfx)
17 me.configureButton(me, txt, sz, gfx);
20 void CheckBox_draw(entity me)
24 if (me.useDownAsChecked)
26 me.srcSuffix = string_null;
27 me.forcePressed = me.checked;
31 me.srcSuffix = (me.checked ? "1" : "0");
34 SUPER(CheckBox).draw(me);
36 void CheckBox_playClickSound(entity me)
38 m_play_click_sound(MENU_SOUND_SELECT);