mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add setting to hide visual deck storage in game lobby (#5570)
This commit is contained in:
parent
1ee0e87ba7
commit
d951b082c4
10 changed files with 56 additions and 5 deletions
|
|
@ -273,6 +273,7 @@ SettingsCache::SettingsCache()
|
|||
visualDeckStoragePromptForConversion =
|
||||
settings->value("interface/visualdeckstoragepromptforconversion", true).toBool();
|
||||
visualDeckStorageAlwaysConvert = settings->value("interface/visualdeckstoragealwaysconvert", false).toBool();
|
||||
visualDeckStorageInGame = settings->value("interface/visualdeckstorageingame", true).toBool();
|
||||
horizontalHand = settings->value("hand/horizontal", true).toBool();
|
||||
invertVerticalCoordinate = settings->value("table/invert_vertical", false).toBool();
|
||||
minPlayersForMultiColumnLayout = settings->value("interface/min_players_multicolumn", 4).toInt();
|
||||
|
|
@ -710,6 +711,13 @@ void SettingsCache::setVisualDeckStorageAlwaysConvert(QT_STATE_CHANGED_T _visual
|
|||
settings->setValue("interface/visualdeckstoragealwaysconvert", visualDeckStorageAlwaysConvert);
|
||||
}
|
||||
|
||||
void SettingsCache::setVisualDeckStorageInGame(QT_STATE_CHANGED_T value)
|
||||
{
|
||||
visualDeckStorageInGame = value;
|
||||
settings->setValue("interface/visualdeckstorageingame", visualDeckStorageInGame);
|
||||
emit visualDeckStorageInGameChanged(visualDeckStorageInGame);
|
||||
}
|
||||
|
||||
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T _horizontalHand)
|
||||
{
|
||||
horizontalHand = static_cast<bool>(_horizontalHand);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue