Merged DISABLE_CURSOR option from fluddokt/opsu.

This commit is contained in:
Jeffrey Han
2015-09-11 11:43:19 -04:00
parent 6506967c12
commit 1fe45f7bb4
5 changed files with 15 additions and 4 deletions

View File

@@ -115,6 +115,9 @@ public class Cursor {
* @param mousePressed whether or not the mouse button is pressed
*/
public void draw(int mouseX, int mouseY, boolean mousePressed) {
if (Options.isCursorDisabled())
return;
// determine correct cursor image
Image cursor = null, cursorMiddle = null, cursorTrail = null;
boolean beatmapSkinned = GameImage.CURSOR.hasBeatmapSkinImage();

View File

@@ -375,7 +375,7 @@ public class DropdownMenu<E> extends AbstractComponent {
/**
* Selects the item at the given index.
* @param index the list item index
* @throws IllegalArgumentException if index < -1 or index is greater than or equal to size
* @throws IllegalArgumentException if {@code index} is negative or greater than or equal to size
*/
public void setSelectedIndex(int index) {
if (index < 0 || index >= items.length)

View File

@@ -119,7 +119,7 @@ public class UI {
}
/**
* Draws the global UI components: cursor, FPS, volume bar, bar notifications.
* Draws the global UI components: cursor, FPS, volume bar, tooltips, bar notifications.
* @param g the graphics context
*/
public static void draw(Graphics g) {
@@ -131,7 +131,7 @@ public class UI {
}
/**
* Draws the global UI components: cursor, FPS, volume bar, bar notifications.
* Draws the global UI components: cursor, FPS, volume bar, tooltips, bar notifications.
* @param g the graphics context
* @param mouseX the mouse x coordinate
* @param mouseY the mouse y coordinate