From 2323000381ec59749e9ddd921448bbc70fd5f9ce Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sat, 5 Jun 2021 00:58:10 -0400 Subject: [PATCH] nice lil control shti --- source/ui/animDebugShit/DebugBoundingState.hx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/ui/animDebugShit/DebugBoundingState.hx b/source/ui/animDebugShit/DebugBoundingState.hx index 0324c1711..23495d2f5 100644 --- a/source/ui/animDebugShit/DebugBoundingState.hx +++ b/source/ui/animDebugShit/DebugBoundingState.hx @@ -126,6 +126,8 @@ class DebugBoundingState extends FlxState function generateOutlines(frameShit:Array):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 = 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) {