Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
chemicalcrux
/
macrovision
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
5
Pull Request'ы
0
Релизы
10
Вики
Активность
Просмотр исходного кода
Add an option to disable smoothing
This can improve performance on less-powerful computers.
master
Fen Dweller
4 лет назад
Родитель
0b2dd59938
Сommit
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();
}
}
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить