Skip to content

Commit

Permalink
The default events now have minimum values
Browse files Browse the repository at this point in the history
lol, lmao, imagine coding a input to have minimum values but just.. not setting a value?
  • Loading branch information
Lasercar committed Feb 6, 2025
1 parent 6f40aea commit 801bfc4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/funkin/play/event/FocusCameraSongEvent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions source/funkin/play/event/ScrollSpeedEvent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class ScrollSpeedEvent extends SongEvent
name: 'scroll',
title: 'Target Value',
defaultValue: 1.0,
min: 0.1, // Please don't actually set the scroll speed to zero (or worse, a *negative* number) - Lasercar
step: 0.1,
type: SongEventFieldType.FLOAT,
units: 'x'
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions source/funkin/play/event/SetCameraBopSongEvent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -85,6 +86,7 @@ class SetCameraBopSongEvent extends SongEvent
name: 'rate',
title: 'Rate',
defaultValue: 4,
min: 0,
step: 1,
type: SongEventFieldType.INTEGER,
units: 'beats/zoom'
Expand Down
2 changes: 2 additions & 0 deletions source/funkin/play/event/ZoomCameraSongEvent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 801bfc4

Please sign in to comment.