使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
chemicalcrux
/
macrovision
关注
1
点赞
0
派生
0
代码
工单
5
合并请求
0
版本发布
10
百科
动态
浏览代码
Add an option to disable smoothing
This can improve performance on less-powerful computers.
master
Fen Dweller
4 年前
父节点
0b2dd59938
当前提交
29f1d21289
共有
2 个文件被更改
,包括
17 次插入
和
2 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+4
-1
macrovision.css
+13
-1
macrovision.js
+ 4
- 1
macrovision.css
查看文件
@@ -33,6 +33,9 @@ body {
-moz-user-drag: none;
-o-user-drag: none;
pointer-events: none;
}
body.smoothing .entity-box {
transition: left 0.2s cubic-bezier(.1,.41,.18,.99), top 0.2s cubic-bezier(.1,.41,.18,.99), height 0.2s cubic-bezier(.1,.41,.18,.99), max-height 0.2s cubic-bezier(.1,.41,.18,.99);
}
@@ -1107,4 +1110,4 @@ body.screenshot-mode #menubar,
body.screenshot-mode #options,
body.screenshot-mode .scroll-button {
display: none;
}
}
+ 13
- 1
macrovision.js
查看文件
@@ -2342,6 +2342,18 @@ const settingsData = {
toggleBodyClass("toggle-entity-glow", param);
}
},
"smoothing": {
name: "Smoothing",
desc: "Smooth out movements and size changes. Disable for better performance.",
type: "toggle",
default: true,
get value() {
return checkBodyClass("smoothing");
},
set value(param) {
toggleBodyClass("smoothing", param);
}
},
"solid-ground": {
name: "Solid Ground",
desc: "Draw solid ground at the y=0 line",
@@ -4430,4 +4442,4 @@ function panTo(x, y, height, xSpeed, ySpeed, heightSpeed, timestamp, remaining)
config.y = newY;
config.height = math.unit(newHeight, "meters");
updateSizes();
}
}
撰写
预览
正在加载...
取消
保存