comparison gamelib/scenes/game_widgets.py @ 837:bdebe693453f pyntnclick

Track total sentence
author Neil Muller <neil@dip.sun.ac.za>
date Tue, 29 Jan 2013 21:45:27 +0200
parents 43b49f1de828
children
comparison
equal deleted inserted replaced
836:daecbd66d19c 837:bdebe693453f
35 "Utility helper function" 35 "Utility helper function"
36 if game.data.get_jim_state() == 'online': 36 if game.data.get_jim_state() == 'online':
37 return Result(widget=JimLabel(game.gd, mesg)) 37 return Result(widget=JimLabel(game.gd, mesg))
38 else: 38 else:
39 return None 39 return None
40
41
42 def make_sentence_dialog(prisoner, game):
43 return make_jim_dialog(
44 _("Prisoner %(id)s, your total sentence is now %(sen)d years.") % {
45 "id": prisoner, 'sen': game.data.get_total_sentence()}, game)
40 46
41 47
42 class BaseCamera(Thing): 48 class BaseCamera(Thing):
43 "Base class for the camera puzzles" 49 "Base class for the camera puzzles"
44 50