Basile Clement
4ada011632
game: Automatic update of arrow position ( #5729 )
...
Currently, zones must keep track of which cards they move in order to
manually call `updatePath` on arrows.
This patch sets the `ItemSendsScenePositionChanges` flag on
`ArrowTarget`s to automatically update arrow positions without requiring
zones to keep track of that information.
2025-03-16 22:58:06 +00:00
RickyRister
c99afe7956
Optimize cipt parsing by early returning ( #5727 )
2025-03-15 21:23:41 +00:00
RickyRister
b58b85dc0f
Re-add old names for mana value property to oracle ( #5711 )
2025-03-15 19:13:13 +00:00
BruebachL
a407c8b956
Reintroduce ability to display unused mana symbol widgets. ( #5726 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-15 19:11:46 +00:00
Basile Clement
1851f71850
Remove revealedCard flag from CardItem ( #5723 )
...
It is no longer used since #5254 .
2025-03-15 19:09:14 +00:00
Basile Clement
e4f40a82a2
Use native hover events ( #5722 )
...
* Use native hover events
* Update cockatrice/src/game/cards/abstract_card_item.cpp
* Reorder
---------
Co-authored-by: Zach H <zahalpern+github@gmail.com>
2025-03-15 19:07:51 +00:00
Basile Clement
b9900e67a6
nix: Add development utilities to shell.nix ( #5725 )
...
- Remove hardening flags to allow debug builds (otherwise GCC complains
because nix adds the FORTIFY_SOURCE flag, which is not compatible
with -O0)
- Allow ninja as build system
- Add clang-tools dependency for LSP support
2025-03-15 19:03:26 +00:00
RickyRister
7d558edb3e
Fix banner and tags not resetting on blank new deck ( #5721 )
...
* Fix bannerWidget not resetting when opening new blank deck
* also reset tags
2025-03-15 18:44:51 +00:00
RickyRister
eb4b1c2a07
Fix extra .cod in "save deck as" default name ( #5720 )
2025-03-15 18:44:03 +00:00
RickyRister
087f88146d
Make internal updater failure message more user-friendly ( #5718 )
2025-03-15 05:19:07 +00:00
RickyRister
3a11ccb854
Update cipt parsing ( #5712 )
...
* refactor
* move thing out
* write unit tests
* get thing to work
* optimization?
* fix build failure
2025-03-14 21:44:13 -04:00
tooomm
068465143b
Update CONTRIBUTING file ( #5701 )
...
* Update CONTRIBUTING.md
* cleanup
* Update CONTRIBUTING.md
2025-03-14 21:43:43 -04:00
tooomm
1f0846297f
websocket is our default port/connection ( #5679 )
2025-03-14 21:43:11 -04:00
RickyRister
4a0e0ed954
Automatically find all files for cockatrice_SOURCES ( #5716 )
...
* Use GLOB_RECURSIVE to find all source files
* fix code style
---------
Co-authored-by: Zach H <zahalpern+github@gmail.com>
2025-03-14 21:42:56 -04:00
RickyRister
4b7d1ebb59
Refactor: split card_database into two files ( #5715 )
...
* make the duplicate
* restore original
* Refactor: split card_database into two files
2025-03-14 00:02:10 +00:00
RickyRister
ec536126b9
Compute deck hashes lazily ( #5707 )
...
* Calculate deck hashes lazily
* rename
2025-03-11 21:43:21 -04:00
Zach H
9b00bdcaea
Merge pull request #5710 from lilyhuang-github/i18n
...
Change prebuild.js to allow i18n-default.json indentation to exist
2025-03-11 21:00:53 -04:00
Lily
da17c68830
Change prebuild.js to allow i18n-default.json indentation to exist
2025-03-11 19:59:20 -04:00
Zach H
badfb483b2
Merge pull request #5703 from RickyRister/5699-fix-printing
...
Show correct printing for top card of library
2025-03-10 20:45:05 -04:00
Zach H
fafe636b7c
Merge pull request #5702 from RickyRister/rename-export-actions
...
Rename some save to clipboard actions
2025-03-10 20:44:33 -04:00
RickyRister
ef15aa2dcd
Show correct printing for top card of library
2025-03-09 05:40:03 -07:00
RickyRister
2d44c9ad2f
Rename some save to clipboard actions
2025-03-08 20:02:32 -08:00
RickyRister
0a1d0f650f
Enable shortcuts for new save to clipboard actions ( #5700 )
...
* Enable shortcuts for new save to clipboard actions
* rename shortcut
2025-03-08 22:41:58 -05:00
RickyRister
2ba7c1ff9a
Fix incorrect deck modified state ( #5698 )
2025-03-08 02:16:59 +00:00
RickyRister
0ecf6298a3
Add actions for shuffle top/bottom X cards ( #5695 )
...
* Add actions for shuffle top/bottom X cards
* fix typo
* move shuffle actions into existing menus
2025-03-08 01:48:48 +00:00
RickyRister
1d11bb19b8
Fix view bottom cards using the wrong default ( #5696 )
2025-03-07 16:17:40 -05:00
RickyRister
ff7f31ca33
add "Set Banner Card" action to VDS right-click menu ( #5692 )
2025-03-05 21:05:34 -05:00
RickyRister
6bb9ae92bf
Update recently opened decks regardless of where the deck is opened from ( #5691 )
2025-03-05 21:04:53 -05:00
ZeldaZach
5238087ddf
Parent bannerCardLabel to avoid popups
2025-03-04 22:45:53 -05:00
RickyRister
08bb18cefe
Fix VDS filters not applying after refresh ( #5662 )
...
* reapply sort and filters after each reset
* fix unflatten folder still not applying afterwards
2025-03-05 00:57:28 +00:00
RickyRister
ecbdd32a2d
Reduce redundant recursion in VDS ( #5664 )
...
* remove recursion from flattenFolderStructure
findChildren is already recursive by default
* only trigger the top-level updateVisibility on filter update
Every folder widget was connecting the filter update signals to their updateVisibility, but updateVisibility is already recursive.
That means a bunch of redundant updateVisibility calls happen every time a filter update signal is emitted
* reduce redundant recursion in updateVisibility
findChildren is recursive by default, so only the top-level updateVisibility needs to loop through the found children
* delete now-unused signals
2025-03-05 00:56:31 +00:00
RickyRister
2f415dcc6e
Add action to Edit Deck via Clipboard ( #5681 )
...
* implement functionality in dlg
* add action to deck editor
* refactor and comments
* is this refactor even a good idea?
* remove the friend class stuff
* reorder
* add option for not annotated
2025-03-05 00:55:05 +00:00
BruebachL
8fc1b22889
Use the new mana symbols. ( #5687 )
...
* Use the new mana symbols.
* Fixup some thangs.
* Lint.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-05 00:53:42 +00:00
BruebachL
85a50ce9d5
Generic mana symbols. ( #5685 )
...
* Generic mana symbols.
* Update black mana symbol skull and symbol color.
* Update white mana symbol contrast.
* Update black mana symbol contrast.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-03 13:12:09 -05:00
BruebachL
b706e26a32
Fix image quality when fractional scaling is applied. ( #5684 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-03 08:40:12 -05:00
BruebachL
15725c67c7
Fix banner widget buddy being uninitialized. ( #5686 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-03 08:38:27 -05:00
RickyRister
d8da4473e2
add rename and delete actions to VDS right-click menu ( #5683 )
2025-03-03 08:35:50 -05:00
RickyRister
e1964f21de
Fix memory leaks from DeckLoader usage ( #5665 )
...
* add comment
* stack allocate DeckLoader for loading tags
* deckModel now takes ownership of DeckLoader
* fix remaining
* add comment
2025-03-02 18:57:30 -05:00
RickyRister
87c5d07807
Switch current tab when opening a single-instance tab ( #5651 )
2025-03-02 09:30:55 -05:00
lilyhuang-github
3d0f4868df
Focus tab for quit game dialog ( #5670 )
2025-03-02 09:29:17 -05:00
BruebachL
56bd11794e
Set modification state correctly. ( #5678 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-02 09:28:16 -05:00
BruebachL
e541b9d572
Silence picture loader warnings for null pixmaps by introducing checks. ( #5677 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-02 09:27:52 -05:00
RickyRister
a7e8c1f59b
Make BannerWidget's dropdown icon more robust ( #5676 )
...
* Make BannerWidget's dropdown icon more robust
* use isHidden
Otherwise, it doesn't work correctly if the BannerWidget is offscreen
* don't show icon if there's no buddy
2025-03-02 09:26:03 -05:00
BruebachL
ec452aabe2
Fallback to regular card name search in case the providerId one fails for the database display widget. ( #5673 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-01 09:22:00 -05:00
RickyRister
2a9599eed8
refactor saveDeckToClipboard in AbstractTabDeckEditor ( #5671 )
...
* refactor saveDeckToClipboard in AbstractTabDeckEditor
* make deckloader functions const
* use const
* move method into DeckLoader
2025-03-01 09:21:31 -05:00
RickyRister
58a2b7ff39
Fix move to top of library shuffling an extra card ( #5672 )
...
* Fix move to top of library shuffling an extra card
* Update cockatrice/src/game/player/player.cpp
---------
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2025-03-01 13:32:07 +01:00
RickyRister
448903efe3
Add tip of the day for Expand Card View Window ( #5666 )
2025-02-28 11:29:09 -05:00
BruebachL
d76e8f9146
Clamp all DeckPreviewWidget children to the card size on resize. ( #5669 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-02-28 11:10:40 -05:00
BruebachL
3620664a9f
Cache correct providerId cards on deck load ( #5668 )
...
* Implement new method for DeckList to return cardlist with providerId, a new carddatabase method to fetch a cardlist with name and providerId and changed PictureLoader to use providerId versions of cards for caching.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-02-28 11:10:06 -05:00
lilyhuang-github
7ff43f15fc
Add hint on version downloading ( #5663 )
2025-02-27 23:34:32 -05:00