package com.kaeruct.glxy.screen;

import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.utils.Align;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.kaeruct.glxy.GlxyGame;

public class MainMenuScreen extends MenuScreen {
	
	public MainMenuScreen (GlxyGame gm) {
		super(gm);
		
		TextButton t = new TextButton("Start!", skin);
		t.addListener(new ClickListener() {
		    public void clicked(InputEvent event, float x, float y) {
		    	game.setScreen("GameScreen");
		    }
		});
		t.pad(5, 10, 5, 10);
		add(t).expandY();

		Label cpright = new Label("Copyright CHEKAE 2013 - All rights reserved", skin);
		cpright.setAlignment(Align.center);
		cpright.setColor(1f, 1f, .8f, 1f);
		add(cpright).pad(10);
	}

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

@@ -55,33 +55,153 @@
 gdx.
-scenes.scene2d.InputEvent
+Gdx;%0Aimport com.badlogic.gdx.graphics.Texture;%0Aimport com.badlogic.gdx.scenes.scene2d.InputEvent;%0Aimport com.badlogic.gdx.scenes.scene2d.ui.Image
 ;%0Aim
@@ -462,16 +462,55 @@
 stener;%0A
+import com.badlogic.gdx.utils.Scaling;%0A
 import c
@@ -867,16 +867,16 @@
 5, 10);%0A
-
 %09%09add(t)
@@ -888,16 +888,172 @@
 ndY();%0A%0A
+%09%09Texture logoTex = new Texture(Gdx.files.internal(%22data/glxy-logo.png%22));%0A%09%09Image logo = new Image(logoTex);%0A%09%09logo.setScaling(Scaling.fit);%0A%09%09add(logo);%0A%0A
 %09%09Label 

add logo to title screen