Jump King

Jump King

Not enough ratings
More Text Options
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Tags: Interface
File Size
Posted
Updated
936.448 KB
25 Jun, 2024 @ 8:19am
28 Aug @ 9:14am
22 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.

Should you need more than two fonts create the file OldManSettings.xml or RattmanSettings.xml if you need a custom font on an old man or message (they are rattman texts). An old man can be distinguished by name and as such the inside of the xml looks like this, where name is your old mans name and font the name of your font.
<OldManSettings> <OldManSetting> <Name>arialOldMan</Name> <Font>Arial</Font> </OldManSetting> <OldManSetting> <Name>lanaPixelOldMan</Name> <Font>LanaPixel</Font> </OldManSetting> </OldManSettings>
however messages/rattman text can only be distinguished by the screen they appear on, as such the inside of the xml looks like this:
<RattmanSettings> <RattmanSetting> <Screen>1</Screen> <Font>LanaPixel</Font> </RattmanSetting> <RattmanSetting> <Screen>2</Screen> <Font>Arial</Font> </RattmanSetting> </RattmanSettings>


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]