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); +```