Pixel-Composer/scripts/slider/slider.gml

12 lines
271 B
Text
Raw Normal View History

2023-10-08 04:14:35 +02:00
enum SLIDER_UPDATE {
realtime,
release,
none,
}
2024-03-27 11:51:14 +01:00
function slider(_min, _max, _step, _onModify = noone, _onRelease = noone) {
return new textBox( TEXTBOX_INPUT.number, _onModify )
2024-07-26 09:38:39 +02:00
.setSlideRange(_min, _max)
2024-12-01 12:42:45 +01:00
.setSlideStep(_step)
2024-03-27 11:51:14 +01:00
.setOnRelease(_onRelease);
2022-01-13 05:24:03 +01:00
}