From: Stephan Stahl Date: Sun, 11 Apr 2010 19:31:32 +0000 (+0000) Subject: show a simple easing animation on the default slider. beware its ugly when draging... X-Git-Tag: xonotic-v0.1.0preview~578^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b3fd8f338db23d1fc726c09ebd5248c71b9fedde;p=xonotic%2Fxonotic-data.pk3dir.git show a simple easing animation on the default slider. beware its ugly when draging and otherwise (cherry picked from commit 0279f7b481307dd7c2c3a37e1ec3f6f14433565b) --- diff --git a/qcsrc/menu/xonotic/slider.c b/qcsrc/menu/xonotic/slider.c index 13ea0f2dd..420dd32e1 100644 --- a/qcsrc/menu/xonotic/slider.c +++ b/qcsrc/menu/xonotic/slider.c @@ -53,6 +53,7 @@ void setValueXonoticSlider(entity me, float val) { if(val != me.value) { + makeHostedEasing(me, setValueSlider, easingQuadInOut, 1, me.value, val); me.value = val; me.saveCvars(me); }