mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
centrert knapper og text
This commit is contained in:
parent
81e43c65a7
commit
4a32278a54
@ -39,7 +39,7 @@ public class IPAddressScreen extends AbstractScreen {
|
|||||||
Skin skin = new Skin(Gdx.files.internal("uiskin.json"));
|
Skin skin = new Skin(Gdx.files.internal("uiskin.json"));
|
||||||
TextButton joinButton = new TextButton("Join", skin);
|
TextButton joinButton = new TextButton("Join", skin);
|
||||||
joinButton.setSize(300,60);
|
joinButton.setSize(300,60);
|
||||||
joinButton.setPosition(300,300);
|
joinButton.setPosition(applicationWidth/2f -joinButton.getWidth()/2f,300);
|
||||||
joinButton.addListener(new ClickListener() {
|
joinButton.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) {
|
||||||
@ -59,7 +59,7 @@ public class IPAddressScreen extends AbstractScreen {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
txtinput = new TextField("", skin);
|
txtinput = new TextField("", skin);
|
||||||
txtinput.setPosition(300,250);
|
txtinput.setPosition(applicationWidth/2f -txtinput.getWidth()/2f,250);
|
||||||
txtinput.setSize(150,40);
|
txtinput.setSize(150,40);
|
||||||
stage.addActor(txtinput);
|
stage.addActor(txtinput);
|
||||||
stage.addActor(joinButton);
|
stage.addActor(joinButton);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user