mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 11:22:55 +00:00
Update NoteKind.hx
This commit is contained in:
parent
c8d019da2f
commit
94fe4a06b9
|
@ -72,13 +72,12 @@ class NoteKind implements INoteScriptedClass
|
||||||
{
|
{
|
||||||
if (param.name == name)
|
if (param.name == name)
|
||||||
{
|
{
|
||||||
if (param.type == NoteKindParamType.RANGED_INT || param.type == NoteKindParamType.RANGED_FLOAT)
|
switch (param.type)
|
||||||
{
|
{
|
||||||
param.data.value = FlxMath.bound(value, param.data.min, param.data.max);
|
case NoteKindParamType.INT | NoteKindParamType.FLOAT:
|
||||||
}
|
param.data.value = FlxMath.bound(value, param.data.min, param.data.max);
|
||||||
else
|
default:
|
||||||
{
|
param.data.value = value;
|
||||||
param.data.value = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -123,23 +122,17 @@ abstract NoteKindParamType(String) to String
|
||||||
|
|
||||||
public static var INT:String = "Int";
|
public static var INT:String = "Int";
|
||||||
|
|
||||||
public static var RANGED_INT:String = "RangedInt";
|
|
||||||
|
|
||||||
public static var FLOAT:String = "Float";
|
public static var FLOAT:String = "Float";
|
||||||
|
|
||||||
public static var RANGED_FLOAT:String = "RangedFloat";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef NoteKindParamData =
|
typedef NoteKindParamData =
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Only used for `RangedInt` and `RangedFloat`
|
|
||||||
* If `min` is null, there is no minimum
|
* If `min` is null, there is no minimum
|
||||||
*/
|
*/
|
||||||
var min:Null<Float>;
|
var min:Null<Float>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only used for `RangedInt` and `RangedFloat`
|
|
||||||
* If `max` is null, there is no maximum
|
* If `max` is null, there is no maximum
|
||||||
*/
|
*/
|
||||||
var max:Null<Float>;
|
var max:Null<Float>;
|
||||||
|
|
Loading…
Reference in a new issue