ok its FIXED BOYS :DD

This commit is contained in:
lunarcleint
2024-02-01 18:10:55 -07:00
parent d612676a29
commit 229b9ba5a3
@@ -31,14 +31,14 @@ class CharterSelection extends EditorTreeMenu {
for(s in freeplayList.songs) new EditorIconOption(s.name, "Press ACCEPT to choose a difficulty to edit.", s.icon, function() { for(s in freeplayList.songs) new EditorIconOption(s.name, "Press ACCEPT to choose a difficulty to edit.", s.icon, function() {
curSong = s; curSong = s;
var list:Array<OptionType> = [ var list:Array<OptionType> = [
new NewOption("New Difficulty", "New Difficulty", function() { for(d in s.difficulties) if (d != "")
FlxG.state.openSubState(new ChartCreationScreen(saveChart)); new TextOption(d, "Press ACCEPT to edit the chart for the selected difficulty", function() {
}) FlxG.switchState(new Charter(s.name, d));
})
]; ];
for(d in s.difficulties) if (d != "") list.push(new NewOption("New Difficulty", "New Difficulty", function() {
list.push(new TextOption(d, "Press ACCEPT to edit the chart for the selected difficulty", function() { FlxG.state.openSubState(new ChartCreationScreen(saveChart));
FlxG.switchState(new Charter(s.name, d)); }));
}));
optionsTree.add(new OptionsScreen(s.name, "Select a difficulty to continue.", list)); optionsTree.add(new OptionsScreen(s.name, "Select a difficulty to continue.", list));
}, s.parsedColor.getDefault(0xFFFFFFFF)) }, s.parsedColor.getDefault(0xFFFFFFFF))
]; ];
@@ -122,11 +122,9 @@ class CharterSelection extends EditorTreeMenu {
}) })
]; ];
list.push(new NewOption("New Difficulty", "New Difficulty", function() { list.push(new NewOption("New Difficulty", "New Difficulty", function() {
openSubState(new UIWarningSubstate("New Difficulty: Feature Not Implemented!", "This feature isnt implemented yet. Please wait for more cne updates to have this functional.\n\n\n- Codename Devs", [ FlxG.state.openSubState(new ChartCreationScreen(saveChart));
{label: "Ok", color: 0xFFFF0000, onClick: function(t) {}}
]));
})); }));
optionsTree.add(new OptionsScreen(creation.meta.name, "Select a difficulty to continue.", list)); optionsTree.insert(1, new OptionsScreen(creation.meta.name, "Select a difficulty to continue.", list));
}, creation.meta.parsedColor.getDefault(0xFFFFFFFF)); }, creation.meta.parsedColor.getDefault(0xFFFFFFFF));
// Add to List // Add to List
@@ -157,7 +155,7 @@ class CharterSelection extends EditorTreeMenu {
var option = new TextOption(name, "Press ACCEPT to edit the chart for the selected difficulty", function() { var option = new TextOption(name, "Press ACCEPT to edit the chart for the selected difficulty", function() {
FlxG.switchState(new Charter(curSong.name, name)); FlxG.switchState(new Charter(curSong.name, name));
}); });
optionsTree.members[optionsTree.members.length-1].insert(1, option); optionsTree.members[optionsTree.members.length-1].insert(optionsTree.members[optionsTree.members.length-1].length-1, option);
// Add to Meta // Add to Meta
var meta = Json.parse(sys.io.File.getContent('$songFolder/meta.json')); var meta = Json.parse(sys.io.File.getContent('$songFolder/meta.json'));