Beatmap downloader improvements and fixes.
Updates: - Added some buttons to downloads menu: clear inactive downloads, import beatmaps, reset search, and show/hide unranked maps. - Small changes to OsuParser, OszUnpacker, and OsuGroupList (mostly adding return values) to allow parsing only newly unpacked beatmaps. - Added alpha fade hover effect to MenuButton, as an alternative to expanding (used for 3-part menu buttons). - Added text rendering fields to MenuButton (also for the 3-part menu buttons). - Added sound effects to downloads menu. Fixes: - Check downloads for illegal filename characters, and remove them if necessary. - The number of results and downloads shown now supports all resolutions. - Confirmation dialog no longer appears when restarting the application (since downloads are static). - Do not set a focus node immediately if the theme song will be played. - Always play the theme song if no songs are loaded (even if disabled in settings). Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -143,7 +143,7 @@ public enum GameMod {
|
||||
|
||||
// create button
|
||||
this.button = new MenuButton(img, x + (offsetX * id), y);
|
||||
this.button.setHoverScale(1.15f);
|
||||
this.button.setHoverExpand(1.15f);
|
||||
|
||||
// reset state
|
||||
this.active = false;
|
||||
@@ -245,10 +245,9 @@ public enum GameMod {
|
||||
public boolean contains(float x, float y) { return button.contains(x, y); }
|
||||
|
||||
/**
|
||||
* Sets the current button scale (for hovering).
|
||||
* @param scale the new scale (default 1.0f)
|
||||
* Resets the hover fields for the button.
|
||||
*/
|
||||
public void setScale(float scale) { button.setScale(scale); }
|
||||
public void resetHover() { button.resetHover(); }
|
||||
|
||||
/**
|
||||
* Updates the scale of the button depending on whether or not the cursor
|
||||
|
||||
Reference in New Issue
Block a user