mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-28 12:14:42 +02:00
Fikser problemer med kodestil
This commit is contained in:
@ -42,7 +42,6 @@ public class CardChoiceScreen extends InputAdapter implements Screen {
|
||||
private final List<CardRectangle> chosenCards;
|
||||
private final int maxCards;
|
||||
private final Stage stage;
|
||||
final TextButton confirmCards;
|
||||
|
||||
/**
|
||||
* Initializes a new card choice screen
|
||||
@ -72,7 +71,7 @@ public class CardChoiceScreen extends InputAdapter implements Screen {
|
||||
stage = new Stage();
|
||||
inputMultiplexer.addProcessor(stage);
|
||||
|
||||
confirmCards = new SimpleButton("Confirm cards", roboRallyWrapper.font).getButton();
|
||||
TextButton confirmCards = new SimpleButton("Confirm cards", roboRallyWrapper.font).getButton();
|
||||
stage.addActor(confirmCards);
|
||||
confirmCards.setY(viewport.getWorldHeight() + 60);
|
||||
confirmCards.setX(15);
|
||||
|
@ -10,7 +10,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
|
||||
* This class generates a simple text button using a default skin
|
||||
*/
|
||||
public class SimpleButton {
|
||||
private TextButton button;
|
||||
private final TextButton button;
|
||||
|
||||
/**
|
||||
* Instantiates a new simple button
|
||||
|
Reference in New Issue
Block a user