text_colour = PALETTE.BLACK if action_viable else PALETTE.GREY
text = TextBoxWidget(
- (x_offset, y_offset), action.get_text(),
+ (x_offset, y_offset), action.get_text(self.card),
box_width=(INFO_SIZE[0] - 16) // EIGHT_BIT_SCALE,
fontsize=28, colour=text_colour)
text.render(self.surface)