X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fslider.qc;h=46379d5a35aa4d08dd12625d5818895903fd2599;hp=d63fe1c336c8ae2d2577803b67bd12cbfe59b5cb;hb=86c9dc7c3696c329496b06375c1e79fb407401ce;hpb=cd109cf922bc405155c680582745d645bd057ded diff --git a/qcsrc/menu/xonotic/slider.qc b/qcsrc/menu/xonotic/slider.qc index d63fe1c336..46379d5a35 100644 --- a/qcsrc/menu/xonotic/slider.qc +++ b/qcsrc/menu/xonotic/slider.qc @@ -1,7 +1,9 @@ -#ifdef INTERFACE -CLASS(XonoticSlider) EXTENDS(Slider) - METHOD(XonoticSlider, configureXonoticSlider, void(entity, float, float, float, string)) - METHOD(XonoticSlider, setValue, void(entity, float)) +#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) ATTRIB(XonoticSlider, valueSpace, float, SKINWIDTH_SLIDERTEXT) ATTRIB(XonoticSlider, image, string, SKINGFX_SLIDER) @@ -14,8 +16,8 @@ CLASS(XonoticSlider) EXTENDS(Slider) ATTRIB(XonoticSlider, color2, vector, SKINCOLOR_SLIDER_S) ATTRIB(XonoticSlider, cvarName, string, string_null) - METHOD(XonoticSlider, loadCvars, void(entity)) - METHOD(XonoticSlider, saveCvars, void(entity)) + METHOD(XonoticSlider, loadCvars, void(entity)); + METHOD(XonoticSlider, saveCvars, void(entity)); ATTRIB(XonoticSlider, sendCvars, float, 0) ATTRIB(XonoticSlider, alpha, float, SKINALPHA_TEXT) @@ -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; }