Text¶
from acron.stock import Text
- class Text(text='', parent=None, origin=None, **props)¶
Bases:
ActorA HUD label (OnscreenText under
camera.ui).positionis (x, y) in aspect2d space;sizeis the text height;alignis ‘left’/’center’/’right’.Inheritance diagram
digraph inheritance4ba4fae21d { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Actor" [URL="acron.actor.Actor.html#acron.actor.Actor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A thing in the world. See the module docstring."]; "Text" [URL="acron.stock.Text.html#acron.stock.Text",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A HUD label (OnscreenText under ``camera.ui``). ``position`` is (x, y) in"]; "Actor" -> "Text" [arrowsize=0.75,style=""]; }- align¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- font¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- property position¶
- size¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- text¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.