mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
[DeckEditor] Show card counts in Visual Deck Editor banners
This commit is contained in:
parent
7a2492ac67
commit
709650c85a
10 changed files with 108 additions and 13 deletions
|
|
@ -90,6 +90,11 @@ int CardsDisplaySettings::getVisualDeckEditorCardSize() const
|
|||
return getValue("visualDeckEditor", "cards", "cardSize", 100).toInt();
|
||||
}
|
||||
|
||||
bool CardsDisplaySettings::getVisualDeckEditorShowCardCounts() const
|
||||
{
|
||||
return getValue("visualDeckEditorShowCardCounts", QString(), QString(), true).toBool();
|
||||
}
|
||||
|
||||
int CardsDisplaySettings::getEDHRecCardSize() const
|
||||
{
|
||||
return getValue("edhrec", "cards", "cardSize", 100).toInt();
|
||||
|
|
@ -217,6 +222,15 @@ void CardsDisplaySettings::setVisualDeckEditorCardSize(int _cardSize)
|
|||
emit visualDeckEditorCardSizeChanged();
|
||||
}
|
||||
|
||||
void CardsDisplaySettings::setVisualDeckEditorShowCardCounts(bool _showCardCounts)
|
||||
{
|
||||
if (_showCardCounts == getVisualDeckEditorShowCardCounts()) {
|
||||
return;
|
||||
}
|
||||
setValue(_showCardCounts, "visualDeckEditorShowCardCounts");
|
||||
emit visualDeckEditorShowCardCountsChanged(_showCardCounts);
|
||||
}
|
||||
|
||||
void CardsDisplaySettings::setEDHRecCardSize(int _edhrecCardSize)
|
||||
{
|
||||
setValue(_edhrecCardSize, "edhrec", "cards", "cardSize");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue