# HG changeset patch # User Neil Muller # Date 1315950736 -7200 # Node ID 77f1dae64019116abf5e7cb019c7af2bb8b01a0d # Parent fc6844f7a1e8d6deb0aff44727b32c511c15afba Use name in editor diff -r fc6844f7a1e8 -r 77f1dae64019 mamba/habitats/editor.py --- a/mamba/habitats/editor.py Tue Sep 13 23:52:06 2011 +0200 +++ b/mamba/habitats/editor.py Tue Sep 13 23:52:16 2011 +0200 @@ -49,7 +49,7 @@ button_padding = 10 levelname = TextWidget( (button_left, button_height), - 'Level: %s' % 'Placeholder', color='white') + 'Level: %s' % self.level.name, color='white') self.container.add(levelname) button_height += levelname.surface.get_height() + button_padding @@ -71,9 +71,13 @@ continue if tile is None: continue + if tile.name: + text = tile.name + else: + text = 'Tile' tile_button = ImageButtonWidget( (button_left, button_height), tile.image, - 'Tile', color='white') + text, color='white') self.container.add(tile_button) button_height += \ tile_button.surface.get_height() + button_padding