- # self.chosen may be None, in which case we don't draw the border.
- if choice == self.chosen:
- if not action.check_available(self.state.player):
- colour = (255, 0, 0, 255)
- else:
- colour = (255, 255, 0, 128)
+ border_colour = None
+ if not action.check_available(self.state.player):
+ border_colour = PALETTE.ORANGE + (255,)
+ elif choice == self.chosen:
+ border_colour = PALETTE.PINK + (128,)
+ else:
+ border_colour = PALETTE.GREEN + (128,)
+ if border_colour: