home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow toggling of map control preset drawing.
[plomrogue2]
/
plomrogue
/
commands.py
diff --git
a/plomrogue/commands.py
b/plomrogue/commands.py
index c86aebe402ad5c1c6d5fadc776ad6e429d5092ed..921d6e011c498744bb64659925be7cce66ffb140 100644
(file)
--- a/
plomrogue/commands.py
+++ b/
plomrogue/commands.py
@@
-410,3
+410,7
@@
def cmd_THING_CRATE_ITEM(game, crate_id, item_id):
raise GameError('thing of ID %s is a crate' % item_id)
crate.accept(item)
cmd_THING_CRATE_ITEM.argtypes = 'int:pos int:pos'
raise GameError('thing of ID %s is a crate' % item_id)
crate.accept(item)
cmd_THING_CRATE_ITEM.argtypes = 'int:pos int:pos'
+
+def cmd_MAP_CONTROL_PRESETS(game, draw_control_presets):
+ game.draw_control_presets = draw_control_presets
+cmd_MAP_CONTROL_PRESETS.argtypes = 'bool'