added RMVLSt command to remove a client from gui
This commit is contained in:
parent
58e2d693bb
commit
5dfa53c001
@ -63,9 +63,9 @@ public class LoungeSceneViewController implements Initializable {
|
|||||||
@FXML
|
@FXML
|
||||||
private AnchorPane gameAnchorPane;
|
private AnchorPane gameAnchorPane;
|
||||||
@FXML
|
@FXML
|
||||||
private ListView<LobbyListItem> LobbyListView;
|
public ListView<LobbyListItem> LobbyListView;
|
||||||
@FXML
|
@FXML
|
||||||
private ListView<ClientListItem> ClientListView;
|
public ListView<ClientListItem> ClientListView;
|
||||||
@FXML
|
@FXML
|
||||||
private Button ChangeNameButton;
|
private Button ChangeNameButton;
|
||||||
@FXML
|
@FXML
|
||||||
@ -336,8 +336,8 @@ public class LoungeSceneViewController implements Initializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds players to a lobby
|
* Adds players to a lobby "NMEMB" {@link ch.unibas.dmi.dbis.cs108.multiplayer.helpers.GuiParameters}
|
||||||
* "NMEMB" {@link ch.unibas.dmi.dbis.cs108.multiplayer.helpers.GuiParameters}
|
*
|
||||||
* @param lobbyID
|
* @param lobbyID
|
||||||
* @param player
|
* @param player
|
||||||
*/
|
*/
|
||||||
@ -417,7 +417,7 @@ public class LoungeSceneViewController implements Initializable {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeClientFromList(String name){
|
public void removeClientFromList(String name) {
|
||||||
Iterator<ClientListItem> it = clients.iterator();
|
Iterator<ClientListItem> it = clients.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
String uid = it.next().getName();
|
String uid = it.next().getName();
|
||||||
@ -425,9 +425,10 @@ public class LoungeSceneViewController implements Initializable {
|
|||||||
it.remove();
|
it.remove();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void removeClientFromLobby(String s){
|
public void removeClientFromLobby(String s) {
|
||||||
//todo
|
//todo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user