Skip to content

Commit

Permalink
Update Hitbox.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Nov 27, 2024
1 parent f881477 commit 707d080
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions source/mobile/objects/Hitbox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Hitbox extends FlxButtonGroup

hintLaneTween = FlxTween.tween(hint.label, {alpha: 0.00001}, Options.controlsAlpha / 10, {
ease: FlxEase.circInOut,
onComplete: (twn:FlxTween) -> hintTween = null
onComplete: (twn:FlxTween) -> hintLaneTween = null
});
}

Expand All @@ -114,7 +114,7 @@ class Hitbox extends FlxButtonGroup

hintLaneTween = FlxTween.tween(hint.label, {alpha: Options.controlsAlpha}, Options.controlsAlpha / 100, {
ease: FlxEase.circInOut,
onComplete: (twn:FlxTween) -> hintTween = null
onComplete: (twn:FlxTween) -> hintLaneTween = null
});
}
}
Expand Down Expand Up @@ -143,13 +143,7 @@ class Hitbox extends FlxButtonGroup
shape.graphics.drawRect(0, 0, Width, Height);
shape.graphics.endFill();
}
else if (Options.hitboxType == "noGradientOld")
{
shape.graphics.lineStyle(10, 0xFFFFFF, 1);
shape.graphics.drawRect(0, 0, Width, Height);
shape.graphics.endFill();
}
else // if (Options.hitboxType == 'gradient')
else if (Options.hitboxType == 'gradient')
{
shape.graphics.lineStyle(3, 0xFFFFFF, 1);
shape.graphics.drawRect(0, 0, Width, Height);
Expand All @@ -163,8 +157,14 @@ class Hitbox extends FlxButtonGroup
shape.graphics.drawRect(3, 3, Width - 6, Height - 6);
shape.graphics.endFill();
}
else //if (Options.hitboxType == "noGradientOld")
{
shape.graphics.lineStyle(10, 0xFFFFFF, 1);
shape.graphics.drawRect(0, 0, Width, Height);
shape.graphics.endFill();
}
var bitmap:BitmapData = new BitmapData(Width, Height, true, 0);
bitmap.draw(shape);
return bitmap;
}
}
}

0 comments on commit 707d080

Please sign in to comment.