소스 검색

Add a separate ground-snapping option

This used to be controlled by the y-axis-lock setting.
master
Fen Dweller 4 년 전
부모
커밋
ca3b61c19c
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. +13
    -1
      macrovision.js

+ 13
- 1
macrovision.js 파일 보기

@@ -507,7 +507,7 @@ function constrainRel(coords) {
function snapPos(coords) {
return {
x: coords.x,
y: (!config.lockYAxis || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y)
y: (!config.groundSnap || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y)
};
}

@@ -2673,6 +2673,18 @@ const settingsData = {
}
}
},
"ground-snap": {
name: "Snap to Ground",
desc: "Snap things to the ground",
type: "toggle",
default: true,
get value() {
return config.groundSnap;
},
set value(param) {
config.groundSnap = param;
}
},
"axis-spacing": {
name: "Axis Spacing",
desc: "How frequent the axis lines are",


불러오는 중...
취소
저장