Implemented HTTPS checking for web multiplayer, fixed chat jamming all text fields
This commit is contained in:
@@ -18,5 +18,10 @@ public abstract class PlatformFunction{
|
||||
public void onGameExit(){}
|
||||
public void openDonations(){}
|
||||
public void requestWritePerms(){}
|
||||
public String getLocaleName(Locale locale){return locale.toString();}
|
||||
public String getLocaleName(Locale locale){
|
||||
return locale.toString();
|
||||
}
|
||||
public boolean canJoinGame(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import io.anuke.ucore.function.Consumer;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Net{
|
||||
public static final int version = 9;
|
||||
public static final int version = 10;
|
||||
|
||||
private static boolean server;
|
||||
private static boolean active;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ChatFragment extends Table implements Fragment{
|
||||
|
||||
//TODO put it in input?
|
||||
update(() -> {
|
||||
if(!Net.active()){
|
||||
if(!Net.active() && chatOpen){
|
||||
hide();
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public class MenuFragment implements Fragment{
|
||||
add(new MenuButton("$text.play", group, ui.levels::show));
|
||||
row();
|
||||
|
||||
if(!Vars.gwt) {
|
||||
if(Mindustry.platforms.canJoinGame()) {
|
||||
add(new MenuButton("$text.joingame", group, ui.join::show));
|
||||
row();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user