1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2025-07-15 12:24:15 +00:00

scripting: print(), css, palette layout, flex

make syncdev/prod: fixed mime type upload
This commit is contained in:
Steven Hugg
2021-08-18 15:44:13 -05:00
parent 9076ede5c1
commit 6cee4e26e4
12 changed files with 269 additions and 74 deletions

View File

@@ -6,7 +6,8 @@ export class ScriptUISliderType {
value: number;
constructor(
readonly min: number,
readonly max: number
readonly max: number,
readonly step: number
) {
}
}
@@ -25,6 +26,6 @@ export class ScriptUISlider extends ScriptUISliderType implements io.Loadable {
}
}
export function slider(min: number, max: number) {
return new ScriptUISlider(min, max);
export function slider(min: number, max: number, step?: number) {
return new ScriptUISlider(min, max, step || 1);
}