From 98c95cfe1779ef848192209746107e36161ffede Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Sat, 13 Jan 2024 16:02:26 +0000 Subject: [PATCH] GITBOOK-72: change request with no subject merged in GitBook --- docs/SUMMARY.md | 2 ++ .../runtime-objects-guederiving/README.md | 2 ++ .../runtime-objects-guederiving/textruntime.md | 15 +++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 docs/monogame/runtime-objects-guederiving/README.md create mode 100644 docs/monogame/runtime-objects-guederiving/textruntime.md diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index def42ccd3..e3388b663 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -88,3 +88,5 @@ * [MonoGame](monogame/README.md) * [Setup](monogame/setup.md) * [Loading .gumx (Gum Project)](monogame/loading-.gumx-gum-project.md) + * [Runtime Objects (GueDeriving)](monogame/runtime-objects-guederiving/README.md) + * [TextRuntime](monogame/runtime-objects-guederiving/textruntime.md) diff --git a/docs/monogame/runtime-objects-guederiving/README.md b/docs/monogame/runtime-objects-guederiving/README.md new file mode 100644 index 000000000..e55e02d26 --- /dev/null +++ b/docs/monogame/runtime-objects-guederiving/README.md @@ -0,0 +1,2 @@ +# Runtime Objects (GueDeriving) + diff --git a/docs/monogame/runtime-objects-guederiving/textruntime.md b/docs/monogame/runtime-objects-guederiving/textruntime.md new file mode 100644 index 000000000..cff0489a1 --- /dev/null +++ b/docs/monogame/runtime-objects-guederiving/textruntime.md @@ -0,0 +1,15 @@ +# TextRuntime + +### Introduction + +The TextRuntime object is used to draw strings to the screen. It supports a variety of options for rendering text including alignment, fonts, coloring, and line wrapping. + +### Example + +To create a TextRuntime, instantiate it and add it to the managers as shown in the following code: + +```csharp +var textInstance = new TextRuntime(); +textInstance.Text = "Hello world"; +text.AddToManagers(SystemManagers.Default, null); +```