mmb.content.old.NukeGUI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world.
THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<
The newest version!
/**
*
*/
package mmb.content.old;
import javax.swing.JPanel;
import mmb.content.old.SkeletalBlockMachine.Update;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
/**
* @author oskar
*
*/
class NukeGUI extends JPanel implements AutoCloseable, Update{
JLabel fuellevel;
private final Nuker nuker;
public NukeGUI(Nuker nuker) {
this.nuker = nuker;
setLayout(new MigLayout("", "[][]", "[]"));
fuellevel = new JLabel("Fuel level:");
add(fuellevel, "cell 0 0");
}
private static final long serialVersionUID = 4601578870693782502L;
@Override
public void close() throws Exception {
// TODO Auto-generated method stub
}
@Override
public void update() {
fuellevel.setText("Fuel level:" + nuker.getFuelRemain());
}
}