feat: 新的渲染系统

This commit is contained in:
AncTe committed 2024-05-09 23:49:53 +08:00
1 parent af38d2e47e
commit 2f8fbd375c
34 files changed
+1173 -179

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ let pop: any[] = [];
let time = 0;
export function init() {
core.registerAnimationFrame('pop', true, popValue);
// core.registerAnimationFrame('pop', true, popValue);
}
/**
+7
View File
@@ -1,3 +1,4 @@
import { sleep } from 'mutate-animate';
import { tip } from './utils';
export default function init() {
@@ -29,6 +30,12 @@ window.addEventListener('resize', () => {
});
checkMobile();
sleep(2000).then(() => {
if (!isMobile) {
tip('info', `注意,不推荐使用浏览器的缩放功能,使用游戏内的缩放即可`);
}
});
function checkMobile() {
if (isMobile && !alerted) {
tip(
-3
View File
@@ -242,9 +242,6 @@ export function tip(
class: 'antdv-message'
});
}
sleep(2000).then(() => {
tip('info', `注意,不推荐使用浏览器的缩放功能,使用游戏内的缩放即可`);
});
/**
* 设置文字分段换行等