X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftile.py;h=9e8fe8508056dae9bc61a4e93ccd547c772514d9;hb=51c21cef44d0a7f3cb59f4a005d4a1dba9159d51;hp=cf6f04c92d4ef498163dc1f694ff6255fca46af7;hpb=0d7c75c57d85f809aad2db5c740341e2c3db011c;p=naja.git diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index cf6f04c..9e8fe85 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -117,13 +117,13 @@ class TileWidget(Widget): def _prepare_action(self, action, y_offset): x_offset = self._prepare_lock(action, y_offset) if self.board_pos != self.state.player.position: - for glyph in action.GLYPHS: + for glyph in action.get_glyphs(): img = resources.get_image(glyph, transforms=(EIGHT_BIT,)) self.surface.blit(img, (x_offset, y_offset + 4)) x_offset += img.get_width() - if action.MSB_GLYPH is not None: + if action.get_msb_glyph() is not None: img = resources.get_image( - action.MSB_GLYPH, + action.get_msb_glyph(), transforms=(EIGHT_BIT, blender(PALETTE.LIGHT_VIOLET))) self.surface.blit(img, (x_offset, y_offset + 4)) x_offset += img.get_width()