Add time mode button

This commit is contained in:
Lonami Exo 2017-02-05 15:26:12 +01:00
parent 6dd3861f0e
commit 206b93968f
4 changed files with 35 additions and 8 deletions

View file

@ -38,7 +38,7 @@ public class Klooni extends Game {
skin.add("play_texture", new Texture(Gdx.files.internal("ui/play.png")));
skin.add("star_texture", new Texture(Gdx.files.internal("ui/star.png")));
skin.add("stats_texture", new Texture(Gdx.files.internal("ui/stats.png")));
skin.add("stopwatch_texture", new Texture(Gdx.files.internal("ui/stopwatch.png")));
skin.add("palette_texture", new Texture(Gdx.files.internal("ui/palette.png")));
skin.add("home_texture", new Texture(Gdx.files.internal("ui/home.png")));
skin.add("replay_texture", new Texture(Gdx.files.internal("ui/replay.png")));

View file

@ -64,9 +64,8 @@ public class MainMenuScreen extends InputListener implements Screen {
});
table.add(starButton).space(16);
// Stats button (high scores)
final SoftButton statsButton = new SoftButton(2, "stats_texture");
// TODO For testing purposes, open the time mode
// Time mode
final SoftButton statsButton = new SoftButton(2, "stopwatch_texture");
statsButton.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {