]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit - qcsrc/common/triggers/target/speaker.qc
Merge branch 'terencehill/slider_anim_improvements' into 'master'
authorMario <zacjardine@y7mail.com>
Sat, 3 Oct 2015 06:55:28 +0000 (06:55 +0000)
committerMario <zacjardine@y7mail.com>
Sat, 3 Oct 2015 06:55:28 +0000 (06:55 +0000)
commitc0582a52156c4e74e4c5313e5f360275493a8733
tree2e0b8df713f467af61b3068b1ce4bf22b4111d30
parent5607e279fe7b0dc9f92e15556ed6dc33f17f549c
parente659867bfa85b0e888166555cbb5b9f2a7e53fde
Merge branch 'terencehill/slider_anim_improvements' into 'master'

Slider anim improvements

1. Fix sliders handle getting stuck in the initial position when dragging outside the handle

2. Make sliders animation work much better on quick repeated changes (e.g. with mouse wheel). Default animation is now easingQuadOut and lasts 0.5 s (instead of easingQuadInOut, 1 s), more similar to the list scrolling animation

3. Don't play any animation when loading the initial value of a slider since the animation can't be seen anyway (the menu takes 2-3 seconds to load); also the high number (200) of animations played at once on menu start caused a bug where slider's handles couldn't be moved for a while (up to 12 seconds with 30 fps)

Additional note about point 3: before the change of point 2 500+ animation were played at once on menu start, as 300+ animation updates counted as new animations!

See merge request !221
qcsrc/menu/item/slider.qc
qcsrc/menu/xonotic/slider.qc
qcsrc/menu/xonotic/slider_decibels.qc
qcsrc/menu/xonotic/slider_particles.qc
qcsrc/menu/xonotic/slider_resolution.qc
qcsrc/menu/xonotic/slider_sbfadetime.qc
qcsrc/menu/xonotic/textslider.qc