-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfo.java
More file actions
70 lines (59 loc) · 2.65 KB
/
Info.java
File metadata and controls
70 lines (59 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import java.awt.*;
import javax.swing.*;
public class Info extends JPanel {
private Font fonte;
private JLabel background;
private JLabel pikachuIconLabel;
public Info(Game frame) {
editar(frame);
}
private void editar(Game frame) {
setLayout(new BorderLayout());
fonte = DefinirFonte.fonte();
background = new JLabel();
background.setFocusable(true);
background.setIcon(new ImageIcon("assets/backgroundImages/info.png"));
background.setBounds(0, 0, 960, 640);
pikachuIconLabel = new JLabel();
pikachuIconLabel.setFocusable(true);
pikachuIconLabel.setIcon(new ImageIcon("assets/backgroundImages/pikachu.gif"));
pikachuIconLabel.setBounds(10, 5, 130, 130);
JLabel linha0 = new JLabel("Pokemon Fire Red - Java Swing Edition");
JLabel linha1 = new JLabel("Autores:");
JLabel linha2 = new JLabel("Joao Marcos - Rafael - Puca");
JLabel linha3 = new JLabel("CI - UFPB");
JLabel linha4 = new JLabel("");
JLabel linha5 = new JLabel("");
linha0.setFont(fonte.deriveFont(Font.PLAIN,52f));
linha1.setFont(fonte.deriveFont(Font.PLAIN,52f));
linha2.setFont(fonte.deriveFont(Font.PLAIN,52f));
linha3.setFont(fonte.deriveFont(Font.PLAIN,52f));
linha4.setFont(fonte.deriveFont(Font.PLAIN,52f));
linha5.setFont(fonte.deriveFont(Font.PLAIN,52f));
linha0.setBounds(50, 150, 800, 50);
linha1.setBounds(50, 200, 800, 50);
linha2.setBounds(50, 250, 800, 50);
linha3.setBounds(50, 300, 800, 50);
linha4.setBounds(50, 350, 800, 50);
linha5.setBounds(50, 450, 800, 50);
JButton nextButton = new JButton(" Proximo ");
nextButton.setFont(fonte.deriveFont(Font.PLAIN,30f));
nextButton.addActionListener(e -> {
Tutorial tutorial = new Tutorial(frame, new String[]{ "Ola, bem-vindo ao mundo Pokemon!",
"Neste jogo voce enfrentar desafios",
"e batalhas para se tornar um mestre Pokemon.",
"Agora me conte mais sobre voce." }, new CriarPersonagemPage(frame));
frame.mudarTela(tutorial);
});
nextButton.setBounds(800, 20, 120, 40);
background.add(linha0);
background.add(linha1);
background.add(linha2);
background.add(linha3);
background.add(linha4);
background.add(linha5);
background.add(nextButton);
background.add(pikachuIconLabel);
add(background, BorderLayout.NORTH);
}
}