Skip to content
Snippets Groups Projects
Commit 9a4cbe11 authored by Turid Cecilie Dahl's avatar Turid Cecilie Dahl
Browse files

#86 Makes Create New a bit prettier

parent 83bce626
No related branches found
No related tags found
2 merge requests!90Dev,!83Resolve "Usability fixes"
...@@ -82,7 +82,7 @@ public class CreateNewTournamentState extends State { ...@@ -82,7 +82,7 @@ public class CreateNewTournamentState extends State {
private final int inputFieldHeight = Gdx.graphics.getHeight()/15; private final int inputFieldHeight = Gdx.graphics.getHeight()/15;
private final int nameFieldWidth = Gdx.graphics.getWidth()/3; private final int nameFieldWidth = Gdx.graphics.getWidth()/3;
private final float checkBoxSize = Gdx.graphics.getWidth()/15; private final float checkBoxSize = Gdx.graphics.getWidth()/15;
private final float scrollPaneWidth = Gdx.graphics.getWidth()/1.3f; private final float scrollPaneWidth = Gdx.graphics.getWidth()/1.13f;
private final float scrollPaneHeight = Gdx.graphics.getHeight()/2.3f; private final float scrollPaneHeight = Gdx.graphics.getHeight()/2.3f;
private TextureRegionDrawable questionMark = new TextureRegionDrawable(new TextureRegion(new Texture("questionMarkIcon.png"))); private TextureRegionDrawable questionMark = new TextureRegionDrawable(new TextureRegion(new Texture("questionMarkIcon.png")));
private final float questionMarkWidthAndHeight = Gdx.graphics.getWidth()/25; private final float questionMarkWidthAndHeight = Gdx.graphics.getWidth()/25;
...@@ -137,7 +137,9 @@ public class CreateNewTournamentState extends State { ...@@ -137,7 +137,9 @@ public class CreateNewTournamentState extends State {
// Make widgets methods // Make widgets methods
private void makePageOne(){ private void makePageOne(){
Table innerTable = new Table(); Table innerTable = new Table();
innerTable.defaults().space(spacingLittle); innerTable.defaults().spaceBottom(spacingLittle*1.5f);
innerTable.pad(spacingLittle);
innerTable.setBackground(backgroundTableBlueRounded);
innerTable.add(makeRow(nameLabel, nameDialog)); innerTable.add(makeRow(nameLabel, nameDialog));
nameInputField.setMaxLength(10); nameInputField.setMaxLength(10);
...@@ -159,12 +161,13 @@ public class CreateNewTournamentState extends State { ...@@ -159,12 +161,13 @@ public class CreateNewTournamentState extends State {
innerTable.add(makeRow(startDelayLabel, startDelayDialog)); innerTable.add(makeRow(startDelayLabel, startDelayDialog));
innerTable.add(startDelaySelectBox); innerTable.add(startDelaySelectBox);
innerTable.row();
innerTable.add(errorLabel).colspan(2);
rootTable.add(innerTable).colspan(2); rootTable.add(innerTable).colspan(2);
rootTable.row(); rootTable.row();
rootTable.add(errorLabel).colspan(2);
rootTable.row();
rootTable.add(makeBackBtn()).expand().bottom().left(); rootTable.add(makeBackBtn()).expand().bottom().left();
TextButton nextBtn = makeNextBtn(); TextButton nextBtn = makeNextBtn();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment