}
});
WidgetUtil.trySubscribe(this, "multiplayer", new ActivateEventListener() {
@Override
public void onActivated(UIWidget button) {
UIScreenLayer screen = getManager().pushScreen("engine:selectGameScreen");
if (screen instanceof SelectGameScreen) {
((SelectGameScreen) screen).setLoadingAsServer(true);
}
}
});
WidgetUtil.trySubscribe(this, "join", new ActivateEventListener() {
@Override
public void onActivated(UIWidget button) {
UIScreenLayer screen = getManager().pushScreen("engine:joinGameScreen");
}
});
WidgetUtil.trySubscribe(this, "settings", new ActivateEventListener() {
@Override
public void onActivated(UIWidget button) {