option to hide approach circles

This commit is contained in:
yugecin
2016-09-29 23:34:11 +02:00
parent 7f908db6e7
commit fa57e63a2f
5 changed files with 20 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ import itdelatrisu.opsu.ui.Colors;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import yugecin.opsudance.Dancer;
/**
* Data type representing a circle object.
@@ -120,7 +121,7 @@ public class Circle extends GameObject {
float oldAlpha = Colors.WHITE_FADE.a;
Colors.WHITE_FADE.a = color.a = alpha;
if (timeDiff >= 0 && !GameMod.HIDDEN.isActive())
if (timeDiff >= 0 && !GameMod.HIDDEN.isActive() && Dancer.drawApproach)
GameImage.APPROACHCIRCLE.getImage().getScaledCopy(approachScale).drawCentered(x, y, color);
GameImage.HITCIRCLE.getImage().drawCentered(x, y, color);
boolean overlayAboveNumber = Options.getSkin().isHitCircleOverlayAboveNumber();

View File

@@ -37,6 +37,7 @@ import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import yugecin.opsudance.Dancer;
/**
* Data type representing a slider object.
@@ -296,7 +297,7 @@ public class Slider extends GameObject {
if (mirror) {
g.rotate(x, y, -180f);
}
if (!GameMod.HIDDEN.isActive()) {
if (!GameMod.HIDDEN.isActive() && Dancer.drawApproach) {
GameImage.APPROACHCIRCLE.getImage().getScaledCopy(approachScale).drawCentered(x, y, color);
}
g.popTransform();