// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ZAbout.java

import java.awt.*;

public class ZAbout extends Dialog
{

    ZAbout(Frame frame)
    {
        super(frame, _German.MENU_ABOUT, true);
        setBackground(Color.lightGray);
        setLayout(null);
        if(logo == null)
            logo = Const.getImage("icon.gif");
        Label label = new Label(_German.GAME_NAME);
        label.reshape(odx, ody, wid - odx, hh);
        add(label);
        Label label1 = new Label(_German.ABOUT_VERSION + " " + _German.version);
        label1.reshape(odx, ody + hh * 1, wid - odx, hh);
        add(label1);
        Label label2 = new Label(_German.ABOUT_FREE_SCRABBLE);
        label2.reshape(odx, ody + hh * 3, wid - odx, hh);
        add(label2);
        Label label3 = new Label(_German.ABOUT_WRITTEN_BY + " Marek Futrega / MAF");
        label3.reshape(odx, ody + hh * 5, wid - odx, hh);
        add(label3);
        Label label4 = new Label("marek.futrega@students.mimuw.edu.pl");
        label4.reshape(odx, ody + hh * 6, wid - odx, hh);
        add(label4);
        Label label5 = new Label(_German.ABOUT_SEE_README);
        label5.reshape(odx, ody + hh * 8 + 5, wid - odx, hh);
        add(label5);
        b = new Button("OK");
        b.reshape(wid - 80 - 15, 245, 80, 24);
        add(b);
        setSize(wid, 285);
        setResizable(false);
        show();
    }

    public boolean action(Event event, Object obj)
    {
        if(event.target == b)
        {
            hide();
            return true;
        } else
        {
            return super.action(event, obj);
        }
    }

    public boolean handleEvent(Event event)
    {
        if(event.id == 201)
        {
            hide();
            return true;
        } else
        {
            return super.handleEvent(event);
        }
    }

    public void paint(Graphics g)
    {
        g.drawImage(logo, 20, 42, this);
        g.setColor(Color.darkGray);
        g.drawLine(odx, 200, wid - 15, 200);
        g.setColor(Color.white);
        g.drawLine(odx, 201, wid - 15, 201);
    }

    static Image logo;
    static int odx = 94;
    static int ody = 40;
    static int wid = 380;
    static int hh = 20;
    Button b;

}
