Updates and fixes from fluddokt/opsu@76778f8 and fluddokt/opsu@cf321e9.
- Rotate slider ball image along the curve. - Show download speed and time remaining when hovering over the download info button. - Maintain aspect ratio of beatmap background image during gameplay. - Clear beatmap background image cache after reaching OsuFile.MAX_CACHE_SIZE. - Multiply hit circle size by OsuHitObject.getXMultiplier(). - Scale MENU_BUTTON_BG based on SongMenu.MAX_SONG_BUTTONS. - Fixed download search TextField retaining focus even after leaving the downloads menu. - Include Unicode title/artist strings in searches. - Parse x,y beatmap coordinates as floats (instead of integers), and only read Kiai time if present. - Added 1600x1200 resolution. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -660,6 +660,12 @@ public class DownloadsMenu extends BasicGameState {
|
||||
pageDir = Page.RESET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void leave(GameContainer container, StateBasedGame game)
|
||||
throws SlickException {
|
||||
search.setFocus(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the search timer, but respects the minimum request interval.
|
||||
*/
|
||||
|
||||
@@ -173,7 +173,7 @@ public class Game extends BasicGameState {
|
||||
// background
|
||||
g.setBackground(Color.black);
|
||||
float dimLevel = Options.getBackgroundDim();
|
||||
if (Options.isDefaultPlayfieldForced() || !osu.drawBG(width, height, dimLevel)) {
|
||||
if (Options.isDefaultPlayfieldForced() || !osu.drawBG(width, height, dimLevel, false)) {
|
||||
Image playfield = GameImage.PLAYFIELD.getImage();
|
||||
playfield.setAlpha(dimLevel);
|
||||
playfield.draw();
|
||||
|
||||
@@ -95,7 +95,7 @@ public class GameRanking extends BasicGameState {
|
||||
OsuFile osu = MusicController.getOsuFile();
|
||||
|
||||
// background
|
||||
if (!osu.drawBG(width, height, 0.7f))
|
||||
if (!osu.drawBG(width, height, 0.7f, true))
|
||||
g.setBackground(Utils.COLOR_BLACK_ALPHA);
|
||||
|
||||
// ranking screen elements
|
||||
|
||||
@@ -168,7 +168,7 @@ public class MainMenu extends BasicGameState {
|
||||
// draw background
|
||||
OsuFile osu = MusicController.getOsuFile();
|
||||
if (Options.isDynamicBackgroundEnabled() &&
|
||||
osu != null && osu.drawBG(width, height, bgAlpha))
|
||||
osu != null && osu.drawBG(width, height, bgAlpha, true))
|
||||
;
|
||||
else {
|
||||
Image bg = GameImage.MENU_BG.getImage();
|
||||
|
||||
@@ -68,7 +68,7 @@ import org.newdawn.slick.state.transition.FadeOutTransition;
|
||||
*/
|
||||
public class SongMenu extends BasicGameState {
|
||||
/** The max number of song buttons to be shown on each screen. */
|
||||
private static final int MAX_SONG_BUTTONS = 6;
|
||||
public static final int MAX_SONG_BUTTONS = 6;
|
||||
|
||||
/** The max number of score buttons to be shown at a time. */
|
||||
public static final int MAX_SCORE_BUTTONS = 7;
|
||||
@@ -239,7 +239,7 @@ public class SongMenu extends BasicGameState {
|
||||
|
||||
// background
|
||||
if (focusNode != null)
|
||||
focusNode.osuFiles.get(focusNode.osuFileIndex).drawBG(width, height, 1.0f);
|
||||
focusNode.osuFiles.get(focusNode.osuFileIndex).drawBG(width, height, 1.0f, true);
|
||||
|
||||
// header setup
|
||||
float lowerBound = height * 0.15f;
|
||||
|
||||
Reference in New Issue
Block a user