mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
Fix "Could not locate metadataDialog"
This commit is contained in:
parent
1ccb84bbf2
commit
098dedd41e
2
assets
2
assets
|
@ -1 +1 @@
|
||||||
Subproject commit 2f49d84392bce6e5e6f1396ac6da5c5d5ab28395
|
Subproject commit e6f43593b88123e687b505280bd112bade7552ae
|
|
@ -557,11 +557,9 @@ class ChartEditorDialogHandler
|
||||||
var dialog:Null<Dialog> = openDialog(state, CHART_EDITOR_DIALOG_SONG_METADATA_LAYOUT, true, false);
|
var dialog:Null<Dialog> = openDialog(state, CHART_EDITOR_DIALOG_SONG_METADATA_LAYOUT, true, false);
|
||||||
if (dialog == null) throw 'Could not locate Song Metadata dialog';
|
if (dialog == null) throw 'Could not locate Song Metadata dialog';
|
||||||
|
|
||||||
var dialogContainer:Null<Dialog> = dialog.findComponent('metadataDialog', Dialog);
|
|
||||||
if (dialogContainer == null) throw 'Could not locate metadataDialog in Song Metadata dialog';
|
|
||||||
if (targetVariation != Constants.DEFAULT_VARIATION)
|
if (targetVariation != Constants.DEFAULT_VARIATION)
|
||||||
{
|
{
|
||||||
dialogContainer.title = 'New Chart - Provide Song Metadata (${targetVariation.toTitleCase()})';
|
dialog.title = 'New Chart - Provide Song Metadata (${targetVariation.toTitleCase()})';
|
||||||
}
|
}
|
||||||
|
|
||||||
var buttonCancel:Null<Button> = dialog.findComponent('dialogCancel', Button);
|
var buttonCancel:Null<Button> = dialog.findComponent('dialogCancel', Button);
|
||||||
|
|
Loading…
Reference in a new issue