1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-09-05 05:07:39 +00:00

Compare commits

...

4 commits

Author SHA1 Message Date
Lasercar 2788e2f525 fixed max field of int being set to 0 if min had a value 2025-02-23 09:02:01 +10:00
Lasercar 3f32faf7bd removed unnecessary comment 2025-02-07 15:54:28 +10:00
Lasercar 8aaf36d9e1 removed sig 2025-02-06 19:36:21 +10:00
Lasercar 801bfc4c4a The default events now have minimum values
lol, lmao, imagine coding a input to have minimum values but just.. not setting a value?
2025-02-06 18:32:24 +10:00
5 changed files with 8 additions and 1 deletions

View file

@ -188,6 +188,7 @@ class FocusCameraSongEvent extends SongEvent
name: 'duration',
title: 'Duration',
defaultValue: 4.0,
min: 0,
step: 0.5,
type: SongEventFieldType.FLOAT,
units: 'steps'

View file

@ -112,6 +112,7 @@ class ScrollSpeedEvent extends SongEvent
name: 'scroll',
title: 'Target Value',
defaultValue: 1.0,
min: 0.1,
step: 0.1,
type: SongEventFieldType.FLOAT,
units: 'x'
@ -120,6 +121,7 @@ class ScrollSpeedEvent extends SongEvent
name: 'duration',
title: 'Duration',
defaultValue: 4.0,
min: 0,
step: 0.5,
type: SongEventFieldType.FLOAT,
units: 'steps'

View file

@ -77,6 +77,7 @@ class SetCameraBopSongEvent extends SongEvent
name: 'intensity',
title: 'Intensity',
defaultValue: 1.0,
min: 0,
step: 0.1,
type: SongEventFieldType.FLOAT,
units: 'x'
@ -85,6 +86,7 @@ class SetCameraBopSongEvent extends SongEvent
name: 'rate',
title: 'Rate',
defaultValue: 4,
min: 0,
step: 1,
type: SongEventFieldType.INTEGER,
units: 'beats/zoom'

View file

@ -114,6 +114,7 @@ class ZoomCameraSongEvent extends SongEvent
name: 'zoom',
title: 'Zoom Level',
defaultValue: 1.0,
min: 0,
step: 0.05,
type: SongEventFieldType.FLOAT,
units: 'x'
@ -122,6 +123,7 @@ class ZoomCameraSongEvent extends SongEvent
name: 'duration',
title: 'Duration',
defaultValue: 4.0,
min: 0,
step: 0.5,
type: SongEventFieldType.FLOAT,
units: 'steps'

View file

@ -191,7 +191,7 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
numberStepper.id = field.name;
numberStepper.step = field.step ?? 1.0;
if (field.min != null) numberStepper.min = field.min;
if (field.min != null) numberStepper.max = field.max;
if (field.max != null) numberStepper.max = field.max;
if (field.defaultValue != null) numberStepper.value = field.defaultValue;
input = numberStepper;
case FLOAT: