package projectzombie.menu;

import projectzombie.Main;
import projectzombie.input.types.InputGUI;
import projectzombie.menu.gui.GUIButtonGroup;
import projectzombie.menu.gui.GUI;
import projectzombie.menu.gui.components.ButtonBasic;
import projectzombie.menu.gui.components.ButtonGroupPause;
import projectzombie.menu.gui.components.OverlayBackground;

public class MenuDeath extends Menu
{
	private GUI gui;
	
	public MenuDeath() {
		this.doGameloop = false;
		this.doGameRender = true;
		this.keepMouse = false;
		
		this.gui = new GUI();
		this.input = new InputGUI(this.gui);
		
		gui.add(new OverlayBackground());
		
		GUIButtonGroup group = new ButtonGroupPause();
		
		group.add(new ButtonBasic("Quit", button -> {
			Main.menu = new MenuMain();
		}));
		
		gui.setSelected(group.get(0));
		gui.add(group);
	}

	@Override
	public void render() {
		gui.render();
	}

}
