1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-30 00:20:30 +00:00

nice lil control shti

This commit is contained in:
Cameron Taylor 2021-06-05 00:58:10 -04:00
parent 7e213cb5cb
commit 2323000381

View file

@ -126,6 +126,8 @@ class DebugBoundingState extends FlxState
function generateOutlines(frameShit:Array<FlxFrame>):Void
{
// swagOutlines.width = frameShit[0].parent.width;
// swagOutlines.height = frameShit[0].parent.height;
swagOutlines.pixels.fillRect(new Rectangle(0, 0, swagOutlines.width, swagOutlines.height), 0x00000000);
for (i in frameShit)
@ -162,6 +164,7 @@ class DebugBoundingState extends FlxState
var characters:Array<String> = CoolUtil.coolTextFile(Paths.txt('characterList'));
// charInput isnt only exclusive to offsetView shit now
charInput = new FlxUIDropDownMenu(500, 20, FlxUIDropDownMenu.makeStrIdLabelArray(characters, true), function(str:String)
{
loadAnimShit(characters[Std.parseInt(str)]);
@ -169,7 +172,7 @@ class DebugBoundingState extends FlxState
});
// charInput.
charInput.cameras = [hudCam];
offsetView.add(charInput);
add(charInput);
}
public var mouseOffset:FlxPoint = FlxPoint.get(0, 0);
@ -231,7 +234,14 @@ class DebugBoundingState extends FlxState
if (FlxG.keys.justPressed.ONE)
curView = SPRITESHEET;
if (FlxG.keys.justReleased.TWO)
{
curView = OFFSETSHIT;
if (swagChar != null)
{
FlxG.camera.focusOn(swagChar.getMidpoint());
FlxG.camera.zoom = 0.95;
}
}
switch (curView)
{