Feature Request: Add an option to "Make rightclick zoom instantaneous, not smooth" (in Input & Camera preferences)
This commit is contained in:
@@ -867,6 +867,17 @@
|
||||
<key>Value</key>
|
||||
<boolean>1</boolean>
|
||||
</map>
|
||||
<key>LiruMouselookInstantZoom</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Whether or not the right click zoom in mouselook will be instant or smoothly transition between zooms</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>0</boolean>
|
||||
</map>
|
||||
<key>LiruMouselookMenu</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -783,6 +783,7 @@ BOOL LLToolCompGun::handleRightMouseUp(S32 x, S32 y, MASK mask)
|
||||
|
||||
mStartFOV = LLViewerCamera::getInstance()->getDefaultFOV();
|
||||
mTargetFOV = mOriginalFOV;
|
||||
gSavedSettings.getBOOL("LiruMouselookInstantZoom") ? LLViewerCamera::getInstance()->setDefaultFOV(mTargetFOV) :
|
||||
mTimerFOV.start();
|
||||
}
|
||||
|
||||
@@ -814,6 +815,7 @@ BOOL LLToolCompGun::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
||||
else mStartFOV = LLViewerCamera::getInstance()->getDefaultFOV();
|
||||
|
||||
mTargetFOV = gSavedSettings.getF32("ExodusAlternativeFOV");
|
||||
gSavedSettings.getBOOL("LiruMouselookInstantZoom") ? LLViewerCamera::getInstance()->setDefaultFOV(mTargetFOV) :
|
||||
mTimerFOV.start();
|
||||
|
||||
return TRUE;
|
||||
@@ -832,6 +834,7 @@ BOOL LLToolCompGun::handleScrollWheel(S32 x, S32 y, S32 clicks)
|
||||
llclamp(mTargetFOV -= (0.05f * -clicks), 0.1f, 3.0f)
|
||||
);
|
||||
|
||||
gSavedSettings.getBOOL("LiruMouselookInstantZoom") ? LLViewerCamera::getInstance()->setDefaultFOV(mTargetFOV) :
|
||||
mTimerFOV.start();
|
||||
}
|
||||
else if (clicks > 0) gAgentCamera.changeCameraToDefault();
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<text bottom="-20" follows="top" height="10" left="148" name=" Mouse Sensitivity:">Mouse Sensitivity:</text>
|
||||
<slider_bar bottom="-26" follows="top" height="16" increment="0.25" initial_val="2" left="276" max_val="15" min_val="0" name="mouse_sensitivity" width="128"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" label="Invert Mouse" left="148" name="invert_mouse"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" control_name="LiruMouselookInstantZoom" label="Make rightclick zoom instantaneous, not smooth" name="instant_zoom"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" initial_value="false" label="Show Avatar in Mouselook" name="first_person_avatar_visible"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" control_name="UseRealisticMouselook" label="Use 'realistic' Camera behavior in Mouselook" name="UseRealisticMouselook"/>
|
||||
<text bottom_delta="-18" follows="top" height="16" name="UI Hidden in mouselook:">UI Hidden in mouselook:</text>
|
||||
|
||||
Reference in New Issue
Block a user