mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
[Game] Playmats
Took 19 seconds Took 1 minute
This commit is contained in:
parent
74a454552a
commit
92c8f1a1a1
29 changed files with 967 additions and 12 deletions
|
|
@ -160,6 +160,11 @@ bool InterfaceSettings::getShowGameSelectorFilterToolbar() const
|
|||
return getValue("showGameSelectorFilterToolbar", QString(), QString(), true).toBool();
|
||||
}
|
||||
|
||||
int InterfaceSettings::getPlaymatVisibility() const
|
||||
{
|
||||
return getValue("playmatvisibility", QString(), QString(), 2).toInt();
|
||||
}
|
||||
|
||||
bool InterfaceSettings::getLifeCounterAnimationsEnabled() const
|
||||
{
|
||||
return getValue("lifeCounterAnimationsEnabled", QString(), QString(), true).toBool();
|
||||
|
|
@ -343,6 +348,15 @@ void InterfaceSettings::setShowGameSelectorFilterToolbar(bool _showGameSelectorF
|
|||
emit showGameSelectorFilterToolbarChanged(_showGameSelectorFilterToolbar);
|
||||
}
|
||||
|
||||
void InterfaceSettings::setPlaymatVisibility(int _visibility)
|
||||
{
|
||||
if (getPlaymatVisibility() == _visibility) {
|
||||
return;
|
||||
}
|
||||
setValue(_visibility, "playmatvisibility");
|
||||
emit playmatVisibilityChanged(_visibility);
|
||||
}
|
||||
|
||||
void InterfaceSettings::setLifeCounterAnimationsEnabled(bool _lifeCounterAnimationsEnabled)
|
||||
{
|
||||
setValue(_lifeCounterAnimationsEnabled, "lifeCounterAnimationsEnabled");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue