Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made DynamicSpriteFont.SpriteCharacterData public #4427

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

Tyfyter
Copy link
Contributor

@Tyfyter Tyfyter commented Oct 22, 2024

What is the new feature?

SpriteCharacterData can now be accessed outside of DynamicSpriteFont.
_spriteCharacters and _defaultCharacterData were given accessor properties.

Why should this be part of tModLoader?

Currently creating or manipulating fonts with code in any way requires heavy use of reflection, while doing so is not widely useful, those mods which do have use for it currently must sacrifice all manner of compile-time error checking in all code involving it.

Are there alternative designs?

_spriteCharacters and/or _defaultCharacterData could be made public instead of being given accessor properties.

@JavidPack JavidPack merged commit 64eb594 into tModLoader:1.4.4 Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants