Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override public void drawOn(Graphics g)
- {
- Rectangle bounds = getView().getBounds();
- g.setColor(Color.DARK_GRAY);
- g.fillRect(0, 0, bounds.width, bounds.height);
- if (achievementPrint) {
- Font font = new Font("Jokerman", Font.BOLD, 25);
- g.setFont(font);
- //cannot use this
- //Achievement.drawOn(g);
- } else if (helpPrint) {
- Font font = new Font("Jokerman", Font.BOLD, 25);
- g.setFont(font);
- g.setColor(Color.WHITE);
- g.drawString("This is a help", 100, 100);
- } else {
- Font font = new Font("Jokerman", Font.BOLD, 25);
- g.setFont(font);
- // draw the basic menu strings
- for (int i = 0; i < 5; i++) {
- if (i == currentMenu) {
- g.setColor(Color.CYAN);
- }
- else {
- g.setColor(Color.WHITE);
- }
- g.drawString(menu[i], 600, 360 + 50 * i);
- }
- }
- }
Add Comment
Please, Sign In to add comment