Question about Stock and cards
Posted: 04 May 2020, 03:40
In El Grande players have a deck of cards that are used for bidding at the start of each turn. I am using the Stock JS item to handle the images and of course Cards on the backend.
After my first play through today with my gaming group they had a suggestion for the layout which I had not thought of and I fixed it tonight. In doing so though, I have run into a slight problem that I am sure can be fixed but I am struggling with how to do so.
The cards are sorted from 1 - 13 in order by default. When a player uses a card, it gets removed from their hand and placed into the discard pile. I had been putting them into a different DIV below the currnent hand, however what they would prefer to see is just the cards flipped over in the main "hand" DIV. I have figured out how to remove the card and then put a card "back' if you will at the end of the Stock and display a tool tip that shows the card face. Is there anyway to just flip the card over in place?
Here is a screen shot of what I am talking about.
https://photos.app.goo.gl/h4zvMDW8xHzqkUT29
What I would like to have happen in this image is when the Yellow player used the power card 7 that it would have just "flipped" over and showed the card back between the 6 and 8 cards.
Any help is greatly appreciated!
Thansk!
After my first play through today with my gaming group they had a suggestion for the layout which I had not thought of and I fixed it tonight. In doing so though, I have run into a slight problem that I am sure can be fixed but I am struggling with how to do so.
The cards are sorted from 1 - 13 in order by default. When a player uses a card, it gets removed from their hand and placed into the discard pile. I had been putting them into a different DIV below the currnent hand, however what they would prefer to see is just the cards flipped over in the main "hand" DIV. I have figured out how to remove the card and then put a card "back' if you will at the end of the Stock and display a tool tip that shows the card face. Is there anyway to just flip the card over in place?
Here is a screen shot of what I am talking about.
https://photos.app.goo.gl/h4zvMDW8xHzqkUT29
What I would like to have happen in this image is when the Yellow player used the power card 7 that it would have just "flipped" over and showed the card back between the 6 and 8 cards.
Any help is greatly appreciated!
Thansk!