|
|
|
@ -126,15 +126,16 @@ export default class CameraSetting extends Component
|
|
|
|
|
<div className='CameraVison'>
|
|
|
|
|
<Slider
|
|
|
|
|
disabled={IsOrthographicCamera}
|
|
|
|
|
value={MathUtils.clamp(CameraSettingStore.cameraFov, 30, 120)}
|
|
|
|
|
value={MathUtils.clamp(CameraSettingStore.cameraFov, 1, 120)}
|
|
|
|
|
max={120}
|
|
|
|
|
min={30}
|
|
|
|
|
min={1}
|
|
|
|
|
onChange={(e: number) =>
|
|
|
|
|
{
|
|
|
|
|
if (e <= 35) e = 30;
|
|
|
|
|
if (e >= 55 && e <= 65) e = 60;
|
|
|
|
|
if (e >= 85 && e <= 95) e = 90;
|
|
|
|
|
if (e >= 115) e = 120;
|
|
|
|
|
if (e <= 5) e = 1;
|
|
|
|
|
else if (e >= 25 && e <= 35) e = 30;
|
|
|
|
|
else if (e >= 55 && e <= 65) e = 60;
|
|
|
|
|
else if (e >= 85 && e <= 95) e = 90;
|
|
|
|
|
else if (e >= 115) e = 120;
|
|
|
|
|
this.AlterCameraVision(e);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
@ -167,7 +168,7 @@ export default class CameraSetting extends Component
|
|
|
|
|
tabIndex={1}
|
|
|
|
|
allowNumericCharactersOnly={true}
|
|
|
|
|
value={CameraSettingStore.cameraFov}
|
|
|
|
|
min={30}
|
|
|
|
|
min={1}
|
|
|
|
|
max={120}
|
|
|
|
|
disabled={IsOrthographicCamera}
|
|
|
|
|
onValueChange={(e) =>
|
|
|
|
|