Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Progark gruppe 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Ingebrigt Ørstad
Progark gruppe 3
Commits
9a4cbe11
Commit
9a4cbe11
authored
5 years ago
by
Turid Cecilie Dahl
Browse files
Options
Downloads
Patches
Plain Diff
#86
Makes Create New a bit prettier
parent
83bce626
No related branches found
No related tags found
2 merge requests
!90
Dev
,
!83
Resolve "Usability fixes"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/core/src/com/gameware/game/states/CreateNewTournamentState.java
+7
-4
7 additions, 4 deletions
...rc/com/gameware/game/states/CreateNewTournamentState.java
with
7 additions
and
4 deletions
frontend/core/src/com/gameware/game/states/CreateNewTournamentState.java
+
7
−
4
View file @
9a4cbe11
...
@@ -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.
1
3f
;
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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment