mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-01 12:24:27 +00:00
34 lines
500 B
Haxe
34 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++;
|
||
|
}
|
||
|
}
|
||
|
}
|