stock, centerItems and setOverlay

Game development with Board Game Arena Studio
Post Reply
User avatar
Posts: 606
Joined: 29 April 2012, 23:43

stock, centerItems and setOverlay

Post by RicardoRix » 07 September 2019, 19:15

I don't believe these 2 functions are working well together.


In the sIde-by-side screenshot:
The left-hand-side has no setOverlay call, while the right-hand-side does.
All the stock items have centerItems set to true.
I've added blue rectangles from css border so you can see the stock items width.

You can see the 'played' box has just 1 card and the is shifted to the right.
When there are many cards like the burnt pile, again it is shifted to the right.
The hand has no setOverlap call and is OK.

Post Reply

Return to “Developers”