mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-22 01:49:21 +00:00
Added units to other song events.
This commit is contained in:
parent
4f7c2cd511
commit
bfb032dc7f
|
@ -78,7 +78,12 @@ abstract SongEventSchema(SongEventSchemaRaw)
|
|||
{
|
||||
if (field.units == null || field.units == '') return value;
|
||||
|
||||
return value + ' ${field.units}';
|
||||
var unit:String = field.units;
|
||||
|
||||
// These units look better when placed immediately next to the value, rather than after a space.
|
||||
if (unit == 'x' || unit == '°') return value + '${unit}';
|
||||
|
||||
return value + ' ${unit}';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ class FocusCameraSongEvent extends SongEvent
|
|||
defaultValue: 0,
|
||||
step: 10.0,
|
||||
type: SongEventFieldType.FLOAT,
|
||||
units: "px",
|
||||
units: "px"
|
||||
},
|
||||
{
|
||||
name: "y",
|
||||
|
@ -154,7 +154,7 @@ class FocusCameraSongEvent extends SongEvent
|
|||
defaultValue: 0,
|
||||
step: 10.0,
|
||||
type: SongEventFieldType.FLOAT,
|
||||
units: "px",
|
||||
units: "px"
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -78,14 +78,16 @@ class SetCameraBopSongEvent extends SongEvent
|
|||
title: 'Intensity',
|
||||
defaultValue: 1.0,
|
||||
step: 0.1,
|
||||
type: SongEventFieldType.FLOAT
|
||||
type: SongEventFieldType.FLOAT,
|
||||
units: 'x'
|
||||
},
|
||||
{
|
||||
name: 'rate',
|
||||
title: 'Rate (beats/zoom)',
|
||||
title: 'Rate',
|
||||
defaultValue: 4,
|
||||
step: 1,
|
||||
type: SongEventFieldType.INTEGER,
|
||||
units: 'beats/zoom'
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -106,14 +106,16 @@ class ZoomCameraSongEvent extends SongEvent
|
|||
title: 'Zoom Level',
|
||||
defaultValue: 1.0,
|
||||
step: 0.1,
|
||||
type: SongEventFieldType.FLOAT
|
||||
type: SongEventFieldType.FLOAT,
|
||||
units: 'x'
|
||||
},
|
||||
{
|
||||
name: 'duration',
|
||||
title: 'Duration (in steps)',
|
||||
title: 'Duration',
|
||||
defaultValue: 4.0,
|
||||
step: 0.5,
|
||||
type: SongEventFieldType.FLOAT,
|
||||
units: 'steps'
|
||||
},
|
||||
{
|
||||
name: 'ease',
|
||||
|
|
Loading…
Reference in a new issue