Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: soilder198 on December 30, 2019, 09:48:49 am

Title: Color Tags in Briefing Issue
Post by: soilder198 on December 30, 2019, 09:48:49 am
Hi all. I have began using color tags in my mission briefings and they are giving me a single problem. They cause lines of dialogue to run outside of the little briefing "box". If I take the color tags out, the text behaves normally again, staying inside the designated "box". Does anyone have a fix to this?
Title: Re: Color Tags in Briefing Issue
Post by: Nightmare on December 30, 2019, 10:47:20 am
Here's everything regarding color tags:
https://wiki.hard-light.net/index.php/Briefing
https://wiki.hard-light.net/index.php/Briefing_Text

But it seems your problem is more like a FSO issue.
Title: Re: Color Tags in Briefing Issue
Post by: Colt on December 30, 2019, 10:53:46 am
This usually happens to me when I don't put a space between the tag and the word that's to be tagged.

Example:
$fPhi wing of the $f1135th $fsquadron

Fixed:
$f Phi wing of the $f 1135th $f squadron
Title: Re: Color Tags in Briefing Issue
Post by: Nightmare on December 30, 2019, 11:02:11 am
Huh, that's not on the wiki; actually it seems like the wiki text is luring people into this trap.
Title: Re: Color Tags in Briefing Issue
Post by: soilder198 on December 30, 2019, 11:23:29 am
This usually happens to me when I don't put a space between the tag and the word that's to be tagged.

Example:
$fPhi wing of the $f1135th $fsquadron

Fixed:
$f Phi wing of the $f 1135th $f squadron

Yep, that fixed it. Many thanks!
Title: Re: Color Tags in Briefing Issue
Post by: Colt on December 30, 2019, 11:24:27 am
Huh, that's not on the wiki; actually it seems like the wiki text is luring people into this trap.
Quote
A note about color tags: The color tag will work on all font until a space is encountered. There needs to be a space after the tag, before the text to be colorized (although it's not actually required after r5840, it is recommended due to the way FSO wordwrapping works). There is a method to color spans of text, which is discussed in the Misc section below.
Second paragraph of "colors". :p

That being said, I've never noticed this line before. And it was edited back in 2016. :nervous:

This usually happens to me when I don't put a space between the tag and the word that's to be tagged.

Example:
$fPhi wing of the $f1135th $fsquadron

Fixed:
$f Phi wing of the $f 1135th $f squadron

Yep, that fixed it. Many thanks!
:yes: :yes: :yes:
Title: Re: Color Tags in Briefing Issue
Post by: Nightmare on December 30, 2019, 11:42:04 am
OK I just didn't knew what wordwrapping means.  :o