Click or drag to resize

HHelpersStringDrawing Class

Specifically contains helper methods for use in managing spritefonts and drawing strings.
Inheritance Hierarchy
SystemObject
  com.tiberiumfusion.ttplugins.HarmonyPluginsHHelpersStringDrawing

Namespace:  com.tiberiumfusion.ttplugins.HarmonyPlugins
Assembly:  TTPlugins (in TTPlugins.dll) Version: 1.2.0.1 (1.2.0.1)
Syntax
public static class StringDrawing
Request Example View Source

The HHelpersStringDrawing type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDrawString
Convenience method for drawing some text on the screen with a ReLogic.Graphics.DynamicSpriteFont.
Public methodStatic memberDrawStringWithShadow
Convenience method for drawing some shadowed text on the screen with a ReLogic.Graphics.DynamicSpriteFont.
Public methodStatic memberTryCreateTypeFixedDynamicSpriteFontFromExisting
Creates a type-fixed copy of a ReLogic.Graphics.DynamicSpriteFont specified by field name in the Terraria.GameContent.FontAssets type. This works around the "type of ReLogic.Graphics.DynamicSpriteFont is not the same as type of ReLogic.Graphics.DynamicSpriteFont" issue that occurs when the propriety ReLogic assembly was loaded without context. This is a very expensive operation and should be used sparingly. Call this once and store the result to use later.
Top
See Also