# HG changeset patch # User Simon Cross # Date 1252156315 0 # Node ID d564ae2584716d8bc73f7410446342583c1a5fb6 # Parent fcaae2cfe3cd1109d10fdf720d52d1f60645f430 Add sell xbm cursor. diff -r fcaae2cfe3cd -r d564ae258471 TODO --- a/TODO Sat Sep 05 13:00:09 2009 +0000 +++ b/TODO Sat Sep 05 13:11:55 2009 +0000 @@ -2,11 +2,7 @@ * Still need cursors/sprites for: -- Cut Trees - -- Sell ... - -- Chicken (too similar to move) - -- Egg (too similar to move) - -- Building (too similar to move) - -- Equipment + -- Improve sell cursor * Still price text for: -- Cut Trees diff -r fcaae2cfe3cd -r d564ae258471 data/cursors/sell_cursor.xbm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/cursors/sell_cursor.xbm Sat Sep 05 13:11:55 2009 +0000 @@ -0,0 +1,9 @@ +#define im_width 24 +#define im_height 24 +static char im_bits[] = { +0x1f,0x00,0x00,0xff,0x00,0x00,0xff,0x07,0x00,0xff,0x3f,0x00,0xff,0x3b,0x00, +0xfe,0x39,0x00,0xfe,0xff,0x01,0xfe,0xff,0x03,0xbe,0xbb,0x03,0x9c,0xbb,0x03, +0x8c,0x3f,0x00,0x80,0x3f,0x00,0x80,0xff,0x00,0x00,0xfe,0x01,0x00,0xf8,0x03, +0x00,0xf8,0x03,0x80,0xb9,0x03,0x80,0xb9,0x03,0x80,0xfb,0x03,0x80,0xff,0x03, +0x00,0xff,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00 +}; diff -r fcaae2cfe3cd -r d564ae258471 data/sprites/sell_cursor.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/sprites/sell_cursor.svg Sat Sep 05 13:11:55 2009 +0000 @@ -0,0 +1,26 @@ + + + + + + + + + diff -r fcaae2cfe3cd -r d564ae258471 gamelib/cursors.py --- a/gamelib/cursors.py Sat Sep 05 13:00:09 2009 +0000 +++ b/gamelib/cursors.py Sat Sep 05 13:11:55 2009 +0000 @@ -12,6 +12,7 @@ for tag, filename in [ ('chicken', 'cursors/chkn.xbm'), + ('sell', 'cursors/sell_cursor.xbm'), ]: path = data.filepath(filename) # pygame 1.8 needs the file twice to do the right thing diff -r fcaae2cfe3cd -r d564ae258471 gamelib/gameboard.py --- a/gamelib/gameboard.py Sat Sep 05 13:00:09 2009 +0000 +++ b/gamelib/gameboard.py Sat Sep 05 13:11:55 2009 +0000 @@ -84,13 +84,13 @@ self.add_heading("Sell ...") self.add_tool_button("Chicken", constants.TOOL_SELL_CHICKEN, - cursors.cursors['select']) + cursors.cursors['sell']) self.add_tool_button("Egg", constants.TOOL_SELL_EGG, - cursors.cursors['select']) + cursors.cursors['sell']) self.add_tool_button("Building", constants.TOOL_SELL_BUILDING, - cursors.cursors['select']) + cursors.cursors['sell']) self.add_tool_button("Equipment", constants.TOOL_SELL_EQUIPMENT, - cursors.cursors['select']) + cursors.cursors['sell']) self.add_spacer(20) self.add_heading("Buy ...") diff -r fcaae2cfe3cd -r d564ae258471 regenerate-pngs.py --- a/regenerate-pngs.py Sat Sep 05 13:00:09 2009 +0000 +++ b/regenerate-pngs.py Sat Sep 05 13:11:55 2009 +0000 @@ -89,6 +89,7 @@ cursors = [ ("chkn", 16, 16), ("egg", 16, 16), + ("sell_cursor", 24, 24), ] process_svg_folder("data/tiles", 20, 20)