diff options
author | McCabe Maxsted | 2009-09-16 10:02:19 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-16 13:49:43 -0700 |
commit | 15201e791e7572c7b573e427e12a81d7e39828a1 (patch) | |
tree | 4a74a4a26f3843f8b6225536fc8f29e821ee77b6 /linden | |
parent | Fixed min minimap size (diff) | |
download | meta-impy-15201e791e7572c7b573e427e12a81d7e39828a1.zip meta-impy-15201e791e7572c7b573e427e12a81d7e39828a1.tar.gz meta-impy-15201e791e7572c7b573e427e12a81d7e39828a1.tar.bz2 meta-impy-15201e791e7572c7b573e427e12a81d7e39828a1.tar.xz |
Moved Rotate Mini-Map option to mini-map menu, added first use dialog
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 11 | ||||
-rw-r--r-- | linden/indra/newview/llfirstuse.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/llfloatermap.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llnetmap.h | 12 | ||||
-rw-r--r-- | linden/indra/newview/llpanelgeneral.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml | 5 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/notify.xml | 5 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml | 4 |
10 files changed, 65 insertions, 6 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 4ae2db3..7ce7d11 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -10317,6 +10317,17 @@ | |||
10317 | <key>Value</key> | 10317 | <key>Value</key> |
10318 | <integer>1</integer> | 10318 | <integer>1</integer> |
10319 | </map> | 10319 | </map> |
10320 | <key>WarnFirstMiniMap</key> | ||
10321 | <map> | ||
10322 | <key>Comment</key> | ||
10323 | <string>Enables FirstMiniMap warning dialog</string> | ||
10324 | <key>Persist</key> | ||
10325 | <integer>1</integer> | ||
10326 | <key>Type</key> | ||
10327 | <string>Boolean</string> | ||
10328 | <key>Value</key> | ||
10329 | <integer>1</integer> | ||
10330 | </map> | ||
10320 | <key>WarnFirstOverrideKeys</key> | 10331 | <key>WarnFirstOverrideKeys</key> |
10321 | <map> | 10332 | <map> |
10322 | <key>Comment</key> | 10333 | <key>Comment</key> |
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index ee7053d..b807b17 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -131,6 +131,17 @@ void LLFirstUse::useMap() | |||
131 | } | 131 | } |
132 | 132 | ||
133 | // static | 133 | // static |
134 | void LLFirstUse::useMiniMap() | ||
135 | { | ||
136 | if (gSavedSettings.getWarning("FirstMiniMap")) | ||
137 | { | ||
138 | gSavedSettings.setWarning("FirstMiniMap", FALSE); | ||
139 | |||
140 | LLNotifyBox::showXml("FirstMiniMap"); | ||
141 | } | ||
142 | } | ||
143 | |||
144 | // static | ||
134 | void LLFirstUse::useGoTo() | 145 | void LLFirstUse::useGoTo() |
135 | { | 146 | { |
136 | // nothing for now JC | 147 | // nothing for now JC |
diff --git a/linden/indra/newview/llfirstuse.h b/linden/indra/newview/llfirstuse.h index eef0537..cbb31ab 100644 --- a/linden/indra/newview/llfirstuse.h +++ b/linden/indra/newview/llfirstuse.h | |||
@@ -92,6 +92,7 @@ public: | |||
92 | static void useBalanceDecrease(S32 delta); | 92 | static void useBalanceDecrease(S32 delta); |
93 | static void useSit(); | 93 | static void useSit(); |
94 | static void useMap(); | 94 | static void useMap(); |
95 | static void useMiniMap(); | ||
95 | static void useGoTo(); | 96 | static void useGoTo(); |
96 | static void useBuild(); | 97 | static void useBuild(); |
97 | static void useLeftClickNoHit(); | 98 | static void useLeftClickNoHit(); |
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp index e70f4f1..a1ab97e 100644 --- a/linden/indra/newview/llfloatermap.cpp +++ b/linden/indra/newview/llfloatermap.cpp | |||
@@ -43,6 +43,7 @@ | |||
43 | #include "lluictrlfactory.h" | 43 | #include "lluictrlfactory.h" |
44 | 44 | ||
45 | // radar | 45 | // radar |
46 | #include "llfirstuse.h" | ||
46 | #include "llfloateravatarinfo.h" | 47 | #include "llfloateravatarinfo.h" |
47 | #include "llfloaterfriends.h" | 48 | #include "llfloaterfriends.h" |
48 | #include "llfloatergroupinvite.h" | 49 | #include "llfloatergroupinvite.h" |
@@ -172,6 +173,7 @@ void LLFloaterMap::open() | |||
172 | if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWMINIMAP)) | 173 | if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWMINIMAP)) |
173 | { | 174 | { |
174 | LLFloater::open(); | 175 | LLFloater::open(); |
176 | LLFirstUse::useMiniMap(); | ||
175 | } | 177 | } |
176 | } | 178 | } |
177 | // [/RLVa:KB] | 179 | // [/RLVa:KB] |
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index c1a25f9..c407f04 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -99,6 +99,8 @@ LLNetMap::LLNetMap(const std::string& name) : | |||
99 | (new LLScaleMap())->registerListener(this, "MiniMap.ZoomLevel"); | 99 | (new LLScaleMap())->registerListener(this, "MiniMap.ZoomLevel"); |
100 | (new LLCenterMap())->registerListener(this, "MiniMap.Center"); | 100 | (new LLCenterMap())->registerListener(this, "MiniMap.Center"); |
101 | (new LLCheckCenterMap())->registerListener(this, "MiniMap.CheckCenter"); | 101 | (new LLCheckCenterMap())->registerListener(this, "MiniMap.CheckCenter"); |
102 | (new LLRotateMap())->registerListener(this, "MiniMap.Rotate"); | ||
103 | (new LLCheckRotateMap())->registerListener(this, "MiniMap.CheckRotate"); | ||
102 | (new LLShowWorldMap())->registerListener(this, "MiniMap.ShowWorldMap"); | 104 | (new LLShowWorldMap())->registerListener(this, "MiniMap.ShowWorldMap"); |
103 | (new LLStopTracking())->registerListener(this, "MiniMap.StopTracking"); | 105 | (new LLStopTracking())->registerListener(this, "MiniMap.StopTracking"); |
104 | (new LLEnableTracking())->registerListener(this, "MiniMap.EnableTracking"); | 106 | (new LLEnableTracking())->registerListener(this, "MiniMap.EnableTracking"); |
@@ -935,6 +937,22 @@ bool LLNetMap::LLScaleMap::handleEvent(LLPointer<LLEvent> event, const LLSD& use | |||
935 | return true; | 937 | return true; |
936 | } | 938 | } |
937 | 939 | ||
940 | bool LLNetMap::LLRotateMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
941 | { | ||
942 | BOOL rotate = gSavedSettings.getBOOL("MiniMapRotate"); | ||
943 | gSavedSettings.setBOOL("MiniMapRotate", !rotate); | ||
944 | |||
945 | return true; | ||
946 | } | ||
947 | |||
948 | bool LLNetMap::LLCheckRotateMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
949 | { | ||
950 | LLNetMap *self = mPtr; | ||
951 | BOOL enabled = gSavedSettings.getBOOL("MiniMapRotate"); | ||
952 | self->findControl(userdata["control"].asString())->setValue(enabled); | ||
953 | return true; | ||
954 | } | ||
955 | |||
938 | bool LLNetMap::LLCenterMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 956 | bool LLNetMap::LLCenterMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
939 | { | 957 | { |
940 | S32 center = userdata.asInteger(); | 958 | S32 center = userdata.asInteger(); |
diff --git a/linden/indra/newview/llnetmap.h b/linden/indra/newview/llnetmap.h index 45b5e2d..55fbe1f 100644 --- a/linden/indra/newview/llnetmap.h +++ b/linden/indra/newview/llnetmap.h | |||
@@ -142,6 +142,18 @@ private: | |||
142 | /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata); | 142 | /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata); |
143 | }; | 143 | }; |
144 | 144 | ||
145 | class LLRotateMap : public LLMemberListener<LLNetMap> | ||
146 | { | ||
147 | public: | ||
148 | /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata); | ||
149 | }; | ||
150 | |||
151 | class LLCheckRotateMap : public LLMemberListener<LLNetMap> | ||
152 | { | ||
153 | public: | ||
154 | /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata); | ||
155 | }; | ||
156 | |||
145 | class LLShowWorldMap : public LLMemberListener<LLNetMap> | 157 | class LLShowWorldMap : public LLMemberListener<LLNetMap> |
146 | { | 158 | { |
147 | public: | 159 | public: |
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index f370116..490e40d 100644 --- a/linden/indra/newview/llpanelgeneral.cpp +++ b/linden/indra/newview/llpanelgeneral.cpp | |||
@@ -60,7 +60,6 @@ BOOL LLPanelGeneral::postBuild() | |||
60 | childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames")); | 60 | childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames")); |
61 | childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle")); | 61 | childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle")); |
62 | childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); | 62 | childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); |
63 | childSetValue("rotate_mini_map_checkbox", gSavedSettings.getBOOL("MiniMapRotate")); | ||
64 | childSetValue("notify_money_change_checkbox", gSavedSettings.getBOOL("NotifyMoneyChange")); | 63 | childSetValue("notify_money_change_checkbox", gSavedSettings.getBOOL("NotifyMoneyChange")); |
65 | childSetValue("use_system_color_picker_checkbox", gSavedSettings.getBOOL("UseDefaultColorPicker")); | 64 | childSetValue("use_system_color_picker_checkbox", gSavedSettings.getBOOL("UseDefaultColorPicker")); |
66 | childSetValue("show_search_panel", gSavedSettings.getBOOL("ShowSearchBar")); | 65 | childSetValue("show_search_panel", gSavedSettings.getBOOL("ShowSearchBar")); |
@@ -96,7 +95,6 @@ void LLPanelGeneral::apply() | |||
96 | gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox")); | 95 | gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox")); |
97 | gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox")); | 96 | gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox")); |
98 | gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); | 97 | gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); |
99 | gSavedSettings.setBOOL("MiniMapRotate", childGetValue("rotate_mini_map_checkbox")); | ||
100 | gSavedSettings.setBOOL("NotifyMoneyChange", childGetValue("notify_money_change_checkbox")); | 98 | gSavedSettings.setBOOL("NotifyMoneyChange", childGetValue("notify_money_change_checkbox")); |
101 | gSavedSettings.setBOOL("UseDefaultColorPicker", childGetValue("use_system_color_picker_checkbox")); | 99 | gSavedSettings.setBOOL("UseDefaultColorPicker", childGetValue("use_system_color_picker_checkbox")); |
102 | gSavedSettings.setBOOL("ShowSearchBar", childGetValue("show_search_panel")); | 100 | gSavedSettings.setBOOL("ShowSearchBar", childGetValue("show_search_panel")); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml b/linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml index 485ae9f..0172b41 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml | |||
@@ -19,6 +19,11 @@ | |||
19 | <on_click function="MiniMap.Center" userdata="1" /> | 19 | <on_click function="MiniMap.Center" userdata="1" /> |
20 | <on_check function="MiniMap.CheckCenter" userdata="1" /> | 20 | <on_check function="MiniMap.CheckCenter" userdata="1" /> |
21 | </menu_item_check> | 21 | </menu_item_check> |
22 | <menu_item_check bottom_delta="-18" enabled="true" height="18" label="Rotate Mini-Map" | ||
23 | left="0" mouse_opaque="true" name="Rotate Mini-Map" width="128"> | ||
24 | <on_click function="MiniMap.Rotate" userdata="" /> | ||
25 | <on_check function="MiniMap.CheckRotate" userdata="" /> | ||
26 | </menu_item_check> | ||
22 | <menu_item_separator /> | 27 | <menu_item_separator /> |
23 | <menu_item_call bottom_delta="-18" enabled = "false" height="18" label="Show Map" | 28 | <menu_item_call bottom_delta="-18" enabled = "false" height="18" label="Show Map" |
24 | left="0" mouse_opaque="true" name="Show Map" width="128"> | 29 | left="0" mouse_opaque="true" name="Show Map" width="128"> |
diff --git a/linden/indra/newview/skins/default/xui/en-us/notify.xml b/linden/indra/newview/skins/default/xui/en-us/notify.xml index 99fe75a..01e2546 100644 --- a/linden/indra/newview/skins/default/xui/en-us/notify.xml +++ b/linden/indra/newview/skins/default/xui/en-us/notify.xml | |||
@@ -835,6 +835,11 @@ Use the controls on the right to find things | |||
835 | and display different backgrounds. | 835 | and display different backgrounds. |
836 | </message> | 836 | </message> |
837 | </notify> | 837 | </notify> |
838 | <notify name="FirstMiniMap" tip="false"> | ||
839 | <message name="message"> | ||
840 | Right-click the Mini-Map for more options. | ||
841 | </message> | ||
842 | </notify> | ||
838 | <notify name="FirstBuild" tip="false"> | 843 | <notify name="FirstBuild" tip="false"> |
839 | <message name="message"> | 844 | <message name="message"> |
840 | You can build new objects in some areas of [SECOND_LIFE]. | 845 | You can build new objects in some areas of [SECOND_LIFE]. |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml index ea04dfc..e8a2625 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml | |||
@@ -73,10 +73,6 @@ | |||
73 | follows="left|top" height="16" increment="1" initial_val="300" | 73 | follows="left|top" height="16" increment="1" initial_val="300" |
74 | label="Away Timeout:" label_width="141" left="10" max_val="600" | 74 | label="Away Timeout:" label_width="141" left="10" max_val="600" |
75 | min_val="30" mouse_opaque="true" name="afk_timeout_spinner" width="202" /> | 75 | min_val="30" mouse_opaque="true" name="afk_timeout_spinner" width="202" /> |
76 | <check_box bottom="-286" enabled="true" follows="left|top" | ||
77 | font="SansSerifSmall" height="16" initial_value="false" | ||
78 | label="Rotate Mini-Map" left="151" mouse_opaque="true" | ||
79 | name="rotate_mini_map_checkbox" radio_style="false" width="256" /> | ||
80 | <check_box bottom="-304" enabled="true" | 76 | <check_box bottom="-304" enabled="true" |
81 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" | 77 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" |
82 | label="Notify when Linden dollars (L$) spent or received" left="151" | 78 | label="Notify when Linden dollars (L$) spent or received" left="151" |