mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
stickers uploaded
This commit is contained in:
parent
5a0ce60b36
commit
2de744cdcf
1 changed files with 39 additions and 0 deletions
39
source/funkin/ui/StickerSubState.hx
Normal file
39
source/funkin/ui/StickerSubState.hx
Normal file
|
@ -0,0 +1,39 @@
|
|||
package funkin.ui;
|
||||
|
||||
import haxe.Json;
|
||||
|
||||
class StickerSubState extends MusicBeatSubstate
|
||||
{
|
||||
public function new():Void
|
||||
{
|
||||
super();
|
||||
|
||||
var stickerInfo:StickerInfo = new StickerInfo('sticker-set-1');
|
||||
}
|
||||
}
|
||||
|
||||
class StickerInfo
|
||||
{
|
||||
public var name:String;
|
||||
public var artist:String;
|
||||
public var stickers:Stickers;
|
||||
public var stickerPacks:StickerPacks;
|
||||
|
||||
public function new(stickerSet:String):Void
|
||||
{
|
||||
var jsonInfo:Dynamic = Json.parse(Paths.file('assets/images/transitionSwag/' + stickerSet + '/stickers.json'));
|
||||
}
|
||||
}
|
||||
|
||||
class Stickers
|
||||
{
|
||||
var name:String;
|
||||
var stickers:Array<String>;
|
||||
}
|
||||
|
||||
class StickerPacks
|
||||
{
|
||||
var name:String;
|
||||
// which stickers are in a pack, refers to the class Stickers!
|
||||
var stickerPacks:Array<Stickers>;
|
||||
}
|
Loading…
Reference in a new issue