mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
UI for choosing the Mulligan type
This commit is contained in:
@@ -3,6 +3,8 @@ package forge.screens.settings;
|
||||
import com.badlogic.gdx.graphics.g2d.BitmapFont.HAlignment;
|
||||
import forge.Forge;
|
||||
import forge.Graphics;
|
||||
import forge.MulliganDefs;
|
||||
import forge.StaticData;
|
||||
import forge.ai.AiProfileUtil;
|
||||
import forge.assets.FSkin;
|
||||
import forge.assets.FSkinColor;
|
||||
@@ -84,6 +86,15 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
||||
0);
|
||||
|
||||
//Gameplay Options
|
||||
lstSettings.addItem(new CustomSelectSetting(FPref.MULLIGAN_RULE, "Mulligan Rule",
|
||||
"Choose the version of the Mulligan rule.",
|
||||
MulliganDefs.getMulliganRuleNames()) {
|
||||
@Override
|
||||
public void valueChanged(String newValue) {
|
||||
super.valueChanged(newValue);
|
||||
StaticData.instance().setMulliganRule(MulliganDefs.GetRuleByName(FModel.getPreferences().getPref(FPref.MULLIGAN_RULE)));
|
||||
}
|
||||
}, 1);
|
||||
lstSettings.addItem(new CustomSelectSetting(FPref.UI_CURRENT_AI_PROFILE,
|
||||
"AI Personality",
|
||||
"Choose your AI opponent.",
|
||||
|
||||
Reference in New Issue
Block a user