direct.gui.OnscreenText¶
from direct.gui.OnscreenText import OnscreenText
OnscreenText module: contains the OnscreenText class.
See the OnscreenText page in the programming manual for explanation of this class.
Inheritance diagram
digraph inheritancee1897c28a7 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "NodePath" [URL="acron.core.NodePath.html#acron.core.NodePath",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "NodePath" [arrowsize=0.75,style=""]; "OnscreenText" [URL="direct.gui.OnscreenText.html#direct.gui.OnscreenText.OnscreenText",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "NodePath" -> "OnscreenText" [arrowsize=0.75,style=""]; }- class OnscreenText(text='', style=1, pos=(0, 0), roll=0, scale=None, fg=None, bg=None, shadow=None, shadowOffset=(0.04, 0.04), frame=None, align=None, wordwrap=None, drawOrder=None, decal=0, font=None, parent=None, sort=0, mayChange=True, direction=None)[source]¶
Bases:
NodePath- property align¶
- property bg¶
- property decal¶
- property fg¶
- property font¶
- property frame¶
- property pos¶
Deprecated since version 1.11.0.
Use
getTextPos()method ortext_posproperty instead.
- property roll¶
Deprecated since version 1.11.0.
Use
-getTextR()instead (note the negated sign).
- property scale¶
Deprecated since version 1.11.0.
Use
getTextScale()method ortext_scaleproperty instead.
- property shadow¶
- property text¶
- property text_pos¶
Added in version 1.10.8.
- property text_r¶
- property text_scale¶
Added in version 1.10.8.
- property wordwrap¶