Commit 67428d70 authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

Removed some debug label output

parent b419bc00
......@@ -222,7 +222,7 @@ public class LobbyView extends AbstractView {
for (Actor widget: playerUIWidgets){
stage.addActor(widget);
}
stage.addActor(outputLabel); // OutputLabel for debugging purposes
stage.addActor(outputLabel);
createLobbyButton.addListener(new InputListener(){
@Override
......@@ -232,13 +232,8 @@ public class LobbyView extends AbstractView {
@Override
public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
buttonClickAudio.play(0.8f);
outputLabel.setText("Create Lobby");
showCreateLobbyWindow();
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("createLobbyButton");
}
});
playerReadyCheckButton.addListener(new InputListener(){
@Override
......@@ -248,13 +243,8 @@ public class LobbyView extends AbstractView {
@Override
public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
buttonClickAudio.play(0.8f);
outputLabel.setText("Player Ready");
playerController.setLobbyPlayerReady(true);
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("playerReadyCheckButton");
}
});
findLobbyButton.addListener(new InputListener(){
......@@ -267,10 +257,6 @@ public class LobbyView extends AbstractView {
buttonClickAudio.play(0.8f);
showLobbyListWindow();
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("findLobbyButton");
}
});
lobbyListBackButton.addListener(new InputListener(){
@Override
......@@ -296,10 +282,6 @@ public class LobbyView extends AbstractView {
}
showMainLobbyWindow();
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("lobbyListBackButton");
}
});
lobbyListRefreshButton.addListener(new InputListener(){
@Override
......@@ -312,10 +294,6 @@ public class LobbyView extends AbstractView {
outputLabel.setText("Lobby refreshed!");
lobbyListRefresh();
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("lobbyListRefreshButton");
}
});
lobbyBackButton.addListener(new InputListener(){
......@@ -353,10 +331,6 @@ public class LobbyView extends AbstractView {
showMainLobbyWindow();
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("LobbybackButton");
}
});
joinLobbyButton.addListener(new InputListener(){
......@@ -387,13 +361,6 @@ public class LobbyView extends AbstractView {
};
thread.start();
}
else{
outputLabel.setText("LobbyListHash did not contain the selected key.");
}
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("joinLobbyButton");
}
});
......@@ -408,10 +375,6 @@ public class LobbyView extends AbstractView {
outputLabel.setText("Lobby refreshed!");
lobbyRefresh();
}
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("lobbyRefreshButton");
}
});
lobbyCreateTextField.addListener(new InputListener(){
......@@ -427,9 +390,6 @@ public class LobbyView extends AbstractView {
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
buttonClickAudio.play(0.8f);
if(lobbyCreateTextField.getText().isEmpty()){
outputLabel.setText(lobbyCreateTextField.getText());
}
}
});
startLobbyButton.addListener(new InputListener(){
......@@ -460,9 +420,6 @@ public class LobbyView extends AbstractView {
};
thread.start();
}
else{
outputLabel.setText("Lobby has no name, hehe");
}
return true;
}
});
......
......@@ -107,7 +107,7 @@ public class MenuView extends AbstractView {
ImageButton previousAvatarButton1 = new ImageButton(flippedDrawable);
this.portraitAtlas = (TextureAtlas) assetManager.get(CharacterAssets.PortraitsAtlas.path, CharacterAssets.PortraitsAtlas.classType);
TextureRegion texReggy = (TextureRegion) portraitAtlas.findRegion(availableAvatarsHashMap.get(currentIndexAvatar)+"Portrait");
TextureRegion texReggy = portraitAtlas.findRegion(availableAvatarsHashMap.get(currentIndexAvatar)+"Portrait");
System.out.println("Finding avatar with index: " + currentIndexAvatar);
System.out.println("Name is: " + availableAvatarsHashMap.get(currentIndexAvatar));
avatarPortraitImage = new Image(texReggy);
......@@ -171,7 +171,7 @@ public class MenuView extends AbstractView {
@Override
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
buttonClickAudio.play(0.8f);
outputLabel.setText("Write your name");
outputLabel.setText("Write a name");
return true;
}
......@@ -268,7 +268,6 @@ public class MenuView extends AbstractView {
}
}
@Override
public void dispose() {
stage.dispose();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment