projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
660b029
)
Move hint up in preparation for state mode display (i.e. puzzle vs difficulty).
author
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 11:50:55 +0000
(13:50 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 11:51:09 +0000
(13:51 +0200)
naja/widgets/info_area.py
patch
|
blob
|
history
diff --git
a/naja/widgets/info_area.py
b/naja/widgets/info_area.py
index a122b6fdef08c4dfa1b782590b9584218b4f9d61..f6fde804c2e22aaaf2cd2e7e6e93d8eeca75f60a 100644
(file)
--- a/
naja/widgets/info_area.py
+++ b/
naja/widgets/info_area.py
@@
-6,7
+6,7
@@
import pygame.locals as pgl
from naja.constants import (
INFO_SIZE, ACT, KEYS, EXAMINE, PALETTE,
from naja.constants import (
INFO_SIZE, ACT, KEYS, EXAMINE, PALETTE,
- ACTION_TEXT_OFFSET, INFO_LEFT_PADDING)
+ ACTION_TEXT_OFFSET, INFO_LEFT_PADDING
, BIT_SIZE
)
from naja.events import finish_event
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT, blender
from naja.events import finish_event
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT, blender
@@
-80,7
+80,7
@@
class InfoAreaWidget(Widget):
box_width=(INFO_SIZE[0] - INFO_LEFT_PADDING - 8))
hint.prepare()
y_offset = (
box_width=(INFO_SIZE[0] - INFO_LEFT_PADDING - 8))
hint.prepare()
y_offset = (
- INFO_SIZE[1] - hint.surface.get_rect().height -
INFO_LEFT_PADDING
+ INFO_SIZE[1] - hint.surface.get_rect().height -
BIT_SIZE[1]
- 2)
self.surface.blit(hint.surface, (INFO_LEFT_PADDING, y_offset))
- 2)
self.surface.blit(hint.surface, (INFO_LEFT_PADDING, y_offset))