//Pass in the string and the default color for this block of text. LLConsole::Paragraph::Paragraph (LLWString str, const LLColor4 &color, F32 add_time) : mParagraphText(str), mAddTime(add_time), mMaxWidth(-1) { // Only call makeParagraphColorSegments if the user logged in already (we come // here before they logged in when they disabled login/logout screens). // Otherwise makeParagraphColorSegments calls LLTextParser::getInstance() which // causes a one-time initialization by reading highlights.xml, which fails // when not logged in because it's per account. if (!gDirUtilp->getLindenUserDir(true).empty()) { makeParagraphColorSegments(color); } }
//Pass in the string and the default color for this block of text. LLConsole::Paragraph::Paragraph (LLWString str, const LLColor4 &color, F32 add_time) : mParagraphText(str), mAddTime(add_time), mMaxWidth(-1) { makeParagraphColorSegments(color); }
//Pass in the string and the default color for this block of text. LLConsole::Paragraph::Paragraph (LLWString str, const LLColor4 &color, F32 add_time, LLFontGL* font, F32 screen_width) : mParagraphText(str), mAddTime(add_time), mMaxWidth(-1) { makeParagraphColorSegments(color); updateLines( screen_width, font ); }