mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
Added option to customize the card back picture
This commit is contained in:
parent
5ee6bdd338
commit
11e1202dcc
8 changed files with 146 additions and 130 deletions
|
|
@ -14,6 +14,7 @@ SettingsCache::SettingsCache()
|
|||
handBgPath = settings->value("zonebg/hand").toString();
|
||||
tableBgPath = settings->value("zonebg/table").toString();
|
||||
playerBgPath = settings->value("zonebg/playerarea").toString();
|
||||
cardBackPicturePath = settings->value("paths/cardbackpicture").toString();
|
||||
|
||||
picDownload = settings->value("personal/picturedownload", false).toBool();
|
||||
doubleClickToPlay = settings->value("interface/doubleclicktoplay", true).toBool();
|
||||
|
|
@ -72,6 +73,13 @@ void SettingsCache::setPlayerBgPath(const QString &_playerBgPath)
|
|||
emit playerBgPathChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setCardBackPicturePath(const QString &_cardBackPicturePath)
|
||||
{
|
||||
cardBackPicturePath = _cardBackPicturePath;
|
||||
settings->setValue("paths/cardbackpicture", cardBackPicturePath);
|
||||
emit cardBackPicturePathChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setPicDownload(int _picDownload)
|
||||
{
|
||||
picDownload = _picDownload;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue