diff options
author | McCabe Maxsted | 2009-01-12 11:22:53 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-01-12 11:22:53 -0700 |
commit | 86511aff8399dc98a44990bc5c022d8a39bf20be (patch) | |
tree | 652ea990109529d5ab410241ab62e61bd1277ee0 /linden | |
parent | Backported 'report abuse' avatar pie menu option (diff) | |
parent | Fixed changelog date (2009 not 2008). (diff) | |
download | meta-impy-86511aff8399dc98a44990bc5c022d8a39bf20be.zip meta-impy-86511aff8399dc98a44990bc5c022d8a39bf20be.tar.gz meta-impy-86511aff8399dc98a44990bc5c022d8a39bf20be.tar.bz2 meta-impy-86511aff8399dc98a44990bc5c022d8a39bf20be.tar.xz |
Double clicking minimap tps
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 19 | ||||
-rw-r--r-- | linden/indra/newview/llpanelgeneral.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llpanelgeneral.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml | 4 |
5 files changed, 33 insertions, 4 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 7e591bf..af15b86 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -4730,6 +4730,17 @@ | |||
4730 | <key>Value</key> | 4730 | <key>Value</key> |
4731 | <integer>1</integer> | 4731 | <integer>1</integer> |
4732 | </map> | 4732 | </map> |
4733 | <key>MiniMapTeleport</key> | ||
4734 | <map> | ||
4735 | <key>Comment</key> | ||
4736 | <string>Teleport on Mini-Map double click </string> | ||
4737 | <key>Persist</key> | ||
4738 | <integer>1</integer> | ||
4739 | <key>Type</key> | ||
4740 | <string>Boolean</string> | ||
4741 | <key>Value</key> | ||
4742 | <integer>1</integer> | ||
4743 | </map> | ||
4733 | <key>MiniMapScale</key> | 4744 | <key>MiniMapScale</key> |
4734 | <map> | 4745 | <map> |
4735 | <key>Comment</key> | 4746 | <key>Comment</key> |
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index 22dee9d..ee853fe 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -604,9 +604,13 @@ BOOL LLNetMap::handleToolTip( S32 x, S32 y, std::string& msg, LLRect* sticky_rec | |||
604 | buffer = region->getHost().getString(); | 604 | buffer = region->getHost().getString(); |
605 | msg.append(buffer); | 605 | msg.append(buffer); |
606 | #endif | 606 | #endif |
607 | // *TODO: put this under the control of XUI so it can be | 607 | // *TODO: |
608 | // translated. | 608 | // - put this under the control of XUI so it can be translated. |
609 | msg.append("\n(Double-click to open Map)"); | 609 | |
610 | if ( gSavedSettings.getBOOL( "MiniMapTeleport" )) | ||
611 | msg.append("\n(Double-click to teleport)"); | ||
612 | else | ||
613 | msg.append("\n(Double-click to open Map)"); | ||
610 | 614 | ||
611 | S32 SLOP = 4; | 615 | S32 SLOP = 4; |
612 | localPointToScreen( | 616 | localPointToScreen( |
@@ -767,7 +771,14 @@ void LLNetMap::createObjectImage() | |||
767 | 771 | ||
768 | BOOL LLNetMap::handleDoubleClick( S32 x, S32 y, MASK mask ) | 772 | BOOL LLNetMap::handleDoubleClick( S32 x, S32 y, MASK mask ) |
769 | { | 773 | { |
770 | LLFloaterWorldMap::show(NULL, FALSE); | 774 | if (gSavedSettings.getBOOL( "MiniMapTeleport" )) |
775 | { | ||
776 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); | ||
777 | gAgent.teleportViaLocation( viewPosToGlobal(x,y) ); | ||
778 | } | ||
779 | else | ||
780 | LLFloaterWorldMap::show(NULL, FALSE); | ||
781 | |||
771 | return TRUE; | 782 | return TRUE; |
772 | } | 783 | } |
773 | 784 | ||
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index 256f02a..47bc60e 100644 --- a/linden/indra/newview/llpanelgeneral.cpp +++ b/linden/indra/newview/llpanelgeneral.cpp | |||
@@ -199,6 +199,7 @@ void LLPanelGeneral::refresh() | |||
199 | mChatOnlineNotification = gSavedSettings.getBOOL("ChatOnlineNotification"); | 199 | mChatOnlineNotification = gSavedSettings.getBOOL("ChatOnlineNotification"); |
200 | mAFKTimeout = gSavedSettings.getF32("AFKTimeout"); | 200 | mAFKTimeout = gSavedSettings.getF32("AFKTimeout"); |
201 | mMiniMapRotate = gSavedSettings.getBOOL("MiniMapRotate"); | 201 | mMiniMapRotate = gSavedSettings.getBOOL("MiniMapRotate"); |
202 | mMiniMapTeleport = gSavedSettings.getBOOL("MiniMapTeleport"); | ||
202 | mNotifyMoney = gSavedSettings.getBOOL("NotifyMoneyChange"); | 203 | mNotifyMoney = gSavedSettings.getBOOL("NotifyMoneyChange"); |
203 | mUseDefaultColor = gSavedSettings.getBOOL("UseDefaultColorPicker"); | 204 | mUseDefaultColor = gSavedSettings.getBOOL("UseDefaultColorPicker"); |
204 | mEffectColor = gSavedSettings.getColor4("EffectColor"); | 205 | mEffectColor = gSavedSettings.getColor4("EffectColor"); |
@@ -223,6 +224,7 @@ void LLPanelGeneral::cancel() | |||
223 | gSavedSettings.setBOOL("ChatOnlineNotification", mChatOnlineNotification ); | 224 | gSavedSettings.setBOOL("ChatOnlineNotification", mChatOnlineNotification ); |
224 | gSavedSettings.setF32("AFKTimeout", mAFKTimeout ); | 225 | gSavedSettings.setF32("AFKTimeout", mAFKTimeout ); |
225 | gSavedSettings.setBOOL("MiniMapRotate", mMiniMapRotate ); | 226 | gSavedSettings.setBOOL("MiniMapRotate", mMiniMapRotate ); |
227 | gSavedSettings.setBOOL("MiniMapTeleport", mMiniMapTeleport); | ||
226 | gSavedSettings.setBOOL("NotifyMoneyChange", mNotifyMoney ); | 228 | gSavedSettings.setBOOL("NotifyMoneyChange", mNotifyMoney ); |
227 | gSavedSettings.setBOOL("UseDefaultColorPicker", mUseDefaultColor ); | 229 | gSavedSettings.setBOOL("UseDefaultColorPicker", mUseDefaultColor ); |
228 | gSavedSettings.setBOOL("ShowSearchBar", mShowSearch); | 230 | gSavedSettings.setBOOL("ShowSearchBar", mShowSearch); |
diff --git a/linden/indra/newview/llpanelgeneral.h b/linden/indra/newview/llpanelgeneral.h index a7b526d..95a95f8 100644 --- a/linden/indra/newview/llpanelgeneral.h +++ b/linden/indra/newview/llpanelgeneral.h | |||
@@ -71,6 +71,7 @@ protected: | |||
71 | F32 mUIScaleFactor; | 71 | F32 mUIScaleFactor; |
72 | BOOL mUIAutoScale; | 72 | BOOL mUIAutoScale; |
73 | BOOL mMiniMapRotate; | 73 | BOOL mMiniMapRotate; |
74 | BOOL mMiniMapTeleport; | ||
74 | S32 mOldCrashBehavior; | 75 | S32 mOldCrashBehavior; |
75 | std::string mLoginLocation; | 76 | std::string mLoginLocation; |
76 | std::string mLanguage; | 77 | std::string mLanguage; |
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 67d3307..092daab 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 | |||
@@ -76,6 +76,10 @@ | |||
76 | font="SansSerifSmall" height="16" initial_value="false" | 76 | font="SansSerifSmall" height="16" initial_value="false" |
77 | label="Rotate Mini-Map" left="151" mouse_opaque="true" | 77 | label="Rotate Mini-Map" left="151" mouse_opaque="true" |
78 | name="rotate_mini_map_checkbox" radio_style="false" width="256" /> | 78 | name="rotate_mini_map_checkbox" radio_style="false" width="256" /> |
79 | <check_box bottom="-286" control_name="MiniMapTeleport" enabled="true" follows="left|top" | ||
80 | font="SansSerifSmall" height="16" initial_value="false" | ||
81 | label="Doubleclick Mini-Map Teleports" left="280" mouse_opaque="true" | ||
82 | name="teleport_mini_map_checkbox" radio_style="false" width="256" /> | ||
79 | <check_box bottom="-304" control_name="NotifyMoneyChange" enabled="true" | 83 | <check_box bottom="-304" control_name="NotifyMoneyChange" enabled="true" |
80 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" | 84 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" |
81 | label="Notify when Linden dollars (L$) spent or received" left="151" | 85 | label="Notify when Linden dollars (L$) spent or received" left="151" |