aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llnetmap.cpp18
1 files changed, 18 insertions, 0 deletions
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
940bool 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
948bool 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
938bool LLNetMap::LLCenterMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 956bool LLNetMap::LLCenterMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
939{ 957{
940 S32 center = userdata.asInteger(); 958 S32 center = userdata.asInteger();