X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fslider.qc;h=d95cac7e9eebedce1ddb3c4df75369e06b4a0251;hp=d63fe1c336c8ae2d2577803b67bd12cbfe59b5cb;hb=99c1b6ca80a69e112d410ee493d62f757b2c6df8;hpb=244e5081c5c503c307e557c98ac864f6c9731475 diff --git a/qcsrc/menu/xonotic/slider.qc b/qcsrc/menu/xonotic/slider.qc index d63fe1c33..d95cac7e9 100644 --- a/qcsrc/menu/xonotic/slider.qc +++ b/qcsrc/menu/xonotic/slider.qc @@ -1,5 +1,7 @@ -#ifdef INTERFACE -CLASS(XonoticSlider) EXTENDS(Slider) +#ifndef SLIDER_H +#define SLIDER_H +#include "../item/slider.qc" +CLASS(XonoticSlider, Slider) METHOD(XonoticSlider, configureXonoticSlider, void(entity, float, float, float, string)) METHOD(XonoticSlider, setValue, void(entity, float)) ATTRIB(XonoticSlider, fontSize, float, SKINFONTSIZE_NORMAL) @@ -28,7 +30,7 @@ entity makeXonoticSlider(float, float, float, string); entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar) { entity me; - me = spawnXonoticSlider(); + me = NEW(XonoticSlider); me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar); return me; }