]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/radiobutton.qh
Fix broken automatic waypoint generation for jumppads really close to other jumppads...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / radiobutton.qh
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..7bd737787657ff8f74eb642c5a22f600f69e8a2d 100644 (file)
@@ -1 +1,11 @@
 #pragma once
+
+#include "checkbox.qh"
+void RadioButton_Click(entity me, entity other);
+CLASS(RadioButton, CheckBox)
+       METHOD(RadioButton, configureRadioButton, void(entity, string, float, string, float, float));
+       ATTRIB(RadioButton, checked, float, 0);
+       ATTRIB(RadioButton, group, float, 0);
+       ATTRIB(RadioButton, allowDeselect, float, 0);
+       ATTRIB(RadioButton, onClick, void(entity, entity), RadioButton_Click);
+ENDCLASS(RadioButton)