(self)
| 2649 | self.square.opacity = int(255 * factor) |
| 2650 | |
| 2651 | def hide(self): |
| 2652 | if self.visible: |
| 2653 | self.label.text = '' |
| 2654 | self.variable_label.text = '' |
| 2655 | if 'image' in mode.modalities[mode.mode] \ |
| 2656 | or 'vis1' in mode.modalities[mode.mode] \ |
| 2657 | or (mode.flags[mode.mode]['multi'] > 1 and cfg.MULTI_MODE == 'image'): # hide pictogram |
| 2658 | self.square.batch = None |
| 2659 | pyglet.clock.unschedule(self.animate_square) |
| 2660 | elif self.vis == 0: |
| 2661 | if cfg.OLD_STYLE_SQUARES: |
| 2662 | self.square.delete() |
| 2663 | else: |
| 2664 | self.square.batch = None |
| 2665 | pyglet.clock.unschedule(self.animate_square) |
| 2666 | self.visible = False |
| 2667 | |
| 2668 | # Circles is the 3-strikes indicator in the top left corner of the screen. |
| 2669 | class Circles: |
no test coverage detected