mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Create new setting
This commit is contained in:
parent
fc40fea97a
commit
2c4f9bec1a
4 changed files with 19 additions and 0 deletions
|
|
@ -285,6 +285,7 @@ SettingsCache::SettingsCache()
|
|||
visualDeckStorageInGame = settings->value("interface/visualdeckstorageingame", true).toBool();
|
||||
visualDeckStorageSelectionAnimation =
|
||||
settings->value("interface/visualdeckstorageselectionanimation", true).toBool();
|
||||
openInVisualDeckEditor = settings->value("interface/openInVisualDeckEditor", true).toBool();
|
||||
visualDatabaseDisplayFilterToMostRecentSetsEnabled =
|
||||
settings->value("interface/visualdatabasedisplayfiltertomostrecentsetsenabled", true).toBool();
|
||||
visualDatabaseDisplayFilterToMostRecentSetsAmount =
|
||||
|
|
@ -791,6 +792,12 @@ void SettingsCache::setVisualDeckStorageSelectionAnimation(QT_STATE_CHANGED_T va
|
|||
emit visualDeckStorageSelectionAnimationChanged(visualDeckStorageSelectionAnimation);
|
||||
}
|
||||
|
||||
void SettingsCache::setOpenInVisualDeckEditor(QT_STATE_CHANGED_T value)
|
||||
{
|
||||
openInVisualDeckEditor = value;
|
||||
settings->setValue("interface/openInVisualDeckEditor", openInVisualDeckEditor);
|
||||
}
|
||||
|
||||
void SettingsCache::setVisualDatabaseDisplayFilterToMostRecentSetsEnabled(QT_STATE_CHANGED_T _enabled)
|
||||
{
|
||||
visualDatabaseDisplayFilterToMostRecentSetsEnabled = _enabled;
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ private:
|
|||
bool visualDeckStorageAlwaysConvert;
|
||||
bool visualDeckStorageInGame;
|
||||
bool visualDeckStorageSelectionAnimation;
|
||||
bool openInVisualDeckEditor;
|
||||
bool visualDatabaseDisplayFilterToMostRecentSetsEnabled;
|
||||
int visualDatabaseDisplayFilterToMostRecentSetsAmount;
|
||||
bool horizontalHand;
|
||||
|
|
@ -488,6 +489,10 @@ public:
|
|||
{
|
||||
return visualDeckStorageSelectionAnimation;
|
||||
}
|
||||
bool getOpenInVisualDeckEditor() const
|
||||
{
|
||||
return openInVisualDeckEditor;
|
||||
}
|
||||
bool getVisualDatabaseDisplayFilterToMostRecentSetsEnabled() const
|
||||
{
|
||||
return visualDatabaseDisplayFilterToMostRecentSetsEnabled;
|
||||
|
|
@ -839,6 +844,7 @@ public slots:
|
|||
void setVisualDeckStorageAlwaysConvert(bool _visualDeckStorageAlwaysConvert);
|
||||
void setVisualDeckStorageInGame(QT_STATE_CHANGED_T value);
|
||||
void setVisualDeckStorageSelectionAnimation(QT_STATE_CHANGED_T value);
|
||||
void setOpenInVisualDeckEditor(QT_STATE_CHANGED_T value);
|
||||
void setVisualDatabaseDisplayFilterToMostRecentSetsEnabled(QT_STATE_CHANGED_T _enabled);
|
||||
void setVisualDatabaseDisplayFilterToMostRecentSetsAmount(int _amount);
|
||||
void setHorizontalHand(QT_STATE_CHANGED_T _horizontalHand);
|
||||
|
|
|
|||
|
|
@ -256,6 +256,9 @@ void SettingsCache::setVisualDeckStorageInGame(QT_STATE_CHANGED_T /* value */)
|
|||
void SettingsCache::setVisualDeckStorageSelectionAnimation(QT_STATE_CHANGED_T /* value */)
|
||||
{
|
||||
}
|
||||
void SettingsCache::setOpenInVisualDeckEditor(QT_STATE_CHANGED_T /* value */)
|
||||
{
|
||||
}
|
||||
void SettingsCache::setVisualDatabaseDisplayFilterToMostRecentSetsEnabled(QT_STATE_CHANGED_T /* _enabled */)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -260,6 +260,9 @@ void SettingsCache::setVisualDeckStorageInGame(QT_STATE_CHANGED_T /* value */)
|
|||
void SettingsCache::setVisualDeckStorageSelectionAnimation(QT_STATE_CHANGED_T /* value */)
|
||||
{
|
||||
}
|
||||
void SettingsCache::setOpenInVisualDeckEditor(QT_STATE_CHANGED_T /* value */)
|
||||
{
|
||||
}
|
||||
void SettingsCache::setVisualDatabaseDisplayFilterToMostRecentSetsEnabled(QT_STATE_CHANGED_T /* _enabled */)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue