]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/item/radiobutton.qh
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / radiobutton.qh
1 #pragma once
2
3 #include "checkbox.qh"
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);
11 ENDCLASS(RadioButton)