From d771a01c0d59b77e7d9b8bc01e9b2d9165accec0 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Sun, 9 Jun 2024 01:44:37 -0700 Subject: [PATCH] ok its working now --- source/funkin/editors/ui/UISliceSprite.hx | 43 +++++++++++------------ 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/source/funkin/editors/ui/UISliceSprite.hx b/source/funkin/editors/ui/UISliceSprite.hx index 63bea2b2..e8f1db7d 100644 --- a/source/funkin/editors/ui/UISliceSprite.hx +++ b/source/funkin/editors/ui/UISliceSprite.hx @@ -97,28 +97,27 @@ class UISliceSprite extends UISprite { public override function draw() @:privateAccess { checkEmptyFrame(); - if (alpha == 0 || _frame.type == FlxFrameType.EMPTY) - return; - - if (__framesDirty) calculateFrames(); - if (__meshDirty) __genMesh(); - - for (camera in cameras) - { - if (!camera.visible || !camera.exists || !isOnScreen(camera)) - continue; - - getScreenPosition(_point, camera).subtractPoint(offset); - - #if !flash - camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing, colorTransform, shader); - #else - camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing); - #end - - #if FLX_DEBUG - FlxBasic.visibleCount++; - #end + if (alpha == 0 || _frame.type == FlxFrameType.EMPTY) { + if (__framesDirty) calculateFrames(); + if (__meshDirty) __genMesh(); + + for (camera in cameras) + { + if (!camera.visible || !camera.exists || !isOnScreen(camera)) + continue; + + getScreenPosition(_point, camera).subtractPoint(offset); + + #if !flash + camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing, colorTransform, shader); + #else + camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing); + #end + + #if FLX_DEBUG + FlxBasic.visibleCount++; + #end + } } super.drawMembers();