-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from yugecin/experimentalsliders
add slider style from yugecin/opsu-dance
- Loading branch information
Showing
14 changed files
with
862 additions
and
19 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/itdelatrisu/opsu/objects/curves/FakeCombinedCurve.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* opsu! - an open-source osu! client | ||
* Copyright (C) 2014-2017 Jeffrey Han | ||
* | ||
* opsu! is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* opsu! is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with opsu!. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package itdelatrisu.opsu.objects.curves; | ||
|
||
import itdelatrisu.opsu.beatmap.HitObject; | ||
import itdelatrisu.opsu.render.LegacyCurveRenderState; | ||
import org.newdawn.slick.Color; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class FakeCombinedCurve extends Curve { | ||
|
||
private List<Integer> pointsToRender; | ||
|
||
public FakeCombinedCurve(Vec2f[] points) { | ||
super(new HitObject(0, 0, 0), false); | ||
this.curve = points; | ||
pointsToRender = new ArrayList<>(); | ||
} | ||
|
||
public void initForFrame() { | ||
pointsToRender.clear(); | ||
} | ||
|
||
public void addRange(int from, int to) { | ||
pointsToRender.add(from); | ||
pointsToRender.add(to); | ||
} | ||
|
||
@Override | ||
public void draw(Color color) { | ||
if (legacyRenderState == null) | ||
legacyRenderState = new LegacyCurveRenderState(hitObject, curve); | ||
legacyRenderState.draw(color, borderColor, pointsToRender); | ||
} | ||
|
||
@Override | ||
public Vec2f pointAt(float t) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public float getEndAngle() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float getStartAngle() { | ||
return 0; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.