Lobby prefs

This commit is contained in:
Anuken
2019-08-30 19:49:36 -04:00
parent 7e80a60e65
commit 7f2c7685b4
5 changed files with 22 additions and 1 deletions

View File

@@ -13,6 +13,11 @@ import static io.anuke.mindustry.Vars.mobile;
public interface Platform{
/**Steam: Update lobby visibility.*/
default void updateLobby(){
}
/** Add a text input dialog that should show up after the field is tapped. */
default void addDialog(TextField field){
addDialog(field, 16);

View File

@@ -223,6 +223,10 @@ public class SettingsMenuDialog extends SettingsDialog{
game.checkPref("savecreate", true);
game.checkPref("publichost", false, i -> {
platform.updateLobby();
});
game.pref(new Setting(){
@Override
public void add(SettingsTable table){