completed chart saving (i think
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user