MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / __init__

Method __init__

brainworkshop.py:2768–2775  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2766# this is the black text above the field
2767class 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 = ''

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
calc_fontsizeFunction · 0.85
width_centerFunction · 0.85
from_top_edgeFunction · 0.85

Tested by

no test coverage detected