diff options
Diffstat (limited to 'linden/indra/newview/llviewertexteditor.cpp')
-rw-r--r-- | linden/indra/newview/llviewertexteditor.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewertexteditor.cpp b/linden/indra/newview/llviewertexteditor.cpp index f6829d4..3369125 100644 --- a/linden/indra/newview/llviewertexteditor.cpp +++ b/linden/indra/newview/llviewertexteditor.cpp | |||
@@ -1267,8 +1267,8 @@ void LLViewerTextEditor::openEmbeddedSound( LLInventoryItem* item ) | |||
1267 | const F32 SOUND_GAIN = 1.0f; | 1267 | const F32 SOUND_GAIN = 1.0f; |
1268 | if(gAudiop) | 1268 | if(gAudiop) |
1269 | { | 1269 | { |
1270 | gAudiop->triggerSound( | 1270 | F32 volume = SOUND_GAIN * gSavedSettings.getF32("AudioLevelSFX"); |
1271 | item->getAssetUUID(), gAgentID, SOUND_GAIN, lpos_global); | 1271 | gAudiop->triggerSound(item->getAssetUUID(), gAgentID, volume, lpos_global); |
1272 | } | 1272 | } |
1273 | showCopyToInvDialog( item ); | 1273 | showCopyToInvDialog( item ); |
1274 | } | 1274 | } |
@@ -1437,7 +1437,7 @@ LLView* LLViewerTextEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlF | |||
1437 | LLViewerTextEditor* text_editor = new LLViewerTextEditor(name, | 1437 | LLViewerTextEditor* text_editor = new LLViewerTextEditor(name, |
1438 | rect, | 1438 | rect, |
1439 | max_text_length, | 1439 | max_text_length, |
1440 | text, | 1440 | "", |
1441 | font, | 1441 | font, |
1442 | allow_embedded_items); | 1442 | allow_embedded_items); |
1443 | 1443 | ||
@@ -1453,7 +1453,18 @@ LLView* LLViewerTextEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlF | |||
1453 | node->getAttributeBOOL("hide_scrollbar",hide_scrollbar); | 1453 | node->getAttributeBOOL("hide_scrollbar",hide_scrollbar); |
1454 | text_editor->setHideScrollbarForShortDocs(hide_scrollbar); | 1454 | text_editor->setHideScrollbarForShortDocs(hide_scrollbar); |
1455 | 1455 | ||
1456 | BOOL hide_border = !text_editor->mBorder->getVisible(); | ||
1457 | node->getAttributeBOOL("hide_border", hide_border); | ||
1458 | text_editor->setBorderVisible(!hide_border); | ||
1459 | |||
1460 | BOOL parse_html = text_editor->mParseHTML; | ||
1461 | node->getAttributeBOOL("allow_html", parse_html); | ||
1462 | text_editor->setParseHTML(parse_html); | ||
1463 | |||
1456 | text_editor->initFromXML(node, parent); | 1464 | text_editor->initFromXML(node, parent); |
1457 | 1465 | ||
1466 | // add text after all parameters have been set | ||
1467 | text_editor->appendStyledText(text, FALSE, FALSE, NULL); | ||
1468 | |||
1458 | return text_editor; | 1469 | return text_editor; |
1459 | } | 1470 | } |