From eb4790e17ebf91c86884eb5a1540b9d9c0f70642 Mon Sep 17 00:00:00 2001 From: David Seikel Date: Sat, 26 Feb 2011 13:17:30 +1000 Subject: Change the skin preferences panel to have the meta skins. --- linden/indra/newview/llpanelskins.cpp | 24 +++++------ linden/indra/newview/llpanelskins.h | 6 +-- .../default/textures/skin_thumbnail_Meta7.png | Bin 0 -> 26862 bytes .../textures/skin_thumbnail_white_Meta7.png | Bin 0 -> 13107 bytes .../default/xui/en-us/panel_preferences_skins.xml | 44 ++++++++++----------- 5 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 linden/indra/newview/skins/default/textures/skin_thumbnail_Meta7.png create mode 100644 linden/indra/newview/skins/default/textures/skin_thumbnail_white_Meta7.png (limited to 'linden/indra') diff --git a/linden/indra/newview/llpanelskins.cpp b/linden/indra/newview/llpanelskins.cpp index f35998f..fd1e365 100644 --- a/linden/indra/newview/llpanelskins.cpp +++ b/linden/indra/newview/llpanelskins.cpp @@ -58,10 +58,10 @@ BOOL LLPanelSkins::postBuild() skin_select->setCommitCallback(onSelectSkin); skin_select->setCallbackUserData(this); + getChild("meta7_preview")->setClickedCallback(onClickMeta7, this); + getChild("m7white_preview")->setClickedCallback(onClickM7White, this); + getChild("pslpurple_preview")->setClickedCallback(onClickPSLPurple, this); getChild("classic_preview")->setClickedCallback(onClickClassic, this); - getChild("silver_preview")->setClickedCallback(onClickSilver, this); - getChild("dark_preview")->setClickedCallback(onClickDark, this); - getChild("gemini_preview")->setClickedCallback(onClickGemini, this); refresh(); return TRUE; @@ -104,25 +104,25 @@ void LLPanelSkins::onClickClassic(void* data) } //static -void LLPanelSkins::onClickSilver(void* data) +void LLPanelSkins::onClickMeta7(void* data) { LLPanelSkins* self = (LLPanelSkins*)data; - gSavedSettings.setString("SkinCurrent", "silver"); - self->getChild("skin_selection")->setValue("silver"); + gSavedSettings.setString("SkinCurrent", "Meta7"); + self->getChild("skin_selection")->setValue("Meta7"); } //static -void LLPanelSkins::onClickDark(void* data) +void LLPanelSkins::onClickM7White(void* data) { LLPanelSkins* self = (LLPanelSkins*)data; - gSavedSettings.setString("SkinCurrent", "dark"); - self->getChild("skin_selection")->setValue("dark"); + gSavedSettings.setString("SkinCurrent", "white_Meta7"); + self->getChild("skin_selection")->setValue("white_Meta7"); } //static -void LLPanelSkins::onClickGemini(void* data) +void LLPanelSkins::onClickPSLPurple(void* data) { LLPanelSkins* self = (LLPanelSkins*)data; - gSavedSettings.setString("SkinCurrent", "gemini"); - self->getChild("skin_selection")->setValue("gemini"); + gSavedSettings.setString("SkinCurrent", "pslpurple"); + self->getChild("skin_selection")->setValue("pslpurple"); } diff --git a/linden/indra/newview/llpanelskins.h b/linden/indra/newview/llpanelskins.h index 8dbd556..615b619 100644 --- a/linden/indra/newview/llpanelskins.h +++ b/linden/indra/newview/llpanelskins.h @@ -50,9 +50,9 @@ public: private: static void onSelectSkin(LLUICtrl* ctrl, void* data); static void onClickClassic(void* data); - static void onClickSilver(void* data); - static void onClickDark(void* data); - static void onClickGemini(void* data); + static void onClickMeta7(void* data); + static void onClickM7White(void* data); + static void onClickPSLPurple(void* data); private: std::string mSkin; diff --git a/linden/indra/newview/skins/default/textures/skin_thumbnail_Meta7.png b/linden/indra/newview/skins/default/textures/skin_thumbnail_Meta7.png new file mode 100644 index 0000000..ab35bc0 Binary files /dev/null and b/linden/indra/newview/skins/default/textures/skin_thumbnail_Meta7.png differ diff --git a/linden/indra/newview/skins/default/textures/skin_thumbnail_white_Meta7.png b/linden/indra/newview/skins/default/textures/skin_thumbnail_white_Meta7.png new file mode 100644 index 0000000..e93ea4c Binary files /dev/null and b/linden/indra/newview/skins/default/textures/skin_thumbnail_white_Meta7.png differ diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_skins.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_skins.xml index 58a2989..b8dfbba 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_skins.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_skins.xml @@ -10,36 +10,36 @@ - - Default + + Meta 7 - - Silver + + Meta 7 white - - Dark + + PSL purple - - Gemini + + Classic -