daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @Override public void drawOn(Graphics g)
  2.     {
  3.         Rectangle bounds = getView().getBounds();
  4.         g.setColor(Color.DARK_GRAY);
  5.         g.fillRect(0, 0, bounds.width, bounds.height);
  6.        
  7.         if (achievementPrint) {
  8.             Font font = new Font("Jokerman", Font.BOLD, 25);
  9.             g.setFont(font);
  10.             //cannot use this
  11.             //Achievement.drawOn(g);
  12.         } else if (helpPrint) {
  13.             Font font = new Font("Jokerman", Font.BOLD, 25);
  14.             g.setFont(font);
  15.             g.setColor(Color.WHITE);
  16.             g.drawString("This is a help", 100, 100);
  17.         } else {
  18.             Font font = new Font("Jokerman", Font.BOLD, 25);
  19.             g.setFont(font);
  20.  
  21.             // draw the basic menu strings
  22.             for (int i = 0; i < 5; i++) {
  23.                 if (i == currentMenu) {
  24.                     g.setColor(Color.CYAN);
  25.                 }
  26.                 else {
  27.                     g.setColor(Color.WHITE);
  28.                 }
  29.  
  30.                 g.drawString(menu[i], 600, 360 + 50 * i);
  31.             }            
  32.         }
  33.                
  34.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top