pandemonium_demo_projects/2d/physics_tests/utils/slider.gd

12 lines
152 B
GDScript

extends Slider
export(float) var snap_step = 1.0
func _process(_delta):
if Input.is_key_pressed(KEY_SHIFT):
step = 0.1
else:
step = snap_step