cleanup
This commit is contained in:
parent
3c8b769248
commit
b177605cbb
|
@ -149,10 +149,8 @@ public class OptionsMenu extends BasicGameState implements OptionsOverlay.Parent
|
|||
})
|
||||
};
|
||||
|
||||
private GameContainer container;
|
||||
private StateBasedGame game;
|
||||
private Input input;
|
||||
private Graphics g;
|
||||
private final int state;
|
||||
|
||||
private OptionsOverlay optionsOverlay;
|
||||
|
@ -164,14 +162,8 @@ public class OptionsMenu extends BasicGameState implements OptionsOverlay.Parent
|
|||
@Override
|
||||
public void init(GameContainer container, StateBasedGame game)
|
||||
throws SlickException {
|
||||
|
||||
this.container = container;
|
||||
this.game = game;
|
||||
this.input = container.getInput();
|
||||
this.g = container.getGraphics();
|
||||
|
||||
int width = container.getWidth();
|
||||
int height = container.getHeight();
|
||||
|
||||
optionsOverlay = new OptionsOverlay(this, options, 5, container);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ import itdelatrisu.opsu.ui.MenuButton;
|
|||
import itdelatrisu.opsu.ui.UI;
|
||||
import org.newdawn.slick.*;
|
||||
|
||||
@SuppressWarnings({"unused", "SuspiciousNameCombination"})
|
||||
public class OptionsOverlay {
|
||||
|
||||
private Parent parent;
|
||||
|
@ -40,7 +39,6 @@ public class OptionsOverlay {
|
|||
private final Image checkOffImg;
|
||||
|
||||
private OptionTab[] tabs;
|
||||
private OptionTab hoverTab;
|
||||
private int selectedTab;
|
||||
private GameOption hoverOption;
|
||||
private GameOption selectedOption;
|
||||
|
@ -194,7 +192,6 @@ public class OptionsOverlay {
|
|||
}
|
||||
|
||||
private void renderOpenList(Graphics g) {
|
||||
// list
|
||||
g.setColor(Colors.BLACK_ALPHA_85);
|
||||
g.fillRect(listStartX, listStartY, listWidth, listHeight);
|
||||
if (listHoverIndex != -1) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user