Trying to make color fade in particles but its not finished yet
This commit is contained in:
parent
c70fb12b38
commit
3ad54c931d
3 changed files with 76 additions and 30 deletions
|
|
@ -7,6 +7,7 @@ import javax.swing.JCheckBox;
|
|||
import java.awt.FlowLayout;
|
||||
import javax.swing.JSlider;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JButton;
|
||||
|
||||
public class ParticlesTestFrame{
|
||||
|
||||
|
|
@ -33,6 +34,8 @@ public class ParticlesTestFrame{
|
|||
private JLabel jLabel4 = null;
|
||||
private JLabel jLabel5 = null;
|
||||
public JSlider size = null;
|
||||
public boolean respawn = false;
|
||||
private JButton jButtonRespawn = null;
|
||||
/**
|
||||
* This method initializes jFrame
|
||||
*
|
||||
|
|
@ -41,7 +44,7 @@ public class ParticlesTestFrame{
|
|||
public JFrame getJFrame() {
|
||||
if (jFrame == null) {
|
||||
jFrame = new JFrame();
|
||||
jFrame.setSize(new Dimension(281, 627));
|
||||
jFrame.setSize(new Dimension(281, 662));
|
||||
jFrame.setTitle("ParticleTest");
|
||||
jFrame.setContentPane(getJContentPane());
|
||||
}
|
||||
|
|
@ -90,6 +93,7 @@ public class ParticlesTestFrame{
|
|||
jContentPane.add(getLife(), null);
|
||||
jContentPane.add(jLabel5, null);
|
||||
jContentPane.add(getSize(), null);
|
||||
jContentPane.add(getJButtonRespawn(), null);
|
||||
}
|
||||
return jContentPane;
|
||||
}
|
||||
|
|
@ -358,4 +362,22 @@ public class ParticlesTestFrame{
|
|||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method initializes jButtonRespawn
|
||||
*
|
||||
* @return javax.swing.JButton
|
||||
*/
|
||||
private JButton getJButtonRespawn() {
|
||||
if (jButtonRespawn == null) {
|
||||
jButtonRespawn = new JButton();
|
||||
jButtonRespawn.setText("Force Respawn");
|
||||
jButtonRespawn.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent e) {
|
||||
respawn = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
return jButtonRespawn;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue