(self)
| 2766 | # this is the black text above the field |
| 2767 | class GameModeLabel: |
| 2768 | def __init__(self): |
| 2769 | self.label = pyglet.text.Label( |
| 2770 | '', |
| 2771 | font_size=calc_fontsize(16), |
| 2772 | color=cfg.COLOR_TEXT, |
| 2773 | x=width_center(), y=from_top_edge(20), |
| 2774 | anchor_x='center', anchor_y='center', batch=batch) |
| 2775 | self.update() |
| 2776 | def update(self): |
| 2777 | if mode.started and mode.hide_text: |
| 2778 | self.label.text = '' |
nothing calls this directly
no test coverage detected