tModLoader

tModLoader

Not enough ratings
CharLoader
   
Award
Favorite
Favorited
Unfavorite
Mod Features: Library
Mod Side: Client
tModLoader Version: 1.4.4
File Size
Posted
Updated
32.937 KB
14 Jul, 2023 @ 5:07am
23 Oct, 2024 @ 1:49pm
2 Change Notes ( view )

Subscribe to download
CharLoader

Description
Allows other mods to add characters to preexisting fonts without risking overwriting any characters from vanilla or other mods
Documentation:
AddCharacter/AddChar: font (DynamicSpriteFont), texture (Texture2D), glyph (Rectangle), padding (Rectangle), kerning (Vector3), <optional name (string)>
GetCharacter/AddChar: font (DynamicSpriteFont), name (string)
To change characters, don't use this unless you know what you're doing, index is not relative
SetCharacter/AddChar: font (DynamicSpriteFont), index (char), texture (Texture2D), glyph (Rectangle), padding (Rectangle), kerning (Vector3)
Originally posted by tModLoader CharLoader:
Developed By Tyfyter
2 Comments
Moonlight Glint  [author] 20 Apr, 2024 @ 3:41pm 
This is a library mod, if you're asking how to use it as a player, you just install and enable it alongside some mod that uses it, if you're asking how to use it as a mod developer, this should serve as a decent example: https://github.com/Tyfyter/EpikV2/blob/master/CrossMod%2FEpikIntegration.cs#L79-L110
Nastase 20 Apr, 2024 @ 3:35pm 
how do u use it?