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) {
25 me.srcSuffix = string_null;
26 me.forcePressed = me.checked;
28 me.srcSuffix = (me.checked ? "1" : "0");
31 SUPER(CheckBox).draw(me);
33 void CheckBox_playClickSound(entity me)
35 m_play_click_sound(MENU_SOUND_SELECT);