projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Perform selected action.
[naja.git]
/
naja
/
widgets
/
info_area.py
diff --git
a/naja/widgets/info_area.py
b/naja/widgets/info_area.py
index 2a4d06b69e2ca5082ccd2508f4f27bcb7461212d..317dfc631cf34ce52ce8d4aa0b7bf3f12be43d5e 100644
(file)
--- a/
naja/widgets/info_area.py
+++ b/
naja/widgets/info_area.py
@@
-84,8
+84,8
@@
class InfoAreaWidget(Widget):
if ev.type == pgl.KEYDOWN:
if ev.key in (pgl.K_RETURN, pgl.K_KP_ENTER):
self.state.gameboard.change_mode()
if ev.type == pgl.KEYDOWN:
if ev.key in (pgl.K_RETURN, pgl.K_KP_ENTER):
self.state.gameboard.change_mode()
- # FIXME: also need to signal the correct action
- # here
+ self.card.actions[self.chosen].perform_action(
+ self.state.gameboard, self.card)
InvalidateTheWorld.post()
return True
if ev.key in (pgl.K_UP, pgl.K_w):
InvalidateTheWorld.post()
return True
if ev.key in (pgl.K_UP, pgl.K_w):