fix object color override for sb
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user