(dt)
| 4821 | pos += (0,) |
| 4822 | brain_graphic.position = pos |
| 4823 | def scale_brain(dt): |
| 4824 | brain_graphic.scale = dt |
| 4825 | brain_graphic.x = field.center_x - brain_graphic.image.width//2 + scale_to_width(2) + (brain_graphic.image.width - brain_graphic.width) // 2 |
| 4826 | brain_graphic.y = field.center_y - brain_graphic.image.height//2 + scale_to_height(60) + (brain_graphic.image.height - brain_graphic.height) // 2 |
| 4827 | window.clear() |
| 4828 | brain_graphic.draw() |
| 4829 | if brain_graphic.width < 56: |
| 4830 | mode.shrink_brain = False |
| 4831 | pyglet.clock.unschedule(scale_brain) |
| 4832 | brain_graphic.scale = 1 |
| 4833 | brain_graphic.position = (field.center_x - brain_graphic.width//2, |
| 4834 | field.center_y - brain_graphic.height//2 + 40) |
| 4835 | |
| 4836 | scale_brain(scale_to_width(1)) |
| 4837 | # If we had messages queued during loading (like from moving our data files), display them now |
no test coverage detected