X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fslider.c;h=46a01bb5ac0e3c1c1e089a90836c4de3b851370f;hb=6d81ab64afd3d9980ff963edb261c03554fdfddb;hp=13ea0f2dd0c34390196a88900e12e8e385d392be;hpb=b49d3f3ffff847ec761e15fcc6285a736cddcba3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/slider.c b/qcsrc/menu/xonotic/slider.c index 13ea0f2dd..46a01bb5a 100644 --- a/qcsrc/menu/xonotic/slider.c +++ b/qcsrc/menu/xonotic/slider.c @@ -31,7 +31,7 @@ entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueSte me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar); return me; } -void configureXonoticSliderXonoticSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar) +void XonoticSlider_configureXonoticSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar) { float v, vk, vp; v = theValueMin; @@ -49,22 +49,22 @@ void configureXonoticSliderXonoticSlider(entity me, float theValueMin, float the me.tooltip = getZonedTooltipForIdentifier(theCvar); } } -void setValueXonoticSlider(entity me, float val) +void XonoticSlider_setValue(entity me, float val) { if(val != me.value) { - me.value = val; + SUPER(XonoticSlider).setValue( me, val ); me.saveCvars(me); } } -void loadCvarsXonoticSlider(entity me) +void XonoticSlider_loadCvars(entity me) { if not(me.cvarName) return; - me.value = cvar(me.cvarName); + me.setValue( me, cvar(me.cvarName) ); } -void saveCvarsXonoticSlider(entity me) +void XonoticSlider_saveCvars(entity me) { if not(me.cvarName) return;