aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-13 01:54:12 -0700
committerMcCabe Maxsted2009-06-13 01:54:12 -0700
commitb31a6d0a43c2041c04ebe09c88f6ab3d10a5129a (patch)
treea6e90e2bca58b6b57abdc45b7ab5ad8742929a3d
parentApplied Aimee's patch for VWR-13221: Allow panning of the mini-map (diff)
downloadmeta-impy-b31a6d0a43c2041c04ebe09c88f6ab3d10a5129a.zip
meta-impy-b31a6d0a43c2041c04ebe09c88f6ab3d10a5129a.tar.gz
meta-impy-b31a6d0a43c2041c04ebe09c88f6ab3d10a5129a.tar.bz2
meta-impy-b31a6d0a43c2041c04ebe09c88f6ab3d10a5129a.tar.xz
Added 'Show Map' option to the mini-map menu
-rw-r--r--ChangeLog.txt9
-rw-r--r--linden/indra/newview/llnetmap.cpp7
-rw-r--r--linden/indra/newview/llnetmap.h6
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml4
4 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 9e73131..b174987 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,12 @@
12009-06-13 McCabe Maxsted <hakushakukun@gmail.com>
2
3 * Added 'Show Map' option to the mini-map menu.
4
5 modified: linden/indra/newview/llnetmap.cpp
6 modified: linden/indra/newview/llnetmap.h
7 modified: linden/indra/newview/skins/default/xui/en-us/menu_mini_map.xml
8
9
12009-06-12 McCabe Maxsted <hakushakukun@gmail.com> 102009-06-12 McCabe Maxsted <hakushakukun@gmail.com>
2 11
3 * Applied patch by Robin Cornelius for VWR-12686: 12 * Applied patch by Robin Cornelius for VWR-12686:
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 585e8eb..85b0f28 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -96,6 +96,7 @@ LLNetMap::LLNetMap(const std::string& name) :
96 (new LLScaleMap())->registerListener(this, "MiniMap.ZoomLevel"); 96 (new LLScaleMap())->registerListener(this, "MiniMap.ZoomLevel");
97 (new LLCenterMap())->registerListener(this, "MiniMap.Center"); 97 (new LLCenterMap())->registerListener(this, "MiniMap.Center");
98 (new LLCheckCenterMap())->registerListener(this, "MiniMap.CheckCenter"); 98 (new LLCheckCenterMap())->registerListener(this, "MiniMap.CheckCenter");
99 (new LLShowWorldMap())->registerListener(this, "MiniMap.ShowWorldMap");
99 (new LLStopTracking())->registerListener(this, "MiniMap.StopTracking"); 100 (new LLStopTracking())->registerListener(this, "MiniMap.StopTracking");
100 (new LLEnableTracking())->registerListener(this, "MiniMap.EnableTracking"); 101 (new LLEnableTracking())->registerListener(this, "MiniMap.EnableTracking");
101 (new LLShowAgentProfile())->registerListener(this, "MiniMap.ShowProfile"); 102 (new LLShowAgentProfile())->registerListener(this, "MiniMap.ShowProfile");
@@ -902,6 +903,12 @@ bool LLNetMap::LLCheckCenterMap::handleEvent(LLPointer<LLEvent> event, const LLS
902 return true; 903 return true;
903} 904}
904 905
906bool LLNetMap::LLShowWorldMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
907{
908 LLFloaterWorldMap::show(NULL, FALSE);
909 return true;
910}
911
905bool LLNetMap::LLStopTracking::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 912bool LLNetMap::LLStopTracking::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
906{ 913{
907 LLTracker::stopTracking(NULL); 914 LLTracker::stopTracking(NULL);
diff --git a/linden/indra/newview/llnetmap.h b/linden/indra/newview/llnetmap.h
index 508e882..ef046d8 100644
--- a/linden/indra/newview/llnetmap.h
+++ b/linden/indra/newview/llnetmap.h
@@ -140,6 +140,12 @@ private:
140 /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata); 140 /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata);
141 }; 141 };
142 142
143 class LLShowWorldMap : public LLMemberListener<LLNetMap>
144 {
145 public:
146 /*virtual*/ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata);
147 };
148
143 class LLStopTracking : public LLMemberListener<LLNetMap> 149 class LLStopTracking : public LLMemberListener<LLNetMap>
144 { 150 {
145 public: 151 public:
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 68eb4e6..485ae9f 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
@@ -20,6 +20,10 @@
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_separator /> 22 <menu_item_separator />
23 <menu_item_call bottom_delta="-18" enabled = "false" height="18" label="Show Map"
24 left="0" mouse_opaque="true" name="Show Map" width="128">
25 <on_click function="MiniMap.ShowWorldMap" userdata="" />
26 </menu_item_call>
23 <menu_item_call bottom_delta="-18" enabled = "false" height="18" label="Stop Tracking" 27 <menu_item_call bottom_delta="-18" enabled = "false" height="18" label="Stop Tracking"
24 left="0" mouse_opaque="true" name="Stop Tracking" width="128"> 28 left="0" mouse_opaque="true" name="Stop Tracking" width="128">
25 <on_click function="MiniMap.StopTracking" /> 29 <on_click function="MiniMap.StopTracking" />