replace old mulligan with new behavior (#3773)

This commit is contained in:
ebbit1q 2019-07-12 04:53:09 +02:00 committed by Zach H
parent ce54aa6813
commit a3a1e20074
7 changed files with 58 additions and 23 deletions

View file

@ -228,6 +228,7 @@ SettingsCache::SettingsCache()
spectatorNotificationsEnabled = settings->value("interface/specnotificationsenabled", false).toBool();
doubleClickToPlay = settings->value("interface/doubleclicktoplay", true).toBool();
playToStack = settings->value("interface/playtostack", true).toBool();
startingHandSize = settings->value("interface/startinghandsize", 7).toInt();
annotateTokens = settings->value("interface/annotatetokens", false).toBool();
tabGameSplitterSizes = settings->value("interface/tabgame_splittersizes").toByteArray();
displayCardNames = settings->value("cards/displaycardnames", true).toBool();
@ -439,6 +440,12 @@ void SettingsCache::setPlayToStack(int _playToStack)
settings->setValue("interface/playtostack", playToStack);
}
void SettingsCache::setStartingHandSize(int _startingHandSize)
{
startingHandSize = _startingHandSize;
settings->setValue("interface/startinghandsize", startingHandSize);
}
void SettingsCache::setAnnotateTokens(int _annotateTokens)
{
annotateTokens = static_cast<bool>(_annotateTokens);