MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / notification

Method notification

PythonAPI/examples/no_rendering_mode.py:293–295  ·  view source on GitHub ↗

Shows fading texts for some specified seconds

(self, text, seconds=2.0)

Source from the content-addressed store, hash-verified

291 self._info_text = {}
292
293 def notification(self, text, seconds=2.0):
294 """Shows fading texts for some specified seconds"""
295 self._notifications.set_text(text, seconds=seconds)
296
297 def tick(self, clock):
298 """Updated the fading texts each frame"""

Callers 2

startMethod · 0.45
_parse_eventsMethod · 0.45

Calls 1

set_textMethod · 0.45

Tested by

no test coverage detected