package com.kehxstudios.atlas.screens;

import com.kehxstudios.atlas.data.ComponentData;
import com.kehxstudios.atlas.components.GraphicsComponent;
import com.kehxstudios.atlas.tools.Factory;
import com.kehxstudios.atlas.tools.Templates;
import com.kehxstudios.atlas.type.TextureType;
import com.kehxstudios.atlas.entities.Entity;


/**
 * Created by ReidC on 2017-04-06.
 */

public class MainMenuScreen extends AScreen {

    public MainMenuScreen() {
        super(com.kehxstudios.atlas.type.ScreenType.MAIN_MENU);
        screenGraphics.setTextureType(TextureType.MAIN_MENU_BACKGROUND);
        screenGraphics.setEnabled(true);

        ComponentData borderGraphics = Templates.createGraphicsComponentData(0, 0, 3, TextureType.MAIN_MENU_BORDER);

        Entity flappyBird = Factory.createEntity(Templates.createEntityData(width/2, height/5*2));
        GraphicsComponent menuComponent = (GraphicsComponent)Factory.createComponent(flappyBird, borderGraphics);
        Factory.createComponent(flappyBird, Templates.createClickableComponentData(
                width*2, height*2, true, Templates.createLaunchScreenActionData(com.kehxstudios.atlas.type.ScreenType.FLAPPY_BAT)));
        Factory.createComponent(flappyBird, Templates.createFloatingTextComponentData("< ", "Flappy Bird >"));

        Entity intro = Factory.createEntity(Templates.createEntityData(width, height/5*3));
        Factory.createComponent(intro, borderGraphics);
        Factory.createComponent(intro, Templates.createClickableComponentData(
                menuComponent.getWidth(), menuComponent.getHeight(), true, Templates.createLaunchScreenActionData(com.kehxstudios.atlas.type.ScreenType.INTRO)));
        Factory.createComponent(intro, Templates.createFloatingTextComponentData("< ", "Intro >"));

        Entity highScoreReset = Factory.createEntity(Templates.createEntityData(width, height/5*4));
        Factory.createComponent(highScoreReset, borderGraphics);
        Factory.createComponent(highScoreReset, Templates.createClickableComponentData(
                menuComponent.getWidth(), menuComponent.getHeight(), false, Templates.createHighScoreResetActionData(com.kehxstudios.atlas.type.ScreenType.FLAPPY_BAT)));
        Factory.createComponent(highScoreReset, Templates.createFloatingTextComponentData("< ", "High-Score Reset >"));
    }

    @Override
    public void show() {

    }

    @Override
    public void render(float delta) {
        super.render(delta);
    }

    @Override
    public void resize(int width, int height) {

    }

    @Override
    public void pause() {

    }

    @Override
    public void resume() {

    }

    @Override
    public void hide() {

    }

    @Override
    public void dispose() {
        super.dispose();
    }
}

@@ -332,16 +332,63 @@
 ntity;%0D%0A
+import com.kehxstudios.atlas.type.ScreenType;%0D%0A
 %0D%0A%0D%0A/**%0D
@@ -529,35 +529,8 @@
 per(
-com.kehxstudios.atlas.type.
 Scre
@@ -1171,35 +1171,8 @@
 ata(
-com.kehxstudios.atlas.type.
 Scre
@@ -1656,35 +1656,8 @@
 ata(
-com.kehxstudios.atlas.type.
 Scre
@@ -2026,32 +2026,32 @@
 ComponentData(%0D%0A
+
                 
@@ -2155,35 +2155,8 @@
 ata(
-com.kehxstudios.atlas.type.
 Scre

Update MainMenuScreen.java