如题,同学在hydro刷出了看板娘,但是我没有。同学说可能带点随机,但我一次都没有出现过。请问有没有稳定出现看板娘的方法。

3 comments

  • @ 2024-9-12 13:05:05

    在控制台输入这个:

    // live2d_path 参数建议使用绝对路径
    const live2d_path = "https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/";
    //const live2d_path = "/live2d-widget/";
    
    // 封装异步加载资源的方法
    function loadExternalResource(url, type) {
    	return new Promise((resolve, reject) => {
    		let tag;
    
    		if (type === "css") {
    			tag = document.createElement("link");
    			tag.rel = "stylesheet";
    			tag.href = url;
    		}
    		else if (type === "js") {
    			tag = document.createElement("script");
    			tag.src = url;
    		}
    		if (tag) {
    			tag.onload = () => resolve(url);
    			tag.onerror = () => reject(url);
    			document.head.appendChild(tag);
    		}
    	});
    }
    
    // 加载 waifu.css live2d.min.js waifu-tips.js
    if (screen.width >= 768) {
    	Promise.all([
    		loadExternalResource(live2d_path + "waifu.css", "css"),
    		loadExternalResource(live2d_path + "live2d.min.js", "js"),
    		loadExternalResource(live2d_path + "waifu-tips.js", "js")
    	]).then(() => {
    		// 配置选项的具体用法见 README.md
    		initWidget({
    			waifuPath: live2d_path + "waifu-tips.json",
    			//apiPath: "https://live2d.fghrsh.net/api/",
    			cdnPath: "https://fastly.jsdelivr.net/gh/fghrsh/live2d_api/",
    			tools: ["hitokoto", "asteroids", "switch-model", "switch-texture", "photo", "info", "quit"]
    		});
    	});
    }
    
    • @ 2024-9-22 15:37:46

      非常感谢!

      同时请问一下您知道如何在打开hydro时自动启动而不是每次输入代码吗?

    • @ 2024-9-24 21:29:59

      @ +1

    • @ 2024-10-3 15:16:19

      @ 一般点了“X”之后,每次显示就要手动了

    • @ 2024-10-11 17:48:48

      @ 谢谢

  • @ 2024-9-7 18:12:43

    什么是看板娘呀?

    • @ 2024-9-8 21:08:20

      就是一登陆hydro就出现在电脑屏幕左下方的那个小东西

    • @ 2024-9-14 20:21:06

      @ 噢~~~谢谢Thanks♪(・ω・)ノ

  • @ 2024-9-6 8:38:08

    我也一样

    • 1