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

Function get_actor_display_name

PythonAPI/examples/manual_control_rss.py:139–141  ·  view source on GitHub ↗
(actor, truncate=250)

Source from the content-addressed store, hash-verified

137
138
139def get_actor_display_name(actor, truncate=250):
140 name = ' '.join(actor.type_id.replace('_', '.').title().split('.')[1:])
141 return (name[:truncate - 1] + u'\u2026') if len(name) > truncate else name
142
143
144# ==============================================================================

Callers 3

restartMethod · 0.70
tickMethod · 0.70
_on_collisionMethod · 0.70

Calls 1

titleMethod · 0.45

Tested by

no test coverage detected