add opposite combo color as override option
This commit is contained in:
@@ -78,17 +78,17 @@ public class Circle extends GameObject {
|
||||
* @param hitObject the associated HitObject
|
||||
* @param game the associated Game object
|
||||
* @param data the associated GameData object
|
||||
* @param color the color of this circle
|
||||
* @param comboColorIndex index of the combo color of this circle
|
||||
* @param comboEnd true if this is the last hit object in the combo
|
||||
*/
|
||||
public Circle(HitObject hitObject, Game game, GameData data, Color color, boolean comboEnd) {
|
||||
public Circle(HitObject hitObject, Game game, GameData data, int comboColorIndex, boolean comboEnd) {
|
||||
this.hitObject = hitObject;
|
||||
this.game = game;
|
||||
this.data = data;
|
||||
this.comboEnd = comboEnd;
|
||||
updatePosition();
|
||||
this.color = Dancer.colorOverride.getColor(color);
|
||||
this.mirrorColor = Dancer.colorMirrorOverride.getColor(color);
|
||||
color = Dancer.colorOverride.getColor(comboColorIndex);
|
||||
mirrorColor = Dancer.colorMirrorOverride.getColor(comboColorIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -151,15 +151,16 @@ public class Slider extends GameObject {
|
||||
* @param hitObject the associated HitObject
|
||||
* @param game the associated Game object
|
||||
* @param data the associated GameData object
|
||||
* @param comboColorIndex index of the combo color of this slider
|
||||
* @param comboEnd true if this is the last hit object in the combo
|
||||
*/
|
||||
public Slider(HitObject hitObject, Game game, GameData data, Color color, boolean comboEnd) {
|
||||
public Slider(HitObject hitObject, Game game, GameData data, int comboColorIndex, boolean comboEnd) {
|
||||
this.hitObject = hitObject;
|
||||
this.game = game;
|
||||
this.data = data;
|
||||
this.comboEnd = comboEnd;
|
||||
this.color = Dancer.colorOverride.getColor(color);
|
||||
this.mirrorColor = Dancer.colorMirrorOverride.getColor(color);
|
||||
color = Dancer.colorOverride.getColor(comboColorIndex);
|
||||
mirrorColor = Dancer.colorMirrorOverride.getColor(comboColorIndex);
|
||||
updatePosition();
|
||||
|
||||
// slider time calculations
|
||||
|
||||
@@ -1219,8 +1219,6 @@ public class Game extends BasicGameState {
|
||||
if (i + 1 >= beatmap.objects.length || beatmap.objects[i + 1].isNewCombo())
|
||||
comboEnd = true;
|
||||
|
||||
Color color = ObjectColorOverrides.comboColors[hitObject.getComboIndex()];
|
||||
|
||||
// pass beatLength to hit objects
|
||||
int hitObjectTime = hitObject.getTime();
|
||||
while (timingPointIndex < beatmap.timingPoints.size()) {
|
||||
@@ -1233,9 +1231,9 @@ public class Game extends BasicGameState {
|
||||
|
||||
try {
|
||||
if (hitObject.isCircle())
|
||||
gameObjects[i] = new Circle(hitObject, this, data, color, comboEnd);
|
||||
gameObjects[i] = new Circle(hitObject, this, data, hitObject.getComboIndex(), comboEnd);
|
||||
else if (hitObject.isSlider())
|
||||
gameObjects[i] = new Slider(hitObject, this, data, color, comboEnd);
|
||||
gameObjects[i] = new Slider(hitObject, this, data, hitObject.getComboIndex(), comboEnd);
|
||||
else if (hitObject.isSpinner())
|
||||
gameObjects[i] = new Spinner(hitObject, this, data);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user