fix:弹幕默认显示;每次重开读一次貌似过于毒瘤,改为开始游戏读一次

This commit is contained in:
ShakeFlower 2025-04-19 13:45:53 +08:00
parent f581ba3299
commit 518bfc4f33
2 changed files with 18 additions and 0 deletions

View File

@ -512,10 +512,27 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"type": "comment",
"text": "初始剧情"
},
{
"type": "comment",
"text": "血瓶宝石数据默认显示"
},
{
"type": "setValue",
"name": "flag:itemDetail",
"value": "true"
},
{
"type": "comment",
"text": "如果不需要显示弹幕可去除comment相关事件块"
},
{
"type": "setValue",
"name": "flag:comment",
"value": "true"
},
{
"type": "function",
"function": "function(){\n// 默认读取弹幕数据\nif (core.hasFlag('comment') && !core.isReplaying()) {\n\tcore.plugin.getComment();\n\tsetTimeout(core.plugin.drawCommentSign, 1000);\n}\n}"
}
],
"shops": [

View File

@ -53,6 +53,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
// 隐藏右下角的音乐按钮
core.dom.musicBtn.style.display = 'none';
/** 以下为新增 */
// 同步剧情跳过设置
switch (core.getFlag('skip')) {
case 'text':