From 525a8ee527f49edae84a8cc3d5124da378cb1ebf Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Tue, 19 Mar 2024 05:03:08 -0700 Subject: [PATCH] dddddddd --- source/funkin/editors/charter/Charter.hx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 8ed40f21..1a70e653 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -558,7 +558,7 @@ class Charter extends UIState { var pixelsNeeded:Int = Math.floor(pixelsToAnalyze/3); if ((pixelsToAnalyze/3) % 1 > 0) pixelsNeeded += 1; - var WRAP_WIDTH:Int = 300; // just to test if it works - lunar + var WRAP_WIDTH:Int = 4000; // just to test if it works - lunar var waveData:BitmapData = new BitmapData(WRAP_WIDTH, 1+Math.floor(pixelsNeeded/WRAP_WIDTH), true, 0xFF000000); @@ -566,7 +566,7 @@ class Charter extends UIState { for (x in 0...waveData.width) { var amplitudes:Array = [0., 0., 0.]; for (color in 0...3) { - var gridY:Float = (y * (WRAP_WIDTH * 3)) + (x * 3) + color; + var gridY:Float = (y * (waveData.width * 3)) + (x * 3) + color; var startTime:Float = Conductor.getTimeForStep(gridY/40); if (startTime > FlxG.sound.music.length) @@ -1094,11 +1094,6 @@ class Charter extends UIState { super.update(elapsed); - if (FlxG.keys.justPressed.X) - wshader.data.MODE.value = [false]; - if (FlxG.keys.justPressed.Y) - wshader.data.MODE.value = [true]; - scrollBar.size = (FlxG.height / 40 / charterCamera.zoom); scrollBar.start = Conductor.curStepFloat - (scrollBar.size / 2);