raliz #1
@ -75,7 +75,7 @@ export default function Home() {
|
|||||||
"Hit Area Frames",
|
"Hit Area Frames",
|
||||||
(checked: any) => (hitAreaFrames.visible = checked)
|
(checked: any) => (hitAreaFrames.visible = checked)
|
||||||
);
|
);
|
||||||
} catch (err) {}
|
} catch (err) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkbox(name: any, onChange: any) {
|
function checkbox(name: any, onChange: any) {
|
||||||
@ -196,7 +196,7 @@ export default function Home() {
|
|||||||
(async function () {
|
(async function () {
|
||||||
const app = new PIXI.Application({
|
const app = new PIXI.Application({
|
||||||
view: document.getElementById("canvas") as HTMLCanvasElement,
|
view: document.getElementById("canvas") as HTMLCanvasElement,
|
||||||
backgroundAlpha: 1,
|
backgroundAlpha: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
const model = await Live2DModel.from(
|
const model = await Live2DModel.from(
|
||||||
@ -222,6 +222,7 @@ export default function Home() {
|
|||||||
model.motion("speak");
|
model.motion("speak");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
console.log("ok")
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
@ -231,7 +232,7 @@ export default function Home() {
|
|||||||
typeof window.Live2D !== "undefined" && (
|
typeof window.Live2D !== "undefined" && (
|
||||||
<div className="flex w-full flex-col h-full items-center justify-center relative text-white">
|
<div className="flex w-full flex-col h-full items-center justify-center relative text-white">
|
||||||
{/* live2d */}
|
{/* live2d */}
|
||||||
<canvas className="w-full" id="canvas"></canvas>
|
<canvas className="w-full " id="canvas"></canvas>
|
||||||
|
|
||||||
{/* 旧叉 */}
|
{/* 旧叉 */}
|
||||||
{/* <div className="absolute right-[20vw] top-4 bg-orange-300 rounded w-[20vw] h-auto text-sm">
|
{/* <div className="absolute right-[20vw] top-4 bg-orange-300 rounded w-[20vw] h-auto text-sm">
|
||||||
@ -285,8 +286,7 @@ export default function Home() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
className="w-full h-full scale-[2.5]"
|
className="w-full h-full scale-[2.5]"
|
||||||
src={`http://picdown.jchysoft.com/uiIcon/${
|
src={`http://picdown.jchysoft.com/uiIcon/${useVoice ? "jianpan" : "yuyin"
|
||||||
useVoice ? "jianpan" : "yuyin"
|
|
||||||
}.png`}
|
}.png`}
|
||||||
alt="输入方式"
|
alt="输入方式"
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user