Mercurial > rinkhals
changeset 258:d564ae258471
Add sell xbm cursor.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 13:11:55 +0000 |
parents | fcaae2cfe3cd |
children | 2b7212c001d9 |
files | TODO data/cursors/sell_cursor.xbm data/sprites/sell_cursor.svg gamelib/cursors.py gamelib/gameboard.py regenerate-pngs.py |
diffstat | 6 files changed, 42 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- /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 +};
--- /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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + version="1.0" + width="31.472279" + height="41.559681" + id="svg2"> + <defs + id="defs4" /> + <g + transform="translate(-262.85115,-491.43086)" + id="layer1"> + <path + d="M 279.32031,534.3491 C 280.79165,534.21889 281.91144,533.79571 282.67969,533.07957 C 283.46092,532.36342 283.85154,531.38686 283.85156,530.14988 C 283.85154,529.03009 283.46743,528.07957 282.69922,527.29832 C 281.93097,526.51708 280.80467,525.92463 279.32031,525.52097 L 279.32031,534.3491 M 277.36719,512.49363 C 276.02603,512.5848 274.98437,512.97542 274.24219,513.6655 C 273.49999,514.34261 273.1289,515.25407 273.12891,516.39988 C 273.1289,517.44156 273.46744,518.30745 274.14453,518.99754 C 274.83463,519.68766 275.90884,520.24755 277.36719,520.67722 L 277.36719,512.49363 M 269.28125,534.27097 L 269.28125,528.88035 L 271.39062,528.88035 C 271.4427,530.66421 271.96354,532.01186 272.95312,532.92332 C 273.9427,533.83478 275.41405,534.31004 277.36719,534.3491 L 277.36719,524.87644 C 274.37239,524.04312 272.26952,523.08609 271.05859,522.00535 C 269.84765,520.91161 269.24218,519.4663 269.24219,517.66941 C 269.24218,515.5861 269.95833,513.91292 271.39062,512.64988 C 272.82291,511.38688 274.8151,510.67725 277.36719,510.52097 L 277.36719,505.2866 L 279.32031,505.2866 L 279.32031,510.52097 C 280.6354,510.62516 281.89842,510.84001 283.10938,511.1655 C 284.33331,511.47803 285.52472,511.90121 286.68359,512.43504 L 286.68359,517.55222 L 284.55469,517.55222 C 284.39842,516.04183 283.87108,514.85042 282.97266,513.978 C 282.0742,513.10563 280.85676,512.61084 279.32031,512.49363 L 279.32031,521.32175 C 282.52342,522.19416 284.763,523.19677 286.03906,524.32957 C 287.3281,525.44937 287.97263,526.95327 287.97266,528.84129 C 287.97263,531.00275 287.21743,532.73452 285.70703,534.0366 C 284.1966,535.33868 282.06769,536.08738 279.32031,536.28269 L 279.32031,541.55613 L 277.36719,541.55613 L 277.36719,536.28269 C 276.11718,536.25665 274.82161,536.07436 273.48047,535.73582 C 272.13932,535.4103 270.73958,534.92202 269.28125,534.27097" + transform="translate(6.3507659,-8.5655862)" + id="flowRoot2383" + style="font-size:40px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:DejaVu Serif;-inkscape-font-specification:DejaVu Serif" /> + <path + d="M 172.37958,376.30215 L 168.37115,360.28195 L 184.24927,364.82065 L 172.37958,376.30215 z" + transform="translate(95.479993,132.14891)" + id="path2403" + style="opacity:1;fill:#ff0000;fill-opacity:1;fill-rule:nonzero;stroke:#ff0000;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + </g> +</svg>
--- 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
--- 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 ...")