Text

from acron.stock import Text
class Text(text='', parent=None, origin=None, **props)

Bases: Actor

A HUD label (OnscreenText under camera.ui). position is (x, y) in aspect2d space; size is the text height; align is ‘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.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

font

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

property position
size

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

text

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.