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:
parent
d9a69dac10
commit
d9cf097e46
|
@ -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;
|
||||
|
||||
|
|
|
@ -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}');
|
||||
|
||||
|
|
Loading…
Reference in a new issue