Right Click Mouse Scroll Zoom and Xcode fix
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
#include "llfloatertools.h"
|
||||
#include "qtoolalign.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewercamera.h"
|
||||
|
||||
const S32 BUTTON_HEIGHT = 16;
|
||||
const S32 BUTTON_WIDTH_SMALL = 32;
|
||||
@@ -799,6 +800,20 @@ void LLToolCompGun::handleDeselect()
|
||||
|
||||
BOOL LLToolCompGun::handleScrollWheel(S32 x, S32 y, S32 clicks)
|
||||
{
|
||||
//::MOYMOD::
|
||||
if(gSavedSettings.getBOOL("zmm_isinml") == 1)
|
||||
{
|
||||
if(clicks > 0)
|
||||
{
|
||||
gSavedSettings.setF32("zmm_mlfov", gSavedSettings.getF32("zmm_mlfov") / 1.1);
|
||||
}
|
||||
else if(clicks < 0)
|
||||
{
|
||||
gSavedSettings.setF32("zmm_mlfov", gSavedSettings.getF32("zmm_mlfov") * 1.1);
|
||||
}
|
||||
LLViewerCamera::getInstance()->setDefaultFOV(gSavedSettings.getF32("zmm_deffov") / gSavedSettings.getF32("zmm_mlfov"));
|
||||
return TRUE;
|
||||
}
|
||||
if (clicks > 0)
|
||||
{
|
||||
gAgentCamera.changeCameraToDefault();
|
||||
|
||||
Reference in New Issue
Block a user