All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mmb.content.old.NukeGUI Maven / Gradle / Ivy

Go to download

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());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy