Mercurial > rinkhals
annotate gamelib/cursors.py @ 447:f04a2490c35f
The sub-toolbar rewrite, the finally not crashing version
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 19:58:49 +0000 |
parents | 71f5897ac5ef |
children |
rev | line source |
---|---|
162 | 1 """Data for the in game cursors""" |
2 | |
3 import pygame | |
4 | |
5 import data | |
6 | |
7 | |
8 cursors = { | |
9 'arrow' : pygame.cursors.arrow, | |
10 'select' : pygame.cursors.broken_x, | |
272
cade64404997
Use (wrecking) ball for smashing down trees.
Simon Cross <hodgestar@gmail.com>
parents:
258
diff
changeset
|
11 'ball': pygame.cursors.ball, |
162 | 12 } |
13 | |
14 for tag, filename in [ | |
15 ('chicken', 'cursors/chkn.xbm'), | |
258 | 16 ('sell', 'cursors/sell_cursor.xbm'), |
378
71f5897ac5ef
Fences are now buildings, with appropriate (but ugly) UI changes.
Jeremy Thurgood <firxen@gmail.com>
parents:
272
diff
changeset
|
17 ('repair', 'cursors/repair_cursor.xbm'), |
162 | 18 ]: |
19 path = data.filepath(filename) | |
20 # pygame 1.8 needs the file twice to do the right thing | |
21 # XXX: check behaviour with pygame 1.9 | |
22 cursors[tag] = pygame.cursors.load_xbm(path, path) | |
23 | |
24 |