mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
Update SettingsPage
This commit is contained in:
@@ -292,7 +292,7 @@ public enum VSubmenuPreferences implements IVSubmenu<CSubmenuPreferences> {
|
||||
pnlPrefs.add(cbEnableUnknownCards, titleConstraints);
|
||||
pnlPrefs.add(new NoteLabel("Enable Unknown Cards to be loaded to Unknown Set. (Requires restart)"), descriptionConstraints);
|
||||
|
||||
pnlPrefs.add(cbUseExperimentalNetworkStream, titleConstraints);
|
||||
pnlPrefs.add(cbUseExperimentalNetworkStream, titleConstraints);
|
||||
pnlPrefs.add(new NoteLabel("Forge switches to compatible network stream. (If unsure, turn OFF this option)"), descriptionConstraints);
|
||||
|
||||
// Graphic Options
|
||||
|
||||
@@ -3,6 +3,7 @@ package forge.screens.settings;
|
||||
import com.badlogic.gdx.utils.Align;
|
||||
import forge.Forge;
|
||||
import forge.Graphics;
|
||||
import forge.GuiBase;
|
||||
import forge.MulliganDefs;
|
||||
import forge.StaticData;
|
||||
import forge.ai.AiProfileUtil;
|
||||
@@ -234,11 +235,34 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
||||
3);
|
||||
lstSettings.addItem(new BooleanSetting(FPref.UI_LOAD_UNKNOWN_CARDS,
|
||||
"Enable Unknown Cards",
|
||||
"Enable Unknown Cards to be loaded to Unknown Set. (Requires restart)"),
|
||||
"Enable Unknown Cards to be loaded to Unknown Set. (Requires restart)") {
|
||||
@Override
|
||||
public void select() {
|
||||
super.select();
|
||||
FOptionPane.showConfirmDialog(
|
||||
localizer.getMessage("lblRestartForgeDescription"),
|
||||
localizer.getMessage("lblRestartForge"),
|
||||
localizer.getMessage("lblRestart"),
|
||||
localizer.getMessage("lblLater"), new Callback<Boolean>() {
|
||||
@Override
|
||||
public void run(Boolean result) {
|
||||
if (result) {
|
||||
Forge.restart(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
3);
|
||||
lstSettings.addItem(new BooleanSetting(FPref.UI_NETPLAY_COMPAT,
|
||||
"Experimental Network Compatibility",
|
||||
"Forge switches to compatible network stream. (If unsure, turn OFF this option)"),
|
||||
"Forge switches to compatible network stream. (If unsure, turn OFF this option)") {
|
||||
@Override
|
||||
public void select() {
|
||||
super.select();
|
||||
GuiBase.enablePropertyConfig(FModel.getPreferences().getPrefBoolean(FPref.UI_NETPLAY_COMPAT));
|
||||
}
|
||||
},
|
||||
3);
|
||||
|
||||
//Graphic Options
|
||||
|
||||
Reference in New Issue
Block a user