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

Some more Multiversus support #312

Merged
merged 1 commit into from
Jul 30, 2022
Merged

Some more Multiversus support #312

merged 1 commit into from
Jul 30, 2022

Conversation

TheNaeem
Copy link
Contributor

Main additions are icons for characters and skins. It could be added onto, but I'll eventually get around to making a cleaner looking Community icon for it.

@@ -43,13 +43,13 @@ protected UCreator(UObject uObject, EIconStyle style)
protected readonly SKPaint DisplayNamePaint = new()
{
IsAntialias = true, FilterQuality = SKFilterQuality.High,
Typeface = Utils.Typefaces.DisplayName, TextSize = _NAME_TEXT_SIZE,
Typeface = Utils.Typefaces.DisplayName ?? Utils.Typefaces.Default, TextSize = _NAME_TEXT_SIZE,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You already set all of those to Default in Typefaces.cs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah. Before I added the specific typefaces for Multiversus, it crashed because of the DisplayName and Description typefaces being null so I just put that. Might be good to keep that check for games that don't have their own typefaces implemented yet

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be done directly in Typeface.cs
Actually that file needs a rework, especially to use OnTheFly more often

@4sval 4sval merged commit 5330da9 into 4sval:dev Jul 30, 2022
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