diff options
author | David Seikel | 2011-02-26 13:17:30 +1000 |
---|---|---|
committer | David Seikel | 2011-02-26 13:17:30 +1000 |
commit | eb4790e17ebf91c86884eb5a1540b9d9c0f70642 (patch) | |
tree | 656f53903485499770e0fee320bdca5109ead6aa /linden/indra/newview | |
parent | Add the PSL purple skin. (diff) | |
download | meta-impy-eb4790e17ebf91c86884eb5a1540b9d9c0f70642.zip meta-impy-eb4790e17ebf91c86884eb5a1540b9d9c0f70642.tar.gz meta-impy-eb4790e17ebf91c86884eb5a1540b9d9c0f70642.tar.bz2 meta-impy-eb4790e17ebf91c86884eb5a1540b9d9c0f70642.tar.xz |
Change the skin preferences panel to have the meta skins.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llpanelskins.cpp | 24 | ||||
-rw-r--r-- | linden/indra/newview/llpanelskins.h | 6 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/textures/skin_thumbnail_Meta7.png | bin | 0 -> 26862 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/skin_thumbnail_white_Meta7.png | bin | 0 -> 13107 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_skins.xml | 44 |
5 files changed, 37 insertions, 37 deletions
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() | |||
58 | skin_select->setCommitCallback(onSelectSkin); | 58 | skin_select->setCommitCallback(onSelectSkin); |
59 | skin_select->setCallbackUserData(this); | 59 | skin_select->setCallbackUserData(this); |
60 | 60 | ||
61 | getChild<LLButton>("meta7_preview")->setClickedCallback(onClickMeta7, this); | ||
62 | getChild<LLButton>("m7white_preview")->setClickedCallback(onClickM7White, this); | ||
63 | getChild<LLButton>("pslpurple_preview")->setClickedCallback(onClickPSLPurple, this); | ||
61 | getChild<LLButton>("classic_preview")->setClickedCallback(onClickClassic, this); | 64 | getChild<LLButton>("classic_preview")->setClickedCallback(onClickClassic, 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); | ||
65 | 65 | ||
66 | refresh(); | 66 | refresh(); |
67 | return TRUE; | 67 | return TRUE; |
@@ -104,25 +104,25 @@ void LLPanelSkins::onClickClassic(void* data) | |||
104 | } | 104 | } |
105 | 105 | ||
106 | //static | 106 | //static |
107 | void LLPanelSkins::onClickSilver(void* data) | 107 | void LLPanelSkins::onClickMeta7(void* data) |
108 | { | 108 | { |
109 | LLPanelSkins* self = (LLPanelSkins*)data; | 109 | LLPanelSkins* self = (LLPanelSkins*)data; |
110 | gSavedSettings.setString("SkinCurrent", "silver"); | 110 | gSavedSettings.setString("SkinCurrent", "Meta7"); |
111 | self->getChild<LLRadioGroup>("skin_selection")->setValue("silver"); | 111 | self->getChild<LLRadioGroup>("skin_selection")->setValue("Meta7"); |
112 | } | 112 | } |
113 | 113 | ||
114 | //static | 114 | //static |
115 | void LLPanelSkins::onClickDark(void* data) | 115 | void LLPanelSkins::onClickM7White(void* data) |
116 | { | 116 | { |
117 | LLPanelSkins* self = (LLPanelSkins*)data; | 117 | LLPanelSkins* self = (LLPanelSkins*)data; |
118 | gSavedSettings.setString("SkinCurrent", "dark"); | 118 | gSavedSettings.setString("SkinCurrent", "white_Meta7"); |
119 | self->getChild<LLRadioGroup>("skin_selection")->setValue("dark"); | 119 | self->getChild<LLRadioGroup>("skin_selection")->setValue("white_Meta7"); |
120 | } | 120 | } |
121 | 121 | ||
122 | //static | 122 | //static |
123 | void LLPanelSkins::onClickGemini(void* data) | 123 | void LLPanelSkins::onClickPSLPurple(void* data) |
124 | { | 124 | { |
125 | LLPanelSkins* self = (LLPanelSkins*)data; | 125 | LLPanelSkins* self = (LLPanelSkins*)data; |
126 | gSavedSettings.setString("SkinCurrent", "gemini"); | 126 | gSavedSettings.setString("SkinCurrent", "pslpurple"); |
127 | self->getChild<LLRadioGroup>("skin_selection")->setValue("gemini"); | 127 | self->getChild<LLRadioGroup>("skin_selection")->setValue("pslpurple"); |
128 | } | 128 | } |
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: | |||
50 | private: | 50 | private: |
51 | static void onSelectSkin(LLUICtrl* ctrl, void* data); | 51 | static void onSelectSkin(LLUICtrl* ctrl, void* data); |
52 | static void onClickClassic(void* data); | 52 | static void onClickClassic(void* data); |
53 | static void onClickSilver(void* data); | 53 | static void onClickMeta7(void* data); |
54 | static void onClickDark(void* data); | 54 | static void onClickM7White(void* data); |
55 | static void onClickGemini(void* data); | 55 | static void onClickPSLPurple(void* data); |
56 | 56 | ||
57 | private: | 57 | private: |
58 | std::string mSkin; | 58 | 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 --- /dev/null +++ b/linden/indra/newview/skins/default/textures/skin_thumbnail_Meta7.png | |||
Binary files 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 --- /dev/null +++ b/linden/indra/newview/skins/default/textures/skin_thumbnail_white_Meta7.png | |||
Binary files 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 @@ | |||
10 | </text> | 10 | </text> |
11 | <radio_group bottom="0" draw_border="false" follows="top|left" height="380" left="12" | 11 | <radio_group bottom="0" draw_border="false" follows="top|left" height="380" left="12" |
12 | name="skin_selection" width="480"> | 12 | name="skin_selection" width="480"> |
13 | <radio_item bottom="-20" height="20" left="0" name="default" width="480"> | 13 | <radio_item bottom="-20" height="20" left="0" name="Meta7" width="480"> |
14 | Default | 14 | Meta 7 |
15 | </radio_item> | 15 | </radio_item> |
16 | <radio_item bottom_delta="-50" height="20" left="0" name="silver" width="480"> | 16 | <radio_item bottom_delta="-50" height="20" left="0" name="white_Meta7" width="480"> |
17 | Silver | 17 | Meta 7 white |
18 | </radio_item> | 18 | </radio_item> |
19 | <radio_item bottom_delta="-50" height="20" left="0" name="dark" width="480"> | 19 | <radio_item bottom_delta="-50" height="20" left="0" name="pslpurple" width="480"> |
20 | Dark | 20 | PSL purple |
21 | </radio_item> | 21 | </radio_item> |
22 | <radio_item bottom_delta="-50" height="20" left="0" name="gemini" width="480"> | 22 | <radio_item bottom_delta="-50" height="20" left="0" name="default" width="480"> |
23 | Gemini | 23 | Classic |
24 | </radio_item> | 24 | </radio_item> |
25 | </radio_group> | 25 | </radio_group> |
26 | 26 | ||
27 | <button left="130" bottom="-125" width="216" height="95" name="classic_preview" | 27 | <button left="130" bottom="-125" width="216" height="95" name="meta7_preview" |
28 | scale_image="true" label="" image_selected="skin_thumbnail_Meta7.png" | ||
29 | image_unselected="skin_thumbnail_Meta7.png" image_hover_selected="skin_thumbnail_Meta7.png" | ||
30 | image_hover_unselected="skin_thumbnail_Meta7.png" follows="left|top" /> | ||
31 | <button left="130" bottom_delta="-100" width="216" height="95" name="m7white_preview" | ||
32 | scale_image="true" label="" image_selected="skin_thumbnail_white_Meta7.png" | ||
33 | image_hover_selected="skin_thumbnail_white_Meta7.png" image_unselected="skin_thumbnail_white_Meta7.png" | ||
34 | image_hover_unselected="skin_thumbnail_white_Meta7.png" follows="left|top" /> | ||
35 | <button left="130" bottom_delta="-100" width="216" height="95" name="pslpurple_preview" | ||
36 | scale_image="true" label="" image_selected="skin_thumbnail_pslpurple.png" | ||
37 | image_hover_selected="skin_thumbnail_pslpurple.png" image_unselected="skin_thumbnail_pslpurple.png" | ||
38 | image_hover_unselected="skin_thumbnail_pslpurple.png" follows="left|top" /> | ||
39 | <button left="130" bottom_delta="-100" width="216" height="95" name="classic_preview" | ||
28 | scale_image="true" label="" image_selected="skin_thumbnail_default.png" | 40 | scale_image="true" label="" image_selected="skin_thumbnail_default.png" |
29 | image_unselected="skin_thumbnail_default.png" image_hover_selected="skin_thumbnail_default.png" | 41 | image_hover_selected="skin_thumbnail_default.png" image_unselected="skin_thumbnail_default.png" |
30 | image_hover_unselected="skin_thumbnail_default.png" follows="left|top" /> | 42 | image_hover_unselected="skin_thumbnail_default.png" follows="left|top" /> |
31 | <button left="130" bottom_delta="-100" width="216" height="95" name="silver_preview" | ||
32 | scale_image="true" label="" image_selected="skin_thumbnail_silver.png" | ||
33 | image_hover_selected="skin_thumbnail_silver.png" image_unselected="skin_thumbnail_silver.png" | ||
34 | image_hover_unselected="skin_thumbnail_silver.png" follows="left|top" /> | ||
35 | <button left="130" bottom_delta="-100" width="216" height="95" name="dark_preview" | ||
36 | scale_image="true" label="" image_selected="skin_thumbnail_dark.png" | ||
37 | image_hover_selected="skin_thumbnail_dark.png" image_unselected="skin_thumbnail_dark.png" | ||
38 | image_hover_unselected="skin_thumbnail_dark.png" follows="left|top" /> | ||
39 | <button left="130" bottom_delta="-100" width="216" height="95" name="gemini_preview" | ||
40 | scale_image="true" label="" image_selected="skin_thumbnail_gemini.png" | ||
41 | image_hover_selected="skin_thumbnail_gemini.png" image_unselected="skin_thumbnail_gemini.png" | ||
42 | image_hover_unselected="skin_thumbnail_gemini.png" follows="left|top" /> | ||
43 | <text name="skin_current_text" | 43 | <text name="skin_current_text" |
44 | left="10" bottom="5" halign="left" height="12" | 44 | left="10" bottom="5" halign="left" height="12" |
45 | follows="left|bottom" h_pad="0" v_pad="0" | 45 | follows="left|bottom" h_pad="0" v_pad="0" |