]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/crosshairpreview.qc
Enable Apply button on player's name change
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / crosshairpreview.qc
index b271f4dab39093703e36737d7e544646beb3fbd2..90694ca8c3a607ade663a6afe1906cab796751ca 100644 (file)
@@ -1,7 +1,9 @@
-#ifdef INTERFACE
-CLASS(XonoticCrosshairPreview) EXTENDS(Item)
-       METHOD(XonoticCrosshairPreview, configureXonoticCrosshairPreview, void(entity))
-       METHOD(XonoticCrosshairPreview, draw, void(entity))
+#ifndef CROSSHAIRPREVIEW_H
+#define CROSSHAIRPREVIEW_H
+#include "../item.qc"
+CLASS(XonoticCrosshairPreview, Item)
+       METHOD(XonoticCrosshairPreview, configureXonoticCrosshairPreview, void(entity));
+       METHOD(XonoticCrosshairPreview, draw, void(entity));
        ATTRIB(XonoticCrosshairPreview, src, string, string_null)
        ATTRIB(XonoticCrosshairPreview, src2, string, string_null)
        ATTRIB(XonoticCrosshairPreview, disabled, float, 0)
@@ -14,7 +16,7 @@ entity makeXonoticCrosshairPreview();
 entity makeXonoticCrosshairPreview()
 {
        entity me;
-       me = spawnXonoticCrosshairPreview();
+       me = NEW(XonoticCrosshairPreview);
        me.configureXonoticCrosshairPreview(me);
        return me;
 }