Im working now, so far i finished something that will push the colors to the swatches
and I've also finished something that will interpet things sent from the Python Server and translating it into...
A bunch of variables!
-
Right now, things come in like this:
so, for a player, in the middle of the map
9 9 PIC 0 255 0 player.png Interactive Stats
What that means
"9 9" Position, simple
"PIC 0 255 0 player.png"
If PIC is not there, then it wont end with a picture file and it will just be a color (RGB)
if pic is there, in this case it is, the last word will be a picture file (in this case player.png).
"Interactive" indicates that when you click on this object a GUI will pop up, it also means you can't walk through it. The other ones are Collision (you just can't walk on it), and Scenery (you can walk on it, mostly just grass, sand, dirt, water (there will be a different picture for this one), etc.
The last word, is for Interactive, is GUI. There are a few GUIs. In this case it is "Stats" which means if you click on this player, you will have a little dialog that shows his stats. If it is let's say Buy_Sell, it will open up the Buy/Sell GUI, indicating that it is a shop keeper. The ones are "Buy_Sell/Attack/Transport_Wizard/Save_Load/Reset/Chat/None/Stats" (copy and pasted from a comment)
That is all. Also recieving data from the TCP is almost finished. There is a few lines left for ending it, and then it's done babe.