1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 06:14:36 +00:00

Fixed bools and associated checkboxes not updating properly.

This commit is contained in:
Jenny Crowe 2024-03-04 20:57:21 -07:00
parent d9a69dac10
commit d9cf097e46
2 changed files with 6 additions and 1 deletions

View file

@ -123,7 +123,7 @@ class FocusCameraSongEvent extends SongEvent
trace('Unknown camera focus: ' + data);
}
if (useTween) // always ends up false??
if (useTween)
{
var durSeconds = Conductor.instance.stepLengthMs * duration / 1000;

View file

@ -237,6 +237,11 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
{
value = event.target.value.value;
}
else if (field.type == BOOL)
{
var chk:CheckBox = cast event.target;
value = cast(chk.selected, Null<Bool>); // Need to cast to nullable bool or the compiler will get mad.
}
trace('ChartEditorToolboxHandler.buildEventDataFormFromSchema() - ${event.target.id} = ${value}');