new chart editor, sm file support, bpm changes, and scroll speed changes.
This commit is contained in:
32
source/SectionRender.hx
Normal file
32
source/SectionRender.hx
Normal file
@ -0,0 +1,32 @@
|
||||
import flixel.FlxG;
|
||||
import flixel.util.FlxColor;
|
||||
import flixel.group.FlxGroup.FlxTypedGroup;
|
||||
import Section.SwagSection;
|
||||
import flixel.addons.display.FlxGridOverlay;
|
||||
import flixel.FlxSprite;
|
||||
|
||||
class SectionRender extends FlxSprite
|
||||
{
|
||||
public var section:SwagSection;
|
||||
public var icon:FlxSprite;
|
||||
public var lastUpdated:Bool;
|
||||
|
||||
public function new(x:Float,y:Float,GRID_SIZE:Int, ?Height:Int = 16)
|
||||
{
|
||||
super(x,y);
|
||||
|
||||
makeGraphic(GRID_SIZE * 8, GRID_SIZE * Height,FlxColor.BLACK);
|
||||
|
||||
var h = GRID_SIZE;
|
||||
if (Math.floor(h) != h)
|
||||
h = GRID_SIZE;
|
||||
|
||||
FlxGridOverlay.overlay(this,GRID_SIZE, Std.int(h), GRID_SIZE * 8,GRID_SIZE * Height);
|
||||
}
|
||||
|
||||
|
||||
|
||||
override function update(elapsed)
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user