mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05: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++;
|
||
|
}
|
||
|
}
|
||
|
}
|