self.required_bits = required_bits
self.data = data
+ def get_glyphs(self):
+ return self.GLYPHS
+
def get_text(self, location=None):
substitutions = self.data.copy()
else:
glyphs_x_offset = INFO_LEFT_PADDING
- for glyph in action.GLYPHS:
+ for glyph in action.get_glyphs():
img = resources.get_image(
glyph, transforms=(EIGHT_BIT, blender(PALETTE.GREY)))
self.surface.blit(img, (glyphs_x_offset, glyphs_y_offset - 4))
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()