Woops, actually do the script debug link thing.

This commit is contained in:
Liru Færs
2019-11-03 18:30:00 -05:00
parent 9cf26e1fc2
commit 82050a5e46

View File

@@ -162,7 +162,7 @@ void LLFloaterScriptDebug::addScriptLine(LLChat& chat, const LLColor4& color)
floater_label = user_name; floater_label = user_name;
} }
chat.mURL = LLSLURL("objectim", source_id, LLURI::mapToQueryString(sdQuery)).getLocationString(); chat.mURL = LLSLURL("objectim", source_id, LLURI::mapToQueryString(sdQuery)).getSLURLString();
addOutputWindow(LLUUID::null); addOutputWindow(LLUUID::null);
addOutputWindow(source_id); addOutputWindow(source_id);
@@ -212,6 +212,7 @@ LLFloaterScriptDebugOutput::LLFloaterScriptDebugOutput(const LLUUID& object_id)
mHistoryEditor->setFollowsAll(); mHistoryEditor->setFollowsAll();
mHistoryEditor->setEnabled( FALSE ); mHistoryEditor->setEnabled( FALSE );
mHistoryEditor->setTabStop( TRUE ); // We want to be able to cut or copy from the history. mHistoryEditor->setTabStop( TRUE ); // We want to be able to cut or copy from the history.
mHistoryEditor->setParseHTML(true);
addChild(mHistoryEditor); addChild(mHistoryEditor);
} }
@@ -235,6 +236,7 @@ void LLFloaterScriptDebugOutput::initFloater(const std::string& title, BOOL resi
mHistoryEditor->setFollowsAll(); mHistoryEditor->setFollowsAll();
mHistoryEditor->setEnabled( FALSE ); mHistoryEditor->setEnabled( FALSE );
mHistoryEditor->setTabStop( TRUE ); // We want to be able to cut or copy from the history. mHistoryEditor->setTabStop( TRUE ); // We want to be able to cut or copy from the history.
mHistoryEditor->setParseHTML(true);
addChild(mHistoryEditor); addChild(mHistoryEditor);
} }
@@ -251,7 +253,7 @@ void LLFloaterScriptDebugOutput::addLine(const LLChat& chat, std::string message
mHistoryEditor->appendText(chat.mURL, false, true); mHistoryEditor->appendText(chat.mURL, false, true);
} }
LLStyleSP style(new LLStyle(true, color, LLStringUtil::null)); LLStyleSP style(new LLStyle(true, color, LLStringUtil::null));
mHistoryEditor->appendText(message, false, true, style, false); mHistoryEditor->appendText(message, false, false, style, false);
} }
//static //static