Added a setting, LiruMouselookMenu, in case people don't want this feature.

This commit is contained in:
Inusaito Sayori
2013-10-21 16:01:31 -04:00
parent d95e1800e1
commit dde18dfc0f
2 changed files with 12 additions and 1 deletions

View File

@@ -786,6 +786,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruMouselookMenu</key>
<map>
<key>Comment</key>
<string>Controls if holding Alt and right clicking in mouselook will bring up a menu</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>1</boolean>
</map>
<key>LiruNewARCLimit</key>
<map>
<key>Comment</key>

View File

@@ -764,7 +764,7 @@ BOOL LLToolCompGun::handleRightMouseDown(S32 x, S32 y, MASK mask)
// be shown.
return FALSE;
*/
if (mask & MASK_ALT) return false;
if (gSavedSettings.getBOOL("LiruMouselookMenu") && mask & MASK_ALT) return false;
// Returning true will suppress the context menu
return TRUE;