Mercurial > mamba
changeset 170:77f1dae64019
Use name in editor
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Tue, 13 Sep 2011 23:52:16 +0200 |
parents | fc6844f7a1e8 |
children | 4c60f732ffc9 |
files | mamba/habitats/editor.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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