Merge branch 'master' of git://github.com/siana/SingularityViewer
Conflicts: indra/newview/skins/dark/colors_base.xml indra/newview/skins/gemini/colors_base.xml indra/newview/skins/pslgreen/colors_base.xml indra/newview/skins/pslpurple/colors_base.xml indra/newview/skins/sapphire/colors_base.xml
This commit is contained in:
@@ -168,7 +168,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod
|
||||
// dereference the array.
|
||||
if(!image || !image->numcomps)
|
||||
{
|
||||
llwarns << "ERROR -> decodeImpl: failed to decode image!" << llendl;
|
||||
llwarns << "failed to decode image!" << llendl;
|
||||
if (image)
|
||||
{
|
||||
opj_image_destroy(image);
|
||||
@@ -183,6 +183,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod
|
||||
{
|
||||
if (image->comps[i].factor != base.getRawDiscardLevel())
|
||||
{
|
||||
llwarns << "Expected discard level not reached!" << llendl;
|
||||
// if we didn't get the discard level we're expecting, fail
|
||||
opj_image_destroy(image);
|
||||
base.decodeFailed();
|
||||
|
||||
@@ -242,6 +242,30 @@ LLNotifyBox::LLNotifyBox(LLNotificationPtr notification,
|
||||
// it appears below the caution textbox
|
||||
y = y - caution_height;
|
||||
}
|
||||
else if (mIsCaution && mIsTip)
|
||||
{
|
||||
|
||||
const S32 BTN_TOP = BOTTOM_PAD + (((mNumOptions-1+2)/3)) * (BTN_HEIGHT+VPAD);
|
||||
|
||||
// Tokenization on \n is handled by LLTextBox
|
||||
|
||||
const S32 MAX_LENGTH = 512 + 20 + DB_FIRST_NAME_BUF_SIZE + DB_LAST_NAME_BUF_SIZE + DB_INV_ITEM_NAME_BUF_SIZE; // For script dialogs: add space for title.
|
||||
|
||||
text = new LLTextEditor(std::string("box"), LLRect(x, y, getRect().getWidth()-2, mIsTip ? BOTTOM : BTN_TOP+16), MAX_LENGTH, mMessage, sFont, FALSE);
|
||||
text->setWordWrap(TRUE);
|
||||
text->setTabStop(FALSE);
|
||||
text->setMouseOpaque(FALSE);
|
||||
text->setBorderVisible(FALSE);
|
||||
text->setTakesNonScrollClicks(FALSE);
|
||||
text->setHideScrollbarForShortDocs(TRUE);
|
||||
text->setReadOnlyBgColor ( LLColor4::transparent ); // the background color of the box is manually
|
||||
// rendered under the text box, therefore we want
|
||||
// the actual text box to be transparent
|
||||
text->setReadOnlyFgColor ( gColors.getColor("NotifyCautionWarnColor") ); //sets caution text color for tip notifications
|
||||
text->setEnabled(FALSE); // makes it read-only
|
||||
text->setTabStop(FALSE); // can't tab to it (may be a problem for scrolling via keyboard)
|
||||
addChild(text);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
<!-- NOTIFICATION POP-UPS -->
|
||||
<NotifyBoxColor value="66, 66, 66, 255"/>
|
||||
<NotifyTextColor value="200, 200, 200, 255"/>
|
||||
<NotifyCautionBoxColor value="0, 0, 0, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="200, 200, 200, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<NotifyCautionBoxColor value="254, 209, 118, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="0, 0, 0, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<GroupNotifyBoxColor value="70, 170, 255, 255"/>
|
||||
<GroupNotifyTextColor value="0, 0, 0 255" />
|
||||
|
||||
|
||||
@@ -195,6 +195,7 @@
|
||||
<ConsoleBackground value="0, 0, 0, 255" />
|
||||
<FolderViewLoadingMessageTextColor value="240, 165, 90, 255"/> <!-- "loading..." in the inv -->
|
||||
<InventoryBackgroundColor value="62, 62, 62, 80"/>
|
||||
<SHMediaTickerOscillatorColor value ="0, 0, 0, 191"/>
|
||||
|
||||
<!-- Alert box colors -->
|
||||
<AlertBoxColor value="62, 62, 62, 255" /> <!-- Warnings floaters, like when returning objects -->
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
<!-- NOTIFICATION POP-UPS -->
|
||||
<NotifyBoxColor value="66, 66, 66, 255" />
|
||||
<NotifyTextColor value="255, 255, 255, 128" />
|
||||
<NotifyCautionBoxColor value="0, 0, 0, 255" /> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="255, 255, 255, 255" /> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<NotifyCautionBoxColor value="254, 209, 118, 255" /> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="0, 0, 0, 255" /> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<GroupNotifyBoxColor value="66, 66, 66, 255" />
|
||||
<GroupNotifyTextColor value="255, 255, 255, 128" />
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
<!-- NOTIFICATION POP-UPS -->
|
||||
<NotifyBoxColor value="66, 66, 66, 255"/>
|
||||
<NotifyTextColor value="200, 200, 200, 255"/>
|
||||
<NotifyCautionBoxColor value="0, 0, 0, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="200, 200, 200, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<NotifyCautionBoxColor value="254, 209, 118, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="0, 0, 0, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<GroupNotifyBoxColor value="70, 170, 255, 255"/>
|
||||
<GroupNotifyTextColor value="0, 0, 0 255" />
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
<!-- NOTIFICATION POP-UPS -->
|
||||
<NotifyBoxColor value="66, 66, 66, 255"/>
|
||||
<NotifyTextColor value="200, 200, 200, 255"/>
|
||||
<NotifyCautionBoxColor value="0, 0, 0, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="200, 200, 200, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<NotifyCautionBoxColor value="254, 209, 118, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="0, 0, 0, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<GroupNotifyBoxColor value="70, 170, 255, 255"/>
|
||||
<GroupNotifyTextColor value="0, 0, 0 255" />
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
<!-- NOTIFICATION POP-UPS -->
|
||||
<NotifyBoxColor value="66, 66, 66, 255"/>
|
||||
<NotifyTextColor value="200, 200, 200, 255"/>
|
||||
<NotifyCautionBoxColor value="0, 0, 0, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="200, 200, 200, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<NotifyCautionBoxColor value="254, 209, 118, 255"/> <!-- the background color of caution permissions prompts -->
|
||||
<NotifyCautionWarnColor value="0, 0, 0, 255"/> <!-- the foreground color of the special title text in caution permissions prompts -->
|
||||
<GroupNotifyBoxColor value="70, 170, 255, 255"/>
|
||||
<GroupNotifyTextColor value="0, 0, 0 255" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user