fix object color override for sb

This commit is contained in:
yugecin
2016-11-13 00:58:50 +01:00
parent e853abcd9f
commit 711fd0a03e
7 changed files with 45 additions and 4 deletions

View File

@@ -117,6 +117,8 @@ public class Slider extends GameObject {
public float pixelLength;
private int comboColorIndex;
/**
* Initializes the Slider data type with images and dimensions.
* @param container the game container
@@ -162,8 +164,8 @@ public class Slider extends GameObject {
this.game = game;
this.data = data;
this.comboEnd = comboEnd;
color = Dancer.colorOverride.getColor(comboColorIndex);
mirrorColor = Dancer.colorMirrorOverride.getColor(comboColorIndex);
this.comboColorIndex = comboColorIndex;
updateColor();
updatePosition();
this.pixelLength = hitObject.getPixelLength();
@@ -710,4 +712,10 @@ public class Slider extends GameObject {
return ticks;
}
@Override
public void updateColor() {
color = Dancer.colorOverride.getColor(comboColorIndex);
mirrorColor = Dancer.colorMirrorOverride.getColor(comboColorIndex);
}
}