This commit is contained in:
yugecin 2016-12-11 11:10:32 +01:00
parent 3c8b769248
commit b177605cbb
2 changed files with 0 additions and 11 deletions

View File

@ -149,10 +149,8 @@ public class OptionsMenu extends BasicGameState implements OptionsOverlay.Parent
}) })
}; };
private GameContainer container;
private StateBasedGame game; private StateBasedGame game;
private Input input; private Input input;
private Graphics g;
private final int state; private final int state;
private OptionsOverlay optionsOverlay; private OptionsOverlay optionsOverlay;
@ -164,14 +162,8 @@ public class OptionsMenu extends BasicGameState implements OptionsOverlay.Parent
@Override @Override
public void init(GameContainer container, StateBasedGame game) public void init(GameContainer container, StateBasedGame game)
throws SlickException { throws SlickException {
this.container = container;
this.game = game; this.game = game;
this.input = container.getInput(); this.input = container.getInput();
this.g = container.getGraphics();
int width = container.getWidth();
int height = container.getHeight();
optionsOverlay = new OptionsOverlay(this, options, 5, container); optionsOverlay = new OptionsOverlay(this, options, 5, container);
} }

View File

@ -29,7 +29,6 @@ import itdelatrisu.opsu.ui.MenuButton;
import itdelatrisu.opsu.ui.UI; import itdelatrisu.opsu.ui.UI;
import org.newdawn.slick.*; import org.newdawn.slick.*;
@SuppressWarnings({"unused", "SuspiciousNameCombination"})
public class OptionsOverlay { public class OptionsOverlay {
private Parent parent; private Parent parent;
@ -40,7 +39,6 @@ public class OptionsOverlay {
private final Image checkOffImg; private final Image checkOffImg;
private OptionTab[] tabs; private OptionTab[] tabs;
private OptionTab hoverTab;
private int selectedTab; private int selectedTab;
private GameOption hoverOption; private GameOption hoverOption;
private GameOption selectedOption; private GameOption selectedOption;
@ -194,7 +192,6 @@ public class OptionsOverlay {
} }
private void renderOpenList(Graphics g) { private void renderOpenList(Graphics g) {
// list
g.setColor(Colors.BLACK_ALPHA_85); g.setColor(Colors.BLACK_ALPHA_85);
g.fillRect(listStartX, listStartY, listWidth, listHeight); g.fillRect(listStartX, listStartY, listWidth, listHeight);
if (listHoverIndex != -1) { if (listHoverIndex != -1) {