Added some missing @param and @throws Javadoc comments.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -43,6 +43,8 @@ import org.newdawn.slick.gui.GUIContext;
|
||||
* <li>Call {@link #activate()}/{@link #deactivate()} whenever the component is needed
|
||||
* (e.g. in a state's {@code enter} and {@code leave} events.
|
||||
* </ul>
|
||||
*
|
||||
* @param <E> the type of the elements in the menu
|
||||
*/
|
||||
public class DropdownMenu<E> extends AbstractComponent {
|
||||
/** Padding ratios for drawing. */
|
||||
|
||||
@@ -146,11 +146,13 @@ public class MenuButton {
|
||||
|
||||
/**
|
||||
* Sets a new center x coordinate.
|
||||
* @param x the x coordinate
|
||||
*/
|
||||
public void setX(float x) { this.x = x; }
|
||||
|
||||
/**
|
||||
* Sets a new center y coordinate.
|
||||
* @param y the y coordinate
|
||||
*/
|
||||
public void setY(float y) { this.y = y; }
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ import org.newdawn.slick.GameContainer;
|
||||
import org.newdawn.slick.Graphics;
|
||||
import org.newdawn.slick.Image;
|
||||
import org.newdawn.slick.Input;
|
||||
import org.newdawn.slick.SlickException;
|
||||
import org.newdawn.slick.state.StateBasedGame;
|
||||
|
||||
/**
|
||||
@@ -86,10 +85,8 @@ public class UI {
|
||||
* Initializes UI data.
|
||||
* @param container the game container
|
||||
* @param game the game object
|
||||
* @throws SlickException
|
||||
*/
|
||||
public static void init(GameContainer container, StateBasedGame game)
|
||||
throws SlickException {
|
||||
public static void init(GameContainer container, StateBasedGame game) {
|
||||
UI.container = container;
|
||||
UI.input = container.getInput();
|
||||
|
||||
@@ -271,8 +268,9 @@ public class UI {
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws loading progress (OSZ unpacking, beatmap parsing, sound loading)
|
||||
* Draws loading progress (OSZ unpacking, beatmap parsing, replay importing, sound loading)
|
||||
* at the bottom of the screen.
|
||||
* @param g the graphics context
|
||||
*/
|
||||
public static void drawLoadingProgress(Graphics g) {
|
||||
String text, file;
|
||||
|
||||
Reference in New Issue
Block a user