First Card image push. Looking good so far, just need to get transperency working, add the upside down rank, and make sure it works in tkinter
Ranks are now properly transparant on the cards
Added the bottom rank image
Got the images working, had to do a little bit of hack to get the images to persist which, incidentally, ment the cards cannot be sent. I made the PhotoImage an attribute of the card class, but now the cards cannot be pickled since the PhotoImage object is not pickle-able. Just make an array to store these values I think, and we should be fine. Look around and make sure I did the CardImage class correctly, as I feel like it can be made a lot simplier (Maybe as a subclass? Why wasn't that working?)
Updated CardImage so it acts like a button that auto-generates the image. This also allows the image to no longer be garbaged collected, because we keep an instance of the button which now holds the image (as it rightly should)
Fixed the message that would appear when a player attempted to draw a card. It now says "Player drew a card"
Removed Card_test
Made the client non-resizable
Resized all the cards to be the same size
Merge branch 'Experimental' of https://github.com/timidger/Mao into Experimental
Fixed the spacing for the default phrases
Fixed the bottom rank chunk so that it is in the same place as the top one but flipped
Re-did the Rank chunks
Broke up the card images a bit more, now there is a blank card for black and red cards. The suit symbol is now dynamically added to the card, just like the rank symbol. This will allow it much easier to edit the cards.
Accidentally had the colors of the cards backwards. That was a funny mistake... it could make for a good rule to confuse players...
Added a card image for top card of the pile. As well, the CardImage class now automatically configures itself to use its own image as the button image. Several CardImage's methods have become static methods, as well it is now possible to generate a blank card by passing in an card when either the rank or suit is not defined (None)
Fixed a bizzare bug where the Client would receive the pile list from the server in reverse order, causing the first card in the pile to be improperly displayed
Hacked in a deck image. Next patch I'll spend some time abstracting CardImage (make it easier to make non-playing card images)
Hacked in a deck image. Next patch I'll spend some time abstracting CardImage (make it easier to make non-playing card images)
Altered the suit symbols to look a bit more "clean"