Cockatrice/cockatrice/src
J. Cameron McDonald b9ed9a6c0b
feat: set prioritization by set type (#5097)
* feat: prefer 'Core' and 'Expansion' sets for prioritization

* rework set prioritization

* clean up priority enum

* formatting

* revert changes to CockatriceXml3Parser

* re-add missing null check

* remove priority fallback ternary from CardSet model

* make defaultSort logic easier to follow

* revert changes to v3 card database xsd

* remove unused invisible priority col from sets dialog

* move draft innovation and duel deck sets to secondary prio

* minor fixes

* change PriorityFallback to 1

* make priority optional in xml

* remove PriorityUndefined and set PriorityFallback to 0

* set priority when not found to PriorityOther

in case a new set type is added it's unlikey we want it sorted first,
it'll probably be a new product so it's probably best to sort it with
the funny things

* simplify sort function

---------

Co-authored-by: tooomm <tooomm@users.noreply.github.com>
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2024-12-01 19:59:00 -05:00
..
client feat: set prioritization by set type (#5097) 2024-12-01 19:59:00 -05:00
deck Multiple Printings per Deck (#5171) 2024-11-18 21:56:44 -05:00
dialogs feat: set prioritization by set type (#5097) 2024-12-01 19:59:00 -05:00
game feat: set prioritization by set type (#5097) 2024-12-01 19:59:00 -05:00
server fix the timezones used for the user info box and add comments (#5162) 2024-11-05 14:54:38 -05:00
settings store sort option in settings as QComboBox index instead of enum value (#5207) 2024-11-29 22:46:16 -05:00
utility Change CardInfo's PixmapCacheKey to be the UUID of the card in the preferred set after database loading has finished. Otherwise, and if no UUID of a preferred set is available, default to the card name. (#5158) 2024-11-10 17:49:11 -05:00
main.cpp Refactor CardDatabase *db global variable to singleton CardDatabaseManager. (#5159) 2024-11-05 19:32:59 +01:00
main.h Add backwards support Qt6.7's checkStateChanged on QCheckBoxes (#5137) 2024-10-20 23:35:34 -04:00