aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
authorelektrahesse2010-09-08 05:03:56 +0200
committerelektrahesse2010-09-08 05:03:56 +0200
commit4a854938e1edaafcfd232a965fbb7995584a487c (patch)
tree3c6c5e4f3bb15a8619d27b8c6fc8b6457e045b48 /linden/indra/newview/llprefsadvanced.cpp
parentInitial hacky release of colors in chat highlighting friend chat and when you... (diff)
downloadmeta-impy-4a854938e1edaafcfd232a965fbb7995584a487c.zip
meta-impy-4a854938e1edaafcfd232a965fbb7995584a487c.tar.gz
meta-impy-4a854938e1edaafcfd232a965fbb7995584a487c.tar.bz2
meta-impy-4a854938e1edaafcfd232a965fbb7995584a487c.tar.xz
Added a Extra tab in adv. preferences to enable/disable chat colors and to select the colors
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index de39e01..695e604 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -41,6 +41,7 @@
41#include "lgghunspell_wrapper.h" 41#include "lgghunspell_wrapper.h"
42#include "lggautocorrectfloater.h" 42#include "lggautocorrectfloater.h"
43#include "llcombobox.h" 43#include "llcombobox.h"
44#include "llcolorswatch.h"
44 45
45#include "lluictrlfactory.h" 46#include "lluictrlfactory.h"
46 47
@@ -111,6 +112,11 @@ BOOL LLPrefsAdvanced::postBuild()
111 112
112 initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck"); 113 initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck");
113 114
115 childSetValue("HighlightFriendsChat", gSavedSettings.getBOOL("HighlightFriendsChat"));
116 getChild<LLColorSwatchCtrl>("FriendsChatColor")->set(gSavedSettings.getColor4("FriendsChatColor"));
117 childSetValue("HighlightOwnNameInChat", gSavedSettings.getBOOL("HighlightOwnNameInChat"));
118 getChild<LLColorSwatchCtrl>("OwnNameChatColor")->set(gSavedSettings.getColor4("OwnNameChatColor"));
119
114 refresh(); 120 refresh();
115 121
116 return TRUE; 122 return TRUE;
@@ -133,6 +139,10 @@ void LLPrefsAdvanced::apply()
133 gSavedSettings.setU32("LightShareAllowed", 139 gSavedSettings.setU32("LightShareAllowed",
134 (U32)childGetValue("lightshare_combo").asInteger()); 140 (U32)childGetValue("lightshare_combo").asInteger());
135 141
142 gSavedSettings.setBOOL("HighlightFriendsChat", childGetValue("HighlightFriendsChat"));
143 gSavedSettings.setColor4("FriendsChatColor", getChild<LLColorSwatchCtrl>("FriendsChatColor")->get());
144 gSavedSettings.setBOOL("HighlightOwnNameInChat", childGetValue("HighlightOwnNameInChat"));
145 gSavedSettings.setColor4("OwnNameChatColor", getChild<LLColorSwatchCtrl>("OwnNameChatColor")->get());
136 146
137 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC 147 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC
138 if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check")) 148 if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check"))