aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelskins.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelskins.cpp')
-rw-r--r--linden/indra/newview/llpanelskins.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelskins.cpp b/linden/indra/newview/llpanelskins.cpp
index 26de356..831adc8 100644
--- a/linden/indra/newview/llpanelskins.cpp
+++ b/linden/indra/newview/llpanelskins.cpp
@@ -60,6 +60,8 @@ BOOL LLPanelSkins::postBuild()
60 60
61 getChild<LLButton>("classic_preview")->setClickedCallback(onClickClassic, this); 61 getChild<LLButton>("classic_preview")->setClickedCallback(onClickClassic, this);
62 getChild<LLButton>("silver_preview")->setClickedCallback(onClickSilver, this); 62 getChild<LLButton>("silver_preview")->setClickedCallback(onClickSilver, this);
63 getChild<LLButton>("dark_preview")->setClickedCallback(onClickDark, this);
64 getChild<LLButton>("gemini_preview")->setClickedCallback(onClickGemini, this);
63 65
64 refresh(); 66 refresh();
65 return TRUE; 67 return TRUE;
@@ -108,3 +110,19 @@ void LLPanelSkins::onClickSilver(void* data)
108 gSavedSettings.setString("SkinCurrent", "silver"); 110 gSavedSettings.setString("SkinCurrent", "silver");
109 self->getChild<LLRadioGroup>("skin_selection")->setValue("silver"); 111 self->getChild<LLRadioGroup>("skin_selection")->setValue("silver");
110} 112}
113
114//static
115void LLPanelSkins::onClickDark(void* data)
116{
117 LLPanelSkins* self = (LLPanelSkins*)data;
118 gSavedSettings.setString("SkinCurrent", "dark");
119 self->getChild<LLRadioGroup>("skin_selection")->setValue("dark");
120}
121
122//static
123void LLPanelSkins::onClickGemini(void* data)
124{
125 LLPanelSkins* self = (LLPanelSkins*)data;
126 gSavedSettings.setString("SkinCurrent", "gemini");
127 self->getChild<LLRadioGroup>("skin_selection")->setValue("gemini");
128}