27 lines
797 B
Haxe
27 lines
797 B
Haxe
package funkin.editors.character;
|
|
|
|
import flixel.util.FlxColor;
|
|
import funkin.game.Character;
|
|
import funkin.backend.chart.Chart;
|
|
import funkin.options.type.TextOption;
|
|
import funkin.options.type.IconOption;
|
|
import funkin.options.OptionsScreen;
|
|
import sys.FileSystem;
|
|
|
|
class CharacterSelection extends EditorTreeMenu
|
|
{
|
|
public override function create()
|
|
{
|
|
bgType = "charter";
|
|
super.create();
|
|
|
|
var modsList:Array<String> = Character.getList(true);
|
|
main = new OptionsScreen("Character Editor", "Select a character to edit", [
|
|
for (char in (modsList.length == 0 ? Character.getList(false) : modsList))
|
|
new IconOption(char, "Press ACCEPT to edit this character.", Character.getIconFromCharName(char),
|
|
function() {
|
|
FlxG.switchState(new CharacterEditor(char));
|
|
})
|
|
]);
|
|
}
|
|
} |