mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 08:52:19 -07:00
[DeckEditor] Use CommanderSpellbook.com to estimate bracket if format is 'commander'
Took 2 minutes Took 16 minutes
This commit is contained in:
parent
e9eab328a4
commit
b0035d41cb
32 changed files with 1634 additions and 7 deletions
|
|
@ -214,3 +214,29 @@ void CardsDisplaySettings::setSampleHandSize(int _sampleHandSize)
|
|||
setValue(_sampleHandSize, "sampleHandSize", "cards", "cardSize");
|
||||
emit sampleHandSizeChanged(_sampleHandSize);
|
||||
}
|
||||
|
||||
int CardsDisplaySettings::getDeckEditorCommanderSpellbookIntegrationEnabled() const
|
||||
{
|
||||
return getValue("deckeditorcommanderspellbookintegrationenabled", "interface", QString(),
|
||||
deckEditorCommanderSpellbookIntegrationEnabledIndexUnprompted)
|
||||
.toInt();
|
||||
}
|
||||
|
||||
bool CardsDisplaySettings::getDeckEditorCommanderSpellbookIntegrationUseOfficialBracketNames() const
|
||||
{
|
||||
return getValue("deckeditorcommanderspellbookintegrationuseofficialbracketnames", "interface", QString(), false)
|
||||
.toBool();
|
||||
}
|
||||
|
||||
void CardsDisplaySettings::setDeckEditorCommanderSpellbookIntegrationEnabled(int _enabled)
|
||||
{
|
||||
setValue(_enabled, "deckeditorcommanderspellbookintegrationenabled", "interface");
|
||||
emit deckEditorCommanderSpellbookIntegrationEnabledChanged(_enabled);
|
||||
}
|
||||
|
||||
void CardsDisplaySettings::setDeckEditorCommanderSpellbookIntegrationUseOfficialBracketNames(
|
||||
bool _useOfficialBracketNames)
|
||||
{
|
||||
setValue(_useOfficialBracketNames, "deckeditorcommanderspellbookintegrationuseofficialbracketnames", "interface");
|
||||
emit deckEditorCommanderSpellbookIntegrationUseOfficialBracketNamesChanged(_useOfficialBracketNames);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue