mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
fixer username input
This commit is contained in:
parent
d173ec4284
commit
42275703b0
@ -34,7 +34,7 @@ public class UsernameScreen extends AbstractScreen {
|
|||||||
Skin skin = new Skin(Gdx.files.internal("uiskin.json"));
|
Skin skin = new Skin(Gdx.files.internal("uiskin.json"));
|
||||||
TextButton confirm = new TextButton("Confirm", skin);
|
TextButton confirm = new TextButton("Confirm", skin);
|
||||||
confirm.setSize(300,60);
|
confirm.setSize(300,60);
|
||||||
confirm.setPosition(300,300);
|
confirm.setPosition(applicationWidth/2f - confirm.getWidth()/2,300);
|
||||||
confirm.addListener(new ClickListener() {
|
confirm.addListener(new ClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean touchDown(InputEvent e, float x, float y, int point, int button) {
|
public boolean touchDown(InputEvent e, float x, float y, int point, int button) {
|
||||||
@ -56,7 +56,7 @@ public class UsernameScreen extends AbstractScreen {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
textInput = new TextField("",skin);
|
textInput = new TextField("",skin);
|
||||||
textInput.setPosition(300,250);
|
textInput.setPosition(applicationWidth/2f - textInput.getWidth()/2,250);
|
||||||
textInput.setSize(150,40);
|
textInput.setSize(150,40);
|
||||||
stage.addActor(textInput);
|
stage.addActor(textInput);
|
||||||
stage.addActor(confirm);
|
stage.addActor(confirm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user