访问链接 👉 icecream.qslie.top
- 将所需音频文件以
param.acc形式上传到data/voices/目录下 - 编写
data/sections.js文件,示例如下:
const sections = [
{
title: "曼波",
// warning: "⚠音量に注意⚠", // 可选
rows: [
[ // 第一行按钮
{ text: "哦耶!", param: "哦耶" },
],
[ // 第二行按钮
{ text: "哦耶", param: "哦耶1" },
{ text: "哦耶", param: "哦耶2" },
{ text: "哦哦耶", param: "哦哦耶" }
],
[ // ...
{ text: "曼波", param: "曼波" },
{ text: "曼波", param: "曼波" },
{ text: "曼曼波", param: "曼曼波" }
],
]
},
{ // 其他板块
title: "稀有",
rows: [...]
}
//...
];在原项目基础上实现了动态增加按钮,文件分离等优化