completed chart saving (i think

This commit is contained in:
Frakist
2024-02-01 17:28:29 +02:00
parent ae931c3b75
commit 1810f86b58
2 changed files with 1 additions and 2 deletions
@@ -122,7 +122,7 @@ class ChartCreationScreen extends UISubstateWindow {
characters: [for (charb in strline.charactersList.buttons.members) charb.textBox.label.text],
type: strline.typeDropdown.index,
notes: [],
position: strline.stagePositionDropdown.label.text,
position: strline.stagePositionDropdown.label.text.toLowerCase(),
visible: strline.visibleCheckbox.checked,
strumPos: [0, strline.hudYStepper.value],
strumLinePos: strline.hudXStepper.value,
@@ -160,7 +160,6 @@ class CharterSelection extends EditorTreeMenu {
// Add to Meta
var meta = Json.parse(sys.io.File.getContent('$songFolder/meta.json'));
trace(meta);
if (meta.difficulties != null && !meta.difficulties.contains(creation.name)) {
meta.difficulties.push(creation.name);
sys.io.File.saveContent('$songFolder/meta.json', Json.stringify(meta));