Package org.newdawn.slick

Examples of org.newdawn.slick.Color


    getContentPane().setX(getContentPane().getX() - 1);
    getContentPane().setY(getContentPane().getY() + 1);
    List<String> translated = Translator.translate("_LOGIN");
    this.setVisible(false);
    this.setSize(320, 360);
    this.setBackground(new Color(0, 0, 0, 140));
    this.setTitle(translated.get(9));
    this.getTitleBar().getCloseButton().setVisible(false);
    this.setLocation(420, 220);
    this.setResizable(false);
    this.setDraggable(false);
View Full Code Here


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

      getContentPane().setX(getContentPane().getX() - 1);
    getContentPane().setY(getContentPane().getY() + 1);
      List<String> translated = Translator.translate("_GUI");
        getTitleBar().getCloseButton().setVisible(false);
        setTitle(translated.get(33));
        setBackground(new Color(0, 0, 0, 85));
        setForeground(new Color(255, 255, 255));
        setHeight(getTitleBar().getHeight() + 25);
        m_noOffers.setFont(GameClient.getFontSmall());
        m_noOffers.setForeground(Color.white);
        m_noOffers.pack();
        m_noOffers.setY((float)10 - m_noOffers.getTextHeight() / 2);
View Full Code Here

        public void initGUI(OurPokemon poke){
         
          try{getContentPane().setX(getContentPane().getX() - 1);
        getContentPane().setY(getContentPane().getY() + 1);
          List<String> translated = Translator.translate("_GUI");
                this.setBackground(new Color(255,255,255,200));
                int x = 70;
                int y = 5;
                for (int i = 0; i < 14; i++){
                        data[i] = new Label();
                        labels[i] = new Label();
View Full Code Here

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

   * Default constructor
   */
  public LanguageDialog() {
    getContentPane().setX(getContentPane().getX() - 1);
    getContentPane().setY(getContentPane().getY() + 1);
    m_black = new Color(0, 0, 0);
   
    this.setSize(350, 320);
    this.setLocation(400 - 170, 250);
    this.setTitle("Pokenet Language Selection");
    this.setBackground(new Color(0, 0, 0, 140));
    this.getTitleBar().setForeground(m_black);
    this.setDraggable(false);
    this.setResizable(false);
    this.getTitleBar().getCloseButton().setVisible(false);
   
    /*
     * Create the info label
     */
    m_info = new Label("  Welcome | Bienvenido | Bienvenue \n         Bem-vindo | Tervetuloa");
    m_info.pack();
    m_info.setLocation(60, 8);
    m_info.setForeground(new Color(255, 255, 255));
    this.add(m_info);
   
    /*
     * Create all the server buttons
     */
 
View Full Code Here

  public boolean contains(float x2, float y2) {
    boolean t = super.contains(x2, y2);
    if (t && getFrameCount() > 0) {
      int cx = (int) ((x2 - getX()) / getScalex());
      int cy = (int) ((y2 - getY()) / getScaley());
      Color c = cells.get(cur_frame).getPixel(cx, cy);
      t = c.a > 0.1f;
    }
    return t;
  }
View Full Code Here

    boolean t=super.contains(x2, y2);   
    if(!t || frame==null)return t;
   
    int cx=(int)((x2-getX())/getScalex());
    int cy=(int)((y2-getY())/getScaley());
    Color c=frame.getPixel(cx,cy);
    return c.a>0f;
 
View Full Code Here

      if (getWidth() <= 0)
        setWidth(20);
      if (getHeight() <= 0)
        setHeight(20);
      super.paint(g);
      g.setColor(new Color(255, 255, 0, 120));
      g.drawString(imgFile[curframe], 2, 10);
      g.drawString("not found", 2, 20);
    } else {
      if (img[curframe] != null) {
        img[curframe].draw(0, 0, getWidth(), getHeight(), getFilter());
View Full Code Here

    if (checkPixel) {
      if (!t || img == null)
        return false;
      int cx = (int) ((x2 - getX()) / getScalex());
      int cy = (int) ((y2 - getY()) / getScaley());
      Color c = getPixel(cx, cy);
      return c.a > 0f;
    }
    return t;
  }
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.