Package org.newdawn.slick

Examples of org.newdawn.slick.Color


    if (util_announce_timer > 408) enterState(WS.ATTACK);
  }
 
  private void render_announce(Graphics g)
  {
    Color col = new Color(255,0,0,util_alpha);
    Text.drawString(200, Text.extractLength("!!INCOMING!!", 200), 40, "!!INCOMING!!", col);
    Text.drawString(104, Text.extractLength("PREPARE FOR WAVE "+current_wave, 104), 120, "PREPARE FOR WAVE "+current_wave, col);
  }
View Full Code Here


    g.setLineWidth(1);
      g.drawRect(10, app_y-160, app_x-20, 150);
    g.setColor(Color.white); //dialog box 2nd corner
    g.setLineWidth(6);
      g.drawRect(14, app_y-157, app_x-27, 143);
    g.setColor(new Color(218,70,70)); //icon background
      g.fillRect(30, app_y-141, 112, 112);
    g.setColor(portrait); //icon border
    g.setLineWidth(4);
      g.drawRect(30, app_y-141, 112, 112);
    Text.drawString(78, 157, app_y-144, ""+head, Color.white);
View Full Code Here

  }
 
  public void render(Graphics g) throws SlickException {
    if (state == IS.WAITING || state == IS.FALLING)
    {
      g.setColor(new Color(162, 83, 81));
      g.fillRect(x, y, 30, 30);
      g.setColor(new Color(90,46,46)); //box border
      g.setLineWidth(5);
      g.drawRect(x, y, 30, 30);
      hitbox.setBounds(x, y, 30, 30);
    }
  }
View Full Code Here

  }
 
  public void render_2nd_layer(Graphics g)
  {
    if (GameplayState.player.gun.util_chamber == 0)
      g.setColor(new Color(255, 0, 0, 160));
    else
      g.setColor(Color.black);
    g.fillRoundRect(-5, 15, 100, 20+util_offset, 5);
    g.setColor(Color.black);
    g.fillRoundRect(-5, 40+util_offset, 100, 20, 5);
    g.fillRoundRect(-5, 65+util_offset, 100+money_offset, 20+money_offset, 5);
    g.setColor(new Color(170, 170, 170));
    g.setLineWidth(1);
    g.drawRoundRect(-5, 15, 100, 20+util_offset, 5);
    g.drawRoundRect(-5, 40+util_offset, 100, 20, 5);
    g.drawRoundRect(-5, 65+util_offset, 100+money_offset, 20+money_offset, 5);
    render_bullets(g);
View Full Code Here

  public void render()
  {
    Text.drawDebug("stop:"+deb+" len:"+String.format("%.2f", length_deb)+" deg:"+String.format("%.2f", debug));

    col = new Color(0, 111, 255, alpha);
    g.setLineWidth(4);
    g.setColor(col);
    for (int i = 0; i < 2; i++)
      g.drawLine(curr_x[i], curr_y[i], curr_x[i+1], curr_y[i+1]);
  }
View Full Code Here

          } catch (Exception e) {
            m_weather.setEnabled(false);
          }
          a = a < 100 ? a + 60 : a;
        }
        m_daylight = new Color(0, 0, 0, a);
      }
    }
   
  }
View Full Code Here

   * Initializes the interface
   */
  public void initGUI() {
    getContentPane().setX(getContentPane().getX() - 1);
    getContentPane().setY(getContentPane().getY() + 1);
    setBackground(new Color(0, 0, 0, 85));
    setTitle("Friends");
    setSize(170, 180);
 
    m_up = new SimpleArrowButton(SimpleArrowButton.FACE_UP);
    m_up.addActionListener(new ActionListener(){
View Full Code Here

        m_shownFriends[i].setForeground(Color.gray);
      m_shownFriends[i].addMouseListener(new MouseAdapter(){
        @Override
        public void mouseEntered(MouseEvent e) {
          super.mouseEntered(e);
          m_shownFriends[j].setForeground(new Color(255, 215, 0));
        }

        @Override
        public void mouseExited(MouseEvent e) {
          super.mouseExited(e);
View Full Code Here

    getContentPane().add(m_whisper);
    m_cancel = new Button("Cancel");
    m_cancel.setSize(100,25);
    m_cancel.setLocation(0, m_whisper.getY() + m_cancel.getHeight());
    getContentPane().add(m_cancel);
    setBackground(new Color(0,0,0,150));
    setSize(100, 103 + m_name.getTextHeight());
    getTitleBar().setVisible(false);
    setVisible(true);
    setResizable(false);
    setAlwaysOnTop(true);
View Full Code Here

   * Default constructor
   */
  public AboutDialog() {
    getContentPane().setX(getContentPane().getX() - 1);
    getContentPane().setY(getContentPane().getY() + 1);
    m_bg = new Color(0, 0, 0, 140);
    m_white = new Color(255, 255, 255);
    List<String> translated = Translator.translate("_LOGIN");
    this.setTitle(translated.get(34));
    this.setLocation(128, 256);
    this.setBackground(m_bg);
    this.setResizable(false);
View Full Code Here

TOP

Related Classes of org.newdawn.slick.Color

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.