Log in

View Full Version : Formatting inside chat frame



lousilver
July 7th, 2024, 18:49
I can manually edit the db.xml file to place multiple paragraphs within a chat frame (using &#13), but is there a way to do simple formatting, such as italics? I could only find a post from 2013 saying it's not possible. I've tried <i></i> inside the chat frame, but that doesn't work.

Trenloe
July 7th, 2024, 18:56
The text within the chat frame is displayed using a string control, not a formatted text control. Therefore, formatting is not available. You can change the font of the text being displayed with an extension/FG code, but that is for the whole chunk of text. See the Message Data Structure in the FG Comm package for details of what can be changed for each chat message: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644567/Comm

Zacchaeus
July 7th, 2024, 19:52
I can manually edit the db.xml file to place multiple paragraphs within a chat frame (using &#13), but is there a way to do simple formatting, such as italics? I could only find a post from 2013 saying it's not possible. I've tried <i></i> inside the chat frame, but that doesn't work.

You can add paragraphs inside a chat frame by positioning your cursor where you want the break to be by holding down the SHIFT key and pressing return (twice if necessary).