changeset 274:bee12aed1f68

custom sell cursor
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 05 Sep 2009 14:13:40 +0000
parents b13c2f0be9a3
children 678be1afc307
files data/cursors/sell_cursor.xbm data/sprites/sell_cursor.svg regenerate_pngs.py
diffstat 3 files changed, 8 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/data/cursors/sell_cursor.xbm	Sat Sep 05 14:13:16 2009 +0000
+++ b/data/cursors/sell_cursor.xbm	Sat Sep 05 14:13:40 2009 +0000
@@ -1,9 +1,8 @@
-#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
-};
+#define sell_cursor_width 16
+#define sell_cursor_height 16
+#define sell_cursor_x_hot 8
+#define sell_cursor_y_hot 8
+static unsigned char sell_cursor_bits[] = {
+   0xe0, 0x07, 0x18, 0x1c, 0x84, 0x30, 0xe2, 0x63, 0x92, 0x64, 0x91, 0xc4,
+   0x91, 0xc0, 0xe1, 0xc0, 0x81, 0xc3, 0x81, 0xc4, 0x91, 0xc4, 0x92, 0x64,
+   0xe2, 0x63, 0x84, 0x30, 0x18, 0x1c, 0xe0, 0x07 };
--- a/data/sprites/sell_cursor.svg	Sat Sep 05 14:13:16 2009 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-<?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/regenerate_pngs.py	Sat Sep 05 14:13:16 2009 +0000
+++ b/regenerate_pngs.py	Sat Sep 05 14:13:40 2009 +0000
@@ -93,7 +93,6 @@
 CURSORS = [
     ("chkn", 16, 16),
     ("egg", 16, 16),
-    ("sell_cursor", 24, 24),
     ]
 
 if __name__ == "__main__":