mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-16 20:24:31 +08:00
fix: 怪物手册的键盘操作滚动
This commit is contained in:
1 parent
471b3071f9
commit
23375f03f1
8 files changed
+91
-54
No files matched your search
@@ -205,7 +205,7 @@ void main() {
|
||||
if (sheltered > 0.5 && d.z < 0.5) strength = 0.0; // 遮挡逻辑
|
||||
|
||||
strengthTotal += strength; // 累计强度
|
||||
lightColor = mix(lightColor, vec4(c.rgb, c.a * strength), strength); // 混合光源颜色
|
||||
lightColor = mix(lightColor, vec4(c.rgb, c.a), strength); // 混合光源颜色
|
||||
}
|
||||
if (strengthTotal > 1.0) strengthTotal = 1.0;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export namespace BluePalace {
|
||||
const blocks = core.status.maps[floorId].blocks;
|
||||
|
||||
const ctx = core.createCanvas(`@doorConvert`, 0, 0, 480, 480, 35);
|
||||
const time = core.values.animateSpeed / 4;
|
||||
const time = core.values.animateSpeed / 3;
|
||||
|
||||
const toConvert: DoorConvertInfo[] = [];
|
||||
blocks.forEach(v => {
|
||||
|
||||
@@ -242,6 +242,9 @@ export function tip(
|
||||
class: 'antdv-message'
|
||||
});
|
||||
}
|
||||
sleep(2000).then(() => {
|
||||
tip('info', `注意,不推荐使用浏览器的缩放功能,使用游戏内的缩放即可`);
|
||||
});
|
||||
|
||||
/**
|
||||
* 设置文字分段换行等
|
||||
|
||||
+1
-2
@@ -71,7 +71,6 @@ const scroll = ref(0);
|
||||
const drag = ref(false);
|
||||
const detail = ref(false);
|
||||
const selected = ref(0);
|
||||
let detailClosing = false;
|
||||
|
||||
const settingScale = mainSetting.getValue('ui.bookScale', 100) / 100;
|
||||
const scale = isMobile
|
||||
@@ -139,7 +138,7 @@ async function exit() {
|
||||
|
||||
function checkScroll() {
|
||||
const h = window.innerHeight;
|
||||
const y = selected.value * h * 0.2 - scroll.value;
|
||||
const y = (selected.value * h * scale) / 100 - scroll.value;
|
||||
if (y < 0) {
|
||||
scroll.value += y - 20;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user