-
Notifications
You must be signed in to change notification settings - Fork 0
Home
All RichText brackets work since this is still using normal Unity GUI Labels. For a list of RichText options you may look here
The main ones that will be of use to you are <b></b> for bold, <i></i> for italics, and <color="color hash goes here"></color> for color
Note: These tags will create a new section due to parsing requirements and Regex.
<anchor></anchor>
This will set the Text.Anchor value and will remain using this anchor until you change it again or the dialog reaches the end of the description.
Text.Anchor values
UpperLeft, UpperCenter, UpperRight, MiddleLeft, MiddleCenter, MiddleRight, LowerLeft, LowerCenter, LowerRight
<font></font>
This will set the Text.Font value and will remain using this font until you change it again or the dialog reaches the end of the description.
Text.Font values
Tiny, Small, Medium
<title></title>
This will display the inner text in bold with an underline striking across the entire window length.
<img></img>
This will draw the image given a relative file path (from the UpdateLog/Images folder, you must also include the file extension ie. testImage.png). The image is drawn horizontally centered in the dialog window.
<gif></gif>
Similarly to the tag, you can use a gif tag that points to the directory of a bunch of images to show the images in sequence. You can then set attributes inside the gif tag to set the height and width of the gif as well as the fps it is drawn at and the delay between restarting the gif over again. I will warn you however that including many images or frames to create longer gifs will increase the size of your mod substantially. You can compress the images to alleviate this a bit but I suggest not using gifs entirely.
<s/>
This will create a new section upon parsing (functionally speaking these may prevent issues with large bodies of text by breaking it up into separate sections upon parsing). Also functions the same as a new line.
Inline Brackets
In the same nature as RichText brackets, you may also use these 2 custom brackets in the middle of a body of text.
NOTE: These still struggle a little bit in some edge cases to properly calculate the coordinate of the underline (in both cases) so I will need to update this later down the road when I have time to fix it. It's not largely off where it should be but it may shift a little bit left or right depending on bold letters or font changes in the section. Double check in-game to verify that it's where you'd like it to be or consider changing up your section and where this underline will appear
<u></u>
Creates an underline for the text within the brackets.
<link></link>(display name)
Creates a clickable hyperlink using the url (provided between the brackets) and the name displayed for the hyperlink (provided in-between the following parenthesis)