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 { ...@@ -222,7 +222,7 @@ public class LobbyView extends AbstractView {
for (Actor widget: playerUIWidgets){ for (Actor widget: playerUIWidgets){
stage.addActor(widget); stage.addActor(widget);
} }
stage.addActor(outputLabel); // OutputLabel for debugging purposes stage.addActor(outputLabel);
createLobbyButton.addListener(new InputListener(){ createLobbyButton.addListener(new InputListener(){
@Override @Override
...@@ -232,13 +232,8 @@ public class LobbyView extends AbstractView { ...@@ -232,13 +232,8 @@ public class LobbyView extends AbstractView {
@Override @Override
public void touchUp (InputEvent event, float x, float y, int pointer, int button) { public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
buttonClickAudio.play(0.8f); buttonClickAudio.play(0.8f);
outputLabel.setText("Create Lobby");
showCreateLobbyWindow(); showCreateLobbyWindow();
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("createLobbyButton");
}
}); });
playerReadyCheckButton.addListener(new InputListener(){ playerReadyCheckButton.addListener(new InputListener(){
@Override @Override
...@@ -248,13 +243,8 @@ public class LobbyView extends AbstractView { ...@@ -248,13 +243,8 @@ public class LobbyView extends AbstractView {
@Override @Override
public void touchUp (InputEvent event, float x, float y, int pointer, int button) { public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
buttonClickAudio.play(0.8f); buttonClickAudio.play(0.8f);
outputLabel.setText("Player Ready");
playerController.setLobbyPlayerReady(true); playerController.setLobbyPlayerReady(true);
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("playerReadyCheckButton");
}
}); });
findLobbyButton.addListener(new InputListener(){ findLobbyButton.addListener(new InputListener(){
...@@ -267,10 +257,6 @@ public class LobbyView extends AbstractView { ...@@ -267,10 +257,6 @@ public class LobbyView extends AbstractView {
buttonClickAudio.play(0.8f); buttonClickAudio.play(0.8f);
showLobbyListWindow(); showLobbyListWindow();
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("findLobbyButton");
}
}); });
lobbyListBackButton.addListener(new InputListener(){ lobbyListBackButton.addListener(new InputListener(){
@Override @Override
...@@ -296,10 +282,6 @@ public class LobbyView extends AbstractView { ...@@ -296,10 +282,6 @@ public class LobbyView extends AbstractView {
} }
showMainLobbyWindow(); showMainLobbyWindow();
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("lobbyListBackButton");
}
}); });
lobbyListRefreshButton.addListener(new InputListener(){ lobbyListRefreshButton.addListener(new InputListener(){
@Override @Override
...@@ -312,10 +294,6 @@ public class LobbyView extends AbstractView { ...@@ -312,10 +294,6 @@ public class LobbyView extends AbstractView {
outputLabel.setText("Lobby refreshed!"); outputLabel.setText("Lobby refreshed!");
lobbyListRefresh(); lobbyListRefresh();
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("lobbyListRefreshButton");
}
}); });
lobbyBackButton.addListener(new InputListener(){ lobbyBackButton.addListener(new InputListener(){
...@@ -353,10 +331,6 @@ public class LobbyView extends AbstractView { ...@@ -353,10 +331,6 @@ public class LobbyView extends AbstractView {
showMainLobbyWindow(); showMainLobbyWindow();
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("LobbybackButton");
}
}); });
joinLobbyButton.addListener(new InputListener(){ joinLobbyButton.addListener(new InputListener(){
...@@ -387,13 +361,6 @@ public class LobbyView extends AbstractView { ...@@ -387,13 +361,6 @@ public class LobbyView extends AbstractView {
}; };
thread.start(); 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 { ...@@ -408,10 +375,6 @@ public class LobbyView extends AbstractView {
outputLabel.setText("Lobby refreshed!"); outputLabel.setText("Lobby refreshed!");
lobbyRefresh(); lobbyRefresh();
} }
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
outputLabel.setText("lobbyRefreshButton");
}
}); });
lobbyCreateTextField.addListener(new InputListener(){ lobbyCreateTextField.addListener(new InputListener(){
...@@ -427,9 +390,6 @@ public class LobbyView extends AbstractView { ...@@ -427,9 +390,6 @@ public class LobbyView extends AbstractView {
@Override @Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) { public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
buttonClickAudio.play(0.8f); buttonClickAudio.play(0.8f);
if(lobbyCreateTextField.getText().isEmpty()){
outputLabel.setText(lobbyCreateTextField.getText());
}
} }
}); });
startLobbyButton.addListener(new InputListener(){ startLobbyButton.addListener(new InputListener(){
...@@ -460,9 +420,6 @@ public class LobbyView extends AbstractView { ...@@ -460,9 +420,6 @@ public class LobbyView extends AbstractView {
}; };
thread.start(); thread.start();
} }
else{
outputLabel.setText("Lobby has no name, hehe");
}
return true; return true;
} }
}); });
......
...@@ -107,7 +107,7 @@ public class MenuView extends AbstractView { ...@@ -107,7 +107,7 @@ public class MenuView extends AbstractView {
ImageButton previousAvatarButton1 = new ImageButton(flippedDrawable); ImageButton previousAvatarButton1 = new ImageButton(flippedDrawable);
this.portraitAtlas = (TextureAtlas) assetManager.get(CharacterAssets.PortraitsAtlas.path, CharacterAssets.PortraitsAtlas.classType); 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("Finding avatar with index: " + currentIndexAvatar);
System.out.println("Name is: " + availableAvatarsHashMap.get(currentIndexAvatar)); System.out.println("Name is: " + availableAvatarsHashMap.get(currentIndexAvatar));
avatarPortraitImage = new Image(texReggy); avatarPortraitImage = new Image(texReggy);
...@@ -171,7 +171,7 @@ public class MenuView extends AbstractView { ...@@ -171,7 +171,7 @@ public class MenuView extends AbstractView {
@Override @Override
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
buttonClickAudio.play(0.8f); buttonClickAudio.play(0.8f);
outputLabel.setText("Write your name"); outputLabel.setText("Write a name");
return true; return true;
} }
...@@ -268,7 +268,6 @@ public class MenuView extends AbstractView { ...@@ -268,7 +268,6 @@ public class MenuView extends AbstractView {
} }
} }
@Override @Override
public void dispose() { public void dispose() {
stage.dispose(); stage.dispose();
......
Supports Markdown
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