mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
33 lines
500 B
Haxe
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++;
|
|
}
|
|
}
|
|
}
|