mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-21 19:31:52 -04:00
fix that one annoying ass bug for events
This commit is contained in:
parent
0d8e4a5330
commit
71ed154b81
1 changed files with 6 additions and 3 deletions
|
@ -74,6 +74,7 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
|||
return;
|
||||
}
|
||||
|
||||
chartEditorState.eventDataToPlace = {};
|
||||
buildEventDataFormFromSchema(toolboxEventsDataGrid, schema, chartEditorState.eventKindToPlace);
|
||||
|
||||
if (!_initializing && chartEditorState.currentEventSelection.length > 0)
|
||||
|
@ -98,6 +99,8 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
|||
{
|
||||
super.refresh();
|
||||
|
||||
toolboxEventsEventKind.pauseEvent(UIEvent.CHANGE, true);
|
||||
|
||||
var newDropdownElement = ChartEditorDropdowns.findDropdownElement(chartEditorState.eventKindToPlace, toolboxEventsEventKind);
|
||||
|
||||
if (newDropdownElement == null)
|
||||
|
@ -156,6 +159,8 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
toolboxEventsEventKind.resumeEvent(UIEvent.CHANGE, true, true);
|
||||
}
|
||||
|
||||
var lastEventKind:String = 'unknown';
|
||||
|
@ -170,8 +175,6 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
|||
// Clear the frame.
|
||||
target.removeAllComponents();
|
||||
|
||||
chartEditorState.eventDataToPlace = {};
|
||||
|
||||
for (field in schema)
|
||||
{
|
||||
if (field == null) continue;
|
||||
|
@ -264,7 +267,7 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
|||
var value = event.target.value;
|
||||
if (field.type == ENUM)
|
||||
{
|
||||
value = event.target.value.value;
|
||||
value = event.target.value?.value;
|
||||
}
|
||||
else if (field.type == BOOL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue