|
|
@@ -4,6 +4,7 @@ import image.Images;
|
|
|
|
|
|
import java.awt.Color;
|
|
|
import java.awt.Font;
|
|
|
+import java.awt.GradientPaint;
|
|
|
import java.awt.Graphics2D;
|
|
|
import java.awt.RenderingHints;
|
|
|
import java.awt.Transparency;
|
|
|
@@ -51,25 +52,36 @@ public class InfoPanel {
|
|
|
Graphics2D g2 = infoPanel.createGraphics();
|
|
|
RenderingHints rh = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
|
|
|
g2.setRenderingHints(rh);
|
|
|
- g2.setColor(Color.BLACK);
|
|
|
|
|
|
+
|
|
|
+// g2.setColor(Color.GRAY);
|
|
|
+ GradientPaint gp = new GradientPaint(0, 0, new Color(245,245,245), 256, 1024, Color.WHITE);
|
|
|
+ g2.setPaint(gp);
|
|
|
g2.fillRect(x, y, 256, 1024);
|
|
|
|
|
|
+ g2.setColor(Color.BLACK);
|
|
|
+ g2.drawRect(x, y, 255, 1023);
|
|
|
+
|
|
|
Font scoreFont = new Font("OCR A Extended", Font.BOLD, 30);
|
|
|
g2.setFont(scoreFont);
|
|
|
g2.setColor(Color.GREEN);
|
|
|
g2.fillRect(25, 100, (int)(2 * PlayState.lifePoints), 30);
|
|
|
|
|
|
- g2.setColor(Color.ORANGE);
|
|
|
+ g2.setColor(Color.BLACK);
|
|
|
g2.drawString("Score: " + totalHighscore, 25, 75);
|
|
|
g2.drawRect(25, 100, 200, 30);
|
|
|
g2.drawRect(25, 300, 200, 700);
|
|
|
|
|
|
g2.drawString(sh.getCurrentSong().getTitle(), 25, 200);
|
|
|
- g2.drawString(sh.getCurrentSongInstance().getDifficulty(), 25, 230);
|
|
|
- g2.drawString(sh.getCurrentSong().getAuthor(), 25, 260);
|
|
|
- g2.drawString(time, 25, 290);
|
|
|
+ g2.drawString(sh.getCurrentSongInstance().getDifficulty(), 25, 230);
|
|
|
+ g2.drawString(sh.getCurrentSong().getAuthor(), 25, 260);
|
|
|
+ g2.drawString(time, 25, 290);
|
|
|
|
|
|
+// GradientPaint gp = new GradientPaint(300, 0, new Color(200,200,255), 256, 1024, Color.WHITE);
|
|
|
+// g2.setPaint(gp);
|
|
|
+// g2.fillRect(x, y, 256, 1024);
|
|
|
+
|
|
|
+
|
|
|
g2.setColor(Color.YELLOW);
|
|
|
g2.fillRect(25, 1000 - 7 * PlayState.comboScore, 200, 0 + 7 * PlayState.comboScore);
|
|
|
g2.dispose();
|