Skip to content
Snippets Groups Projects
Commit cf84091d authored by Samuel Nejati Masouleh's avatar Samuel Nejati Masouleh
Browse files

Dinge

parent 7ce0897f
No related branches found
No related tags found
No related merge requests found
package com.galaxytrucker.galaxytruckerreloaded.View.Buttons;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import java.awt.*;
public class TIListener extends TextField {
public TIListener(Texture texture, float x, float y, float width, float height) {
super(new TextureRegionDrawable(new TextureRegion(texture)));
setPosition(x, y);
setSize(width, height);
}
public abstract void leftClick();
}
......@@ -108,6 +108,7 @@ public class SPNewOrResume implements Screen {
public void newGame() {
main.setScreen(new ShipSelector(main));
dispose();
}
}
......@@ -60,6 +60,7 @@ public class ShipSelector implements Screen {
private Viewport viewport;
/** Constructor
* @param main - main class */
public ShipSelector(Main main){
......@@ -73,7 +74,7 @@ public class ShipSelector implements Screen {
stage = new Stage(viewport);
stage.addActor(singlePlayerButton);
difficulties = new LinkedList<>();
for(int i=0; i<=3; i++) {
DifficultyButton difficulty1 = new DifficultyButton(main.WIDTH-100, main.HEIGHT/2 - 100 - 75*i, 248, 50, this, i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment