]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/checkbox.c
let's USE the super keyword! yay!
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / checkbox.c
index 40fa6675bd0df2ba8d1e92b51c8a4233bfa3d38a..adbedf95a5ca242149aa4d6474e48e16e5f5c38d 100644 (file)
@@ -24,7 +24,7 @@ void CheckBox_Click(entity me, entity other)
 }
 string toStringCheckBox(entity me)
 {
-       return strcat(toStringLabel(me), ", ", me.checked ? "checked" : "unchecked");
+       return strcat(SUPER(CheckBox).toString(me), ", ", me.checked ? "checked" : "unchecked");
 }
 void configureCheckBoxCheckBox(entity me, string txt, float sz, string gfx)
 {
@@ -42,7 +42,7 @@ void drawCheckBox(entity me)
        }
        else
                me.srcSuffix = (me.checked ? "1" : "0");
-       drawButton(me);
+       SUPER(CheckBox).draw(me);
        me.pressed = s;
 }
 #endif