Funkin/source/ModdingSubstate.hx
2021-03-09 19:41:03 -05:00

33 lines
500 B
Haxe

package;
import flixel.text.FlxText;
import sys.FileSystem;
class ModdingSubstate extends MusicBeatSubstate
{
public function new():Void
{
super();
// var pathShit
var modList = [];
for (file in FileSystem.readDirectory('./mods'))
{
if (FileSystem.isDirectory("./mods/" + file))
modList.push(file);
}
trace(modList);
var loopNum:Int = 0;
for (i in modList)
{
var txt:FlxText = new FlxText(0, 10 + (40 * loopNum), 0, i, 32);
add(txt);
loopNum++;
}
}
}