diff options
Diffstat (limited to 'doc/python_api/rst/bge_types/bge.types.KX_FontObject.rst')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_FontObject.rst | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_FontObject.rst b/doc/python_api/rst/bge_types/bge.types.KX_FontObject.rst deleted file mode 100644 index f02609af0fa..00000000000 --- a/doc/python_api/rst/bge_types/bge.types.KX_FontObject.rst +++ /dev/null @@ -1,29 +0,0 @@ -KX_FontObject(KX_GameObject) -============================ - -base class --- :class:`KX_GameObject` - -.. class:: KX_FontObject(KX_GameObject) - - A Font object. - - .. code-block:: python - - # Display a message about the exit key using a Font object. - import bge - - co = bge.logic.getCurrentController() - font = co.owner - - exit_key = bge.events.EventToString(bge.logic.getExitKey()) - - if exit_key.endswith("KEY"): - exit_key = exit_key[:-3] - - font.text = "Press key '%s' to quit the game." % exit_key - - .. attribute:: text - - The text displayed by this Font object. - - :type: string |