1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-25 14:46:43 +00:00

switch seemingly doesnt work

This commit is contained in:
lemz 2024-06-22 10:52:26 +02:00 committed by EliteMasterEric
parent 94fe4a06b9
commit 9a563ec46b

View file

@ -72,11 +72,12 @@ class NoteKind implements INoteScriptedClass
{ {
if (param.name == name) if (param.name == name)
{ {
switch (param.type) if (param.type == NoteKindParamType.INT || param.type == NoteKindParamType.FLOAT)
{ {
case NoteKindParamType.INT | NoteKindParamType.FLOAT:
param.data.value = FlxMath.bound(value, param.data.min, param.data.max); param.data.value = FlxMath.bound(value, param.data.min, param.data.max);
default: }
else
{
param.data.value = value; param.data.value = value;
} }
@ -118,11 +119,11 @@ class NoteKind implements INoteScriptedClass
*/ */
abstract NoteKindParamType(String) to String abstract NoteKindParamType(String) to String
{ {
public static var STRING:String = "String"; public static final STRING:String = 'String';
public static var INT:String = "Int"; public static final INT:String = 'Int';
public static var FLOAT:String = "Float"; public static final FLOAT:String = 'Float';
} }
typedef NoteKindParamData = typedef NoteKindParamData =