mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-11-16 19:39:51 +00:00
* feat(campaignArea): 添加长期训练点识别功能 - 新增 ocrLongTermTrainingPoints 函数用于识别长期训练点数和过期时间 - 添加 drawBox 和 drawAndClearBox 工具函数用于调试框绘制 - 在 campaignArea 区域配置中新增长期训练点相关坐标 - 在每日委托通知中添加长期训练点数量和过期提醒 - 优化 OCR 识别区域配置,支持调试模式下的可视化显示 - 修复活动页面滚动时的调试框绘制问题 - 更新设置选项,添加开发者模式开关 * feat(ocr): 优化地图任务OCR识别功能 - 添加滚动识别机制,支持长列表任务的完整扫描 - 实现前后两次识别结果对比,避免重复内容无限循环 - 增加鼠标滚轮控制,自动滚动查看下方任务内容 - 重构识别逻辑为循环结构,提升任务匹配准确性 - 添加调试日志,便于追踪识别过程和滚动操作 - 修复单次识别可能遗漏任务的问题 * refactor(ActivitySwitchNotice): 重构OCR任务识别逻辑提高准确性 - 移除过时的previousNameList和currentNameList变量 - 使用Set数据结构优化文本去重逻辑 - 实现页面重合率检测防止重复扫描 - 添加最大扫描页数限制防止死循环 - 优化滚动逻辑从while循环改为while循环带安全限制 - 改进资源释放机制确保region对象正确dispose - 添加详细的调试日志便于问题排查 - 修复OCR识别结果去重机制避免重复添加相同任务 * refactor(ActivitySwitchNotice): 优化活动页面滚动扫描逻辑 - 移除多余的空行以改善代码格式 - 添加 overlapThreshold 常量用于控制页面重复检测阈值 - 使用常量替代硬编码数值提高代码可维护性 - 保持原有重合率检测逻辑的同时增强代码可读性 * fix(ActivitySwitchNotice): 修复任务切换通知中的页面稳定等待问题 - 在mapMission.js中将页面稳定等待时间从2毫秒调整为200毫秒 - 在settings.json中添加新的活动选项:食材加工奖励、锻造奖励、至冬冒险笔记奖励和绘想游迹 - 更新默认活动配置以包含新增的活动类型 * refactor(ActivitySwitchNotice): 优化活动页面滚动和鼠标操作策略 - 注释掉原有的moveMouseTo(0, 20)安全位置移动 - 将scrollPagesByActivity调用替换为verticalScroll循环实现精确滚动 - 在页面扫描开始前添加鼠标点击操作到指定区域 - 调整重叠阈值从0.7提升到1以优化页面识别逻辑 - 修改页面滚动策略为小步距多次滚动以提高稳定性 * chore(version): 更新插件版本和BGI版本依赖 - 将插件版本从 0.1.8 升级到 0.1.9 - 将 BGI 版本从 0.61.0 升级到 0.63.0 * docs(ActivitySwitchNotice): 更新 README 文档以反映最新功能和架构变更 - 添加了多选提醒日支持的说明(0.1.1版本) - 新增每日委托奖励/原粹树脂/长期训练点提醒功能说明(0.0.7/0.1.9版本) - 添加地图识别任务提醒功能说明(0.0.8版本) - 新增圣遗物剩余空间检测提醒功能说明(0.1.5版本) - 添加新活动通知功能说明(0.1.0版本) - 更新项目架构图,显示新增的mapMission.js和HolyRelics.js模块 - 修改主流程图,体现地图识别和圣遗物检查的新顺序 - 更新工具模块关系图,展示新的模块依赖关系 - 重新整理配置参数表,添加debug、newActivityNotice、mapMissionKeys等新配置项 - 更新独立通知配置说明,添加bgi-tools授权配置选项 - 增加自定义通知和bgi-tools通知的配置示例 - 补充新增模块的详细功能说明文档 - 更新工作原理步骤,反映新的功能执行顺序 - 添加0.1.8和0.1.9版本的更新日志信息
215 lines
No EOL
5.4 KiB
JSON
215 lines
No EOL
5.4 KiB
JSON
[
|
||
{
|
||
"name": "debug",
|
||
"type": "checkbox",
|
||
"label": "启用开发者模式",
|
||
"default": false
|
||
},
|
||
{
|
||
"name": "toMainUi",
|
||
"type": "checkbox",
|
||
"label": "启用先返回主界面后执行切换",
|
||
"default": true
|
||
},
|
||
{
|
||
"name": "noticeType",
|
||
"type": "select",
|
||
"label": "通知模式(默认BGI通知-使用独立通知需要开启JS HTTP权限)",
|
||
"options": [
|
||
"BGI通知",
|
||
"独立通知",
|
||
"独立通知和BGI通知"
|
||
],
|
||
"default": "BGI通知"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "newActivityNotice",
|
||
"type": "checkbox",
|
||
"label": "启用新活动通知",
|
||
"default": true
|
||
},
|
||
{
|
||
"label": "地图识别任务提醒",
|
||
"type": "multi-checkbox",
|
||
"name": "mapMissionKeys",
|
||
"options": [
|
||
"伴月纪闻任务",
|
||
"探索派遣奖励",
|
||
"食材加工奖励",
|
||
"锻造奖励",
|
||
"至冬冒险笔记奖励",
|
||
"豪斗旅纪奖励",
|
||
"绘想游迹",
|
||
"每日委托奖励"
|
||
],
|
||
"default": [
|
||
"伴月纪闻任务",
|
||
"探索派遣奖励",
|
||
"每日委托奖励"]
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "relationship",
|
||
"type": "checkbox",
|
||
"label": "剩余时间,白名单 启用`和`关系(默认`或`关系)",
|
||
"default": false
|
||
},
|
||
{
|
||
"name": "whiteActivityNameList",
|
||
"type": "input-text",
|
||
"label": "白名单活动名称(使用|分割)<可不填 默认推送所有有剩余时间的活动>"
|
||
},
|
||
{
|
||
"name": "blackActivity",
|
||
"type": "input-text",
|
||
"label": "黑名单活动名称(使用|分割)<可不填,默认没有不推送的活动>(新增语法指定条件的黑名单:活动1-条件1,条件2|活动2-条件1)"
|
||
},
|
||
{
|
||
"name": "notifyHoursThreshold",
|
||
"type": "input-text",
|
||
"label": "通知剩余时间阈值<单位:小时>(默认 8760小时=365天)",
|
||
"default": "8760"
|
||
},
|
||
{
|
||
"name": "activityKey",
|
||
"type": "input-text",
|
||
"label": "打开活动页面按键(不填,默认:F5)",
|
||
"default": "F5"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"label": "周本提醒日",
|
||
"name": "campaignAreaReminderDays",
|
||
"type": "multi-checkbox",
|
||
"options": [
|
||
"周一",
|
||
"周二",
|
||
"周三",
|
||
"周四",
|
||
"周五",
|
||
"周六",
|
||
"周日"
|
||
],
|
||
"default": [
|
||
"周六",
|
||
"周日"]
|
||
|
||
},
|
||
{
|
||
"name": "campaignAreaKey",
|
||
"type": "input-text",
|
||
"label": "打开冒险之证按键(不填,默认:F1)",
|
||
"default": "F1"
|
||
},
|
||
{
|
||
"name": "openBagKey",
|
||
"type": "input-text",
|
||
"label": "打开背包按键(不填,默认:B)",
|
||
"default": "B"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "checkHolyRelic",
|
||
"type": "checkbox",
|
||
"label": "启用圣遗物空间提醒",
|
||
"default": false
|
||
},
|
||
{
|
||
"name": "holyRelicsDiffCountThreshold",
|
||
"type": "input-text",
|
||
"label": "圣遗物剩余空间阈值",
|
||
"default": "400"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "wsNoticeType",
|
||
"type": "select",
|
||
"label": "独立通知配置(设置):\n==============================\n",
|
||
"options": [
|
||
"自定义通知",
|
||
"bgi-tools通知"
|
||
],
|
||
"default": "自定义通知"
|
||
},
|
||
{
|
||
"name": "http_api_access_ws_proxy",
|
||
"type": "input-text",
|
||
"label": "bgi-tools获取授权wsproxy api地址",
|
||
"default": "http://127.0.0.1:8081/bgi/ws-proxy/access"
|
||
},
|
||
{
|
||
"name": "bgi_tools_token",
|
||
"type": "input-text",
|
||
"label": "bgi_tools授权token 语法:tokenName=tokenValue",
|
||
"default": "Authorization= "
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "ws_proxy_url",
|
||
"type": "input-text",
|
||
"label": "WebSocketProxyUrl(列:http://127.0.0.1:8081/bgi/ws-proxy/message/send)",
|
||
"default": "http://127.0.0.1:8081/bgi/ws-proxy/message/send"
|
||
},
|
||
{
|
||
"name": "ws_url",
|
||
"type": "input-text",
|
||
"label": "WebSocket客户端 Url(列:ws://127.0.0.1:8080)",
|
||
"default": "ws://127.0.0.1:8080/"
|
||
},
|
||
{
|
||
"name": "ws_token",
|
||
"type": "input-text",
|
||
"label": "WebSocket客户端 token(没有可不填)",
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "action",
|
||
"type": "select",
|
||
"label": "发送类型",
|
||
"options": [
|
||
"私聊",
|
||
"群聊"
|
||
],
|
||
"default": "私聊"
|
||
},
|
||
{
|
||
"name": "send_id",
|
||
"type": "input-text",
|
||
"label": "(发送id 群号|QQ号 对应发送类型)",
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "at_list",
|
||
"type": "input-text",
|
||
"label": "@某人列表使用,隔开(QQ号)",
|
||
"default": ""
|
||
}
|
||
] |