mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 09:35:08 -07:00
[DeckEditor] Replace mainboard/sideboard with tokensboard for tokens (#6971)
* [DeckEditor] Replace mainboard/sideboard with tokensboard for token cards (#6546) * [PrintingSelector] Replace std::tuple with ZoneCounts struct for readability (#6546)
This commit is contained in:
parent
da4ba222c0
commit
f72c82d0f9
11 changed files with 115 additions and 29 deletions
|
|
@ -255,6 +255,10 @@ bool DeckStateManager::swapCardAtIndex(const QModelIndex &idx)
|
|||
}
|
||||
|
||||
QString zoneName = gparent.siblingAtColumn(DeckListModelColumns::CARD_NAME).data(Qt::EditRole).toString();
|
||||
// tokens have no swap target
|
||||
if (zoneName == DECK_ZONE_TOKENS) {
|
||||
return false;
|
||||
}
|
||||
QString otherZoneName = zoneName == DECK_ZONE_MAIN ? DECK_ZONE_SIDE : DECK_ZONE_MAIN;
|
||||
|
||||
QString reason = tr("Moved to %1 1 × \"%2\" (%3)") //
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue