@Override public void present(float deltaTime) { if (disposed) { return; } Graphics g = game.getGraphics(); g.clear(AliteColors.get().background()); displayWideTitle("Hacker v2.0"); for (int i = 0; i < 16; i++) { String hex = String.format("%02X", i); g.drawText( hex, 20 + offset * (i + 1), 140, AliteColors.get().additionalText(), Assets.titleFont); } if (deltaY != 0) { deltaY += deltaY > 0 ? -1 : 1; yPosition -= deltaY; if (yPosition < 0) { yPosition = 0; } if (yPosition > maxY) { yPosition = maxY; } } g.setClip(0, 60, -1, 930); for (int i = 0; i < 16; i++) { String hex = String.format("%X0", i); int y = 140 - yPosition + 80 * (i + 1); g.drawText(hex, 20, y, AliteColors.get().additionalText(), Assets.titleFont); } int count = 0; for (Button b : values) { b.setYOffset(-yPosition); long color = b.isSelected() ? AliteColors.get().baseInformation() : ((count / 16) + (count % 16)) % 2 == 0 ? AliteColors.get().informationText() : AliteColors.get().mainText(); b.setTextColor(color); b.render(g); count++; } g.setClip(-1, -1, -1, -1); done.render(g); }
@Override public void present(float deltaTime) { if (disposed) { return; } Graphics g = game.getGraphics(); g.clear(AliteColors.get().background()); displayTitle("Gameplay Options"); difficultyLevel.render(g); String text = getDifficultyDescription(); centerText(text, 315, Assets.regularFont, AliteColors.get().mainText()); autoId.render(g); dockingSpeed.render(g); laserAutoFire.render(g); keyboardLayout.render(g); back.render(g); }