HHelpersStringDrawing Class |
Namespace: com.tiberiumfusion.ttplugins.HarmonyPlugins
The HHelpersStringDrawing type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | DrawString |
Convenience method for drawing some text on the screen with a ReLogic.Graphics.DynamicSpriteFont.
|
![]() ![]() | DrawStringWithShadow |
Convenience method for drawing some shadowed text on the screen with a ReLogic.Graphics.DynamicSpriteFont.
|
![]() ![]() | TryCreateTypeFixedDynamicSpriteFontFromExisting |
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.
|