1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-01 12:24:27 +00:00
Funkin/source/ModdingSubstate.hx

34 lines
500 B
Haxe
Raw Normal View History

2021-03-10 00:41:03 +00:00
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++;
}
}
}