Mercurial > boomslang
comparison pyntnclick/gamescreen.py @ 576:1b1ab71535bd pyntnclick
Classify constants, which involves a whole bunch of XXX comments
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 11 Feb 2012 16:02:06 +0200 |
parents | ebb2efcb4ea7 |
children | 7e4a20eb78b8 |
comparison
equal
deleted
inserted
replaced
575:970cdc219e15 | 576:1b1ab71535bd |
---|---|
7 from albow.palette_view import PaletteView | 7 from albow.palette_view import PaletteView |
8 from albow.screen import Screen | 8 from albow.screen import Screen |
9 from pygame import Rect, mouse | 9 from pygame import Rect, mouse |
10 from pygame.color import Color | 10 from pygame.color import Color |
11 | 11 |
12 from pyntnclick.constants import SCREEN, BUTTON_SIZE, SCENE_SIZE, LEAVE | |
13 from pyntnclick.cursor import CursorWidget | 12 from pyntnclick.cursor import CursorWidget |
14 from pyntnclick.state import handle_result | 13 from pyntnclick.state import handle_result |
15 from pyntnclick.widgets import ( | 14 from pyntnclick.widgets import ( |
16 MessageDialog, BoomButton, HandButton, PopupMenu, PopupMenuButton) | 15 MessageDialog, BoomButton, HandButton, PopupMenu, PopupMenuButton) |
16 | |
17 # XXX: Need a way to get at the constants. | |
18 from pyntnclick.constants import GameConstants | |
19 constants = GameConstants() | |
20 SCREEN = constants.screen | |
21 BUTTON_SIZE = constants.button_size | |
22 SCENE_SIZE = constants.scene_size | |
23 LEAVE = constants.leave | |
17 | 24 |
18 | 25 |
19 class InventoryView(PaletteView): | 26 class InventoryView(PaletteView): |
20 | 27 |
21 sel_color = Color("yellow") | 28 sel_color = Color("yellow") |