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

Function get_actor_display_name

PythonAPI/examples/manual_control.py:147–149  ·  view source on GitHub ↗
(actor, truncate=250)

Source from the content-addressed store, hash-verified

145
146
147def get_actor_display_name(actor, truncate=250):
148 name = ' '.join(actor.type_id.replace('_', '.').title().split('.')[1:])
149 return (name[:truncate - 1] + u'\u2026') if len(name) > truncate else name
150
151
152# ==============================================================================

Callers 3

restartMethod · 0.70
tickMethod · 0.70
_on_collisionMethod · 0.70

Calls 1

titleMethod · 0.45

Tested by

no test coverage detected