mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
fixed overlapping back and disconnect buttons
This commit is contained in:
@@ -123,7 +123,7 @@ public final class Server {
|
|||||||
new EventFlow().addPostEvent(new NetworkEvents.SendLogin(clientId, user)).postEvent();
|
new EventFlow().addPostEvent(new NetworkEvents.SendLogin(clientId, user)).postEvent();
|
||||||
|
|
||||||
primary = new ServerView(user, this::sendChallenge, this::disconnect);
|
primary = new ServerView(user, this::sendChallenge, this::disconnect);
|
||||||
WidgetContainer.getCurrentView().transitionNext(primary);
|
WidgetContainer.getCurrentView().transitionNextCustom(primary);
|
||||||
|
|
||||||
startPopulateScheduler();
|
startPopulateScheduler();
|
||||||
populateGameList();
|
populateGameList();
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ public abstract class ViewWidget extends StackWidget {
|
|||||||
view.add(Pos.BOTTOM_LEFT, Primitive.vbox(backButton));
|
view.add(Pos.BOTTOM_LEFT, Primitive.vbox(backButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void transitionNextCustom(ViewWidget view) {
|
||||||
|
view.previous = this;
|
||||||
|
replace(Pos.CENTER, view);
|
||||||
|
}
|
||||||
|
|
||||||
public void transitionPrevious() {
|
public void transitionPrevious() {
|
||||||
if (previous == null) {
|
if (previous == null) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user