#include "../../warpzonelib/mathlib.qh"
-#ifdef INTERFACE
-CLASS(XonoticDecibelsSlider) EXTENDS(XonoticSlider)
+#ifndef SLIDER_DECIBELS_H
+#define SLIDER_DECIBELS_H
+#include "slider.qc"
+CLASS(XonoticDecibelsSlider, XonoticSlider)
METHOD(XonoticDecibelsSlider, loadCvars, void(entity))
METHOD(XonoticDecibelsSlider, saveCvars, void(entity))
METHOD(XonoticDecibelsSlider, valueToText, string(entity, float))
entity makeXonoticDecibelsSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
{
entity me;
- me = spawnXonoticDecibelsSlider();
+ me = NEW(XonoticDecibelsSlider);
me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar);
return me;
}