Skinning oxo
-------------

Each skin has it's own sub folder, the name of the skin is the folder name in the "skins" folder.
Skinning oxo is based on a simple text file (config.txt), it requires 18 entries.
Each line has a uniquie letter to identify what it is.
The entries can be in any order you like, although the "alpha colour" (entry "e") should be before any images, otherwise oxo will use Black as the key colour for the graphics.

The only restrictions on the graphics is the main screen, this really needs to be 320 by 240, otherwise it'll look a little odd on screen.

Configuration items
--------------------

a - main screen
	This is the main screen of oxo, needs to contain the grid and instructions for use.
	Can be any format that the SDL supports in the SDL_image although PNGs were used for tesing
	
	Example - a=background.png

b - O and X images
	These images can be anything you want!  They don't need to be O and X (see the "other" skin)
	The background colour for these items should be the Alpha colour (item e) so that it becomes see thru.

	Example - b=images.png

c - Diagonal line (bottom left to top right)
	Couldn't find a way to draw these in code, so used an image!
	Again the background should be the alpha colour (item e)

	Example - c=diag1.png

d - Diagonal line (top left to bottom right)
	As above, going the other way

	Example - d=diag2.png

e - Alpha Colour
	The colour loaded images will have set to a Key colour, needs to be Hex digits, in order Red, Green, Blue.  Seperated by commas

	Example - e=00,FF,00

f - Text Colour
	This is the colour of the text used to display the scores
	Again this is Hex digits, seperated by commas

	Example - f=00,00,00

g - X Score Block
	This is a 4 blocks of 3 digits, comma seperated.  It's the location and size of the X score block.
	X Pos,Y Pos,Width,Height

	Example - g=126,191,032,014

h - O Score Block
	As g, but for the O score block

i - Draws Score Block
	As g, but for the draws score block

j - Position to draw the X score
	2 lots of 3 digits, comma seperated.  This is the position on screen to draw the score for the X player.
	This should be somewhere in the X score block (otherwise it won't get cleared between updates)

	Example - j=128,192

k - Position to draw the O score
	As j, but for the O score

l - Position to draw the Draws score
	as j, but for the Draws score

m - O Sprite specification
	This is X and Y position of the O sprite in the file specifed in "b", followed by the Width and Height of the image.  All numbers are seperated by commas
	All numbers are 3 digits

	Example - m=000,000,030,030

n - X Sprite specification
	as m, but for the X sprite

o - Coordinates of the 9 Squares
	These are the coordinates of the top-left of each sqaure of the 9 in the grid.
	Each set of coords are 3 digits comma 3 digits.
	Each square set is seperated by a pipe (|)

	Example - o=010,010|040,010|  (and so on)

p - Square size
	More 3 digit numbers, this time telling oxo how large each square is.
	They should all be the same as this is used to work out where to put the winning line

	Example - p=030,030

r - Background colour
	Hex digits, comma seperated, for the colour of the background around the score blocks and the main grid.
	It's used when moving the cursor and blanking out the scores before displaying the new ones.

	Example - r=00,FF,00

s - Player Select graphics
	This is a graphic containing the 3 player types.  "Human", "Random AI" and "Unbeatable AI"
	They can be any size you want (within reason), the sizes are specified in item "t"

	Example - s=players.png

t - Player Select sizes
	3 digits for the graphic size (Width, then Height).  Followed by the X and Y coorindates for the 3 lines.
	Easier to look at the supplied config file than explain this one.

	Example - t=054,012,000,000,000,012,000,024

u - Postion for Player selection
	3 digit X,Y position for the graphics above.

	Exmaple - u=085,205,150,205

v - Highlight Colour for players
	3 Sets of Hex digits for the colour to highlight which player is currently selected

	Example - v=FF,00,FF

w - Horizontal Line Graphic
	File name for the graphic to display when a winning line occurs on the horizontal

	Example - w=lineone.png

x - Vertical Line Graphic
	File name for the graphic to display when a winning line occurs on the vertical

	Example - x=linetwo.png

y - Font for Scoring
	This named font will be used to draw the scores to the screen.
	It should be a TTF font, stored in the same folder as your skin files

	Example - y=comic.ttf

z - Font Size
	This is a 3 digit number stating the size of your selected font you want to use.

	Example - z=018


Any lines entered into the config file that don't start with the one of those letters is ignored.
Two of any entry will make the config file loading fail (There is a count kept of how many items have been loaded)
I found the easiest way to get the coords was to load the image into MSPaint (or Linux equivelant!) move the cursor to where you want and read of the X,Y coords in the bottom right.

Make a folder in the "skins" folder (named what ever you), then put your 7 graphics, Font file and config.txt in there.
See the main readme.txt for instructions on launching oxo with a skin.

For testing skins, I would recommend the Windows version of oxo, as this writes out all the "printfs" that are used for debugging to a file.  It'll tell you where it's failing.  You can get that version on the site listed in the readme.txt