Jump King

Jump King

Not enough ratings
More Text Options
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Tags: Interface
File Size
Posted
Updated
933.376 KB
25 Jun, 2024 @ 8:19am
21 Jul @ 7:10am
21 Change Notes ( view )

Subscribe to download
More Text Options

In 1 collection by Zebra · ♞
More or Less Mods
9 items
Description
More Text Options


Description
Gives you the ability to customize text and outline colour of ingame strings like the timer or the ones added by other mods like Level%.


Information for Creators
To change the colour of a maps credits, dialog, or location text (that you have access to the xml file containing the text to) add
{color="#RRGGBB"}
to the front of your text, the colour will affect all text to the right of it, another color tag can be used to change it again, don't place it at the end though as it might be a problem, but it might not be, but at that point why even do it :) , replace the RRGGBB with a valid hex representation of a colour, e.g. 00FF00 for full green. While technically you should be able to use this in other places too it seems to not play nicely all the time, so testing what works and what doesn't is on your end.

To change the Default and Gargoyle font create a "font" folder and place your custom font inside, to replace the fonts the files should be called Default.xnb and Gargoyle.xnb respectively.


Information for Modders
For your own mod to use custom colours use the function TextHelper.DrawString, if you dont want your text to be changed use Game1.spriteBatch.DrawString


GitHub Repository
View the source code here[github.com]