diff options
author | McCabe Maxsted | 2010-08-26 11:04:43 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-25 08:35:35 -0700 |
commit | db9616811d45e168d81c8e464fb8a9cf27e51172 (patch) | |
tree | a8539baeb46297d51072285d946f925a8544eb64 /linden/indra/newview/llnotify.cpp | |
parent | Revert "Updated boost 1.36 libs for Windows to support local textures (todo: ... (diff) | |
download | meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.zip meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.gz meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.bz2 meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.xz |
Ported gSavedSettings changes from Emerald (as well as modifying a few of ours)
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llnotify.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/linden/indra/newview/llnotify.cpp b/linden/indra/newview/llnotify.cpp index ef57aaf..1a7b247 100644 --- a/linden/indra/newview/llnotify.cpp +++ b/linden/indra/newview/llnotify.cpp | |||
@@ -227,7 +227,10 @@ LLNotifyBox::LLNotifyBox(LLNotificationPtr notification, | |||
227 | 227 | ||
228 | caution_box->setFontStyle(LLFontGL::BOLD); | 228 | caution_box->setFontStyle(LLFontGL::BOLD); |
229 | caution_box->setColor(gColors.getColor("NotifyCautionWarnColor")); | 229 | caution_box->setColor(gColors.getColor("NotifyCautionWarnColor")); |
230 | caution_box->setBackgroundColor(gColors.getColor("NotifyCautionBoxColor")); | 230 | |
231 | static LLColor4* sNotifyCautionBoxColor = rebind_llcontrol<LLColor4>("NotifyCautionBoxColor", &gColors, true); | ||
232 | |||
233 | caution_box->setBackgroundColor((*sNotifyCautionBoxColor)); | ||
231 | caution_box->setBorderVisible(FALSE); | 234 | caution_box->setBorderVisible(FALSE); |
232 | caution_box->setWrappedText(notification->getMessage()); | 235 | caution_box->setWrappedText(notification->getMessage()); |
233 | 236 | ||
@@ -485,7 +488,10 @@ void LLNotifyBox::drawBackground() const | |||
485 | { | 488 | { |
486 | gGL.getTexUnit(0)->bind(imagep->getImage()); | 489 | gGL.getTexUnit(0)->bind(imagep->getImage()); |
487 | // set proper background color depending on whether notify box is a caution or not | 490 | // set proper background color depending on whether notify box is a caution or not |
488 | LLColor4 color = mIsCaution? gColors.getColor("NotifyCautionBoxColor") : gColors.getColor("NotifyBoxColor"); | 491 | static LLColor4* sNotifyCautionBoxColor = rebind_llcontrol<LLColor4>("NotifyCautionBoxColor", &gColors, true); |
492 | static LLColor4* sNotifyBoxColor = rebind_llcontrol<LLColor4>("NotifyBoxColor", &gColors, true); | ||
493 | |||
494 | LLColor4 color = mIsCaution? (*sNotifyCautionBoxColor) : (*sNotifyBoxColor); | ||
489 | if(gFocusMgr.childHasKeyboardFocus( this )) | 495 | if(gFocusMgr.childHasKeyboardFocus( this )) |
490 | { | 496 | { |
491 | const S32 focus_width = 2; | 497 | const S32 focus_width = 2; |
@@ -500,9 +506,9 @@ void LLNotifyBox::drawBackground() const | |||
500 | gl_segmented_rect_2d_tex(0, getRect().getHeight(), getRect().getWidth(), 0, imagep->getTextureWidth(), imagep->getTextureHeight(), 16, mIsTip ? ROUNDED_RECT_TOP : ROUNDED_RECT_BOTTOM); | 506 | gl_segmented_rect_2d_tex(0, getRect().getHeight(), getRect().getWidth(), 0, imagep->getTextureWidth(), imagep->getTextureHeight(), 16, mIsTip ? ROUNDED_RECT_TOP : ROUNDED_RECT_BOTTOM); |
501 | 507 | ||
502 | if( mIsCaution ) | 508 | if( mIsCaution ) |
503 | color = gColors.getColor("NotifyCautionBoxColor"); | 509 | color = (*sNotifyCautionBoxColor); |
504 | else | 510 | else |
505 | color = gColors.getColor("NotifyBoxColor"); | 511 | color = (*sNotifyBoxColor); |
506 | 512 | ||
507 | gGL.color4fv(color.mV); | 513 | gGL.color4fv(color.mV); |
508 | gl_segmented_rect_2d_tex(1, getRect().getHeight()-1, getRect().getWidth()-1, 1, imagep->getTextureWidth(), imagep->getTextureHeight(), 16, mIsTip ? ROUNDED_RECT_TOP : ROUNDED_RECT_BOTTOM); | 514 | gl_segmented_rect_2d_tex(1, getRect().getHeight()-1, getRect().getWidth()-1, 1, imagep->getTextureWidth(), imagep->getTextureHeight(), 16, mIsTip ? ROUNDED_RECT_TOP : ROUNDED_RECT_BOTTOM); |