Pixel-Composer/scripts/slider/slider.gml

11 lines
267 B
Plaintext
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 )
.setSlidable(_step / 10, false, [ _min, _max ])
.setOnRelease(_onRelease);
2022-01-13 05:24:03 +01:00
}