Commit Graph

68 Commits

Author SHA1 Message Date
辉鸭蛋
aabd1e0c01 fix kale 2025-02-12 23:02:16 +08:00
辉鸭蛋
2c554ab2f4 delete debug code 2025-02-09 17:05:11 +08:00
辉鸭蛋
040f40d94b fix notify bug 2025-02-08 22:25:00 +08:00
起个名字好难
8afcf9ddff 添加企业微信通知 2025-02-05 00:08:52 +08:00
起个名字好难
184d186c9c 添加企业微信通知 2025-02-04 23:10:58 +08:00
辉鸭蛋
92516c26d2 支持配置要通知的事件 2025-02-04 17:11:53 +08:00
辉鸭蛋
151b383c40 添加飞书通知 2025-02-03 19:28:09 +08:00
辉鸭蛋
1efd8d9454 重构通知模块 2025-02-03 15:02:25 +08:00
辉鸭蛋
297618b95f fix windows notify 2025-02-01 23:03:25 +08:00
辉鸭蛋
33d742bd4d Merge branch 'main' into pr/1054 2025-02-01 22:16:36 +08:00
辉鸭蛋
b130351d8d bgi.huiyadan.com -> bettergi.com 2025-01-29 08:41:11 +08:00
辉鸭蛋
3e114ad358 添加windows通知 2025-01-28 13:12:14 +08:00
辉鸭蛋
4196f05f21 replace HttpContent with another data structure 2025-01-28 08:49:24 +08:00
辉鸭蛋
670bb3adad 修改序列化方式,添加测试数据 2025-01-27 20:47:17 +08:00
辉鸭蛋
6c16296b1b 修改 notify config 的获取方式 2025-01-27 20:13:53 +08:00
辉鸭蛋
f19ee557b2 Merge branch 'main' into webhook 2025-01-27 13:57:23 +08:00
辉鸭蛋
3ce54801c6 notify icon: check update 2025-01-27 09:22:11 +08:00
辉鸭蛋
e30e919539 fix NullReferenceException #1063 2025-01-27 08:14:23 +08:00
mfkvfhpdx
8c45a02deb 调整日志分析一些字段为0时显示为空,增加了异常情况统计(复活、重试、传送失败、战斗超时)。 (#1056)
* 调整日志分析一些字段为0时显示为空,增加了异常情况统计(复活、重试、传送失败、战斗超时)。

* 修正一个赋值错误

* 日志分析表格,使隔行颜色样式不一样

* 增加了锄地延时,通过控制延时相对精确的显示怪物数量

* 删除不必要的输出

* 调度器任务,增加 任务倒序排列功能。调度器配置增加“不在某时执行”,当执行完一个路线后,如果时间为当前配置的时间(范围:0-23),则此路径追踪任务后续都将都跳过,适用于连续执行的兜底任务,例如想通宵挂机,并且在4点后,开始执行新的任务。
2025-01-26 11:17:19 +08:00
辉鸭蛋
b639b1902e fix solo task run 2025-01-25 23:36:24 +08:00
Scarlet
cb84ae36d0 feat: integrate send() method into notification to allow for shorter call 2025-01-22 12:34:42 -06:00
Scarlet
2181e74a30 feat: unify factories; allow creating from actual params to instantiate a builder 2025-01-21 23:42:31 -06:00
Scarlet
ec7ecbf9e0 remove unused references 2025-01-21 22:54:51 -06:00
Scarlet
50513613de feature: notification-based webhook 2025-01-21 22:22:27 -06:00
辉鸭蛋
12cc958705 updater 2025-01-21 23:01:35 +08:00
秋云
1538445990 把原本删除的INF级别时间显示回复,并改为DBG级别。 2025-01-16 10:16:43 +08:00
秋云
55b2b48e43 修改日志中时间的时间显示格式。 2025-01-16 08:16:39 +08:00
辉鸭蛋
a22002966e auto update 2025-01-13 01:17:11 +08:00
辉鸭蛋
2396daf206 #767 2024-12-29 18:07:00 +08:00
辉鸭蛋
df600c6016 start game when start one dragon 2024-12-22 20:52:39 +08:00
辉鸭蛋
3d6546b528 time consuming of calculation script 2024-11-01 00:07:11 +08:00
辉鸭蛋
98d2664c28 auto pathing: use group config & fix bug 2024-10-27 00:51:10 +08:00
辉鸭蛋
8d2b36d5fd refactor: script run 2024-09-10 23:27:04 +08:00
辉鸭蛋
cb53c74c6c log opt 2024-09-09 22:55:52 +08:00
辉鸭蛋
4e6190ac7b fixed #598 2024-09-09 22:42:35 +08:00
辉鸭蛋
a06f0fcdb2 auto pathing: fix not releasing the mouse and keyboard when stopping tasks
更新日志和黑名单

移除 `PathExecutor.cs` 中的无用引用,重构 `Pathing` 方法,添加 `InitializePathing` 和 `ConvertWaypoints` 方法,提取传送点处理逻辑到 `HandleTeleportWaypoint` 方法。修改 `TpTask.cs` 中的日志格式为浮点数格式。将 `TaskRunner.cs` 中的 `FireAndForgetAsync` 方法重命名为 `RunThreadAsync`,并在 `ScriptService.cs` 中相应替换调用。为 `DpiHelper.cs` 中的 `ScaleY` 属性添加注释。更新 `pick_black_lists.json`,添加新的黑名单项 `"摆放巧像"`。在 `MapPathingViewModel.cs` 中添加 `_mapViewer` 字段,并在 `OnOpenMapViewer` 方法中使用。
2024-09-09 21:57:48 +08:00
辉鸭蛋
220d6a4f9b fix multi thread ui bug & rotate with dpi
优化 DPI 处理和异步任务执行

在 `PathExecutor.cs` 中,添加了对 `BetterGenshinImpact.Helpers` 的引用,并引入了 `DpiHelper` 来调整 `_dpi` 变量。
在 `PathExecutor` 类中,添加了 `_dpi` 变量,并在 `Pathing` 方法中初始化 `_dpi` 为 `DpiHelper.ScaleY`。
修改了 `RotateTo` 方法的 `controlRatio` 参数类型,从 `int` 改为 `double`,并在调用 `Simulation.SendInput.Mouse.MoveMouseBy` 时乘以 `_dpi` 进行 DPI 缩放。
在 `TaskRunner.cs` 中,添加了 `FireAndForgetAsync` 方法,用于异步执行任务。
在 `ScriptService.cs` 中,添加了对 `BetterGenshinImpact.Helpers` 的引用。
修改了 `ScriptService` 类中调用 `TaskRunner` 的方式,从 `RunAsync` 改为 `FireAndForgetAsync`。
在 `ScriptControlViewModel.cs` 中,简化了调用 `_scriptService.RunMulti` 的方式,去掉了多余的 `Task.Run` 包装。
2024-09-09 00:44:24 +08:00
辉鸭蛋
c37c43ce92 dispatcher supprot pathing script
调度器支持路径追踪功能及多项代码优化

在 `ScriptGroupProject.cs` 中:
- 添加对多个命名空间的引用。
- 修改构造函数,增加 `folder` 和 `type` 参数,删除 `kmName` 参数。
- 添加 `BuildKeyMouseProject` 和 `BuildPathingProject` 静态方法。
- 在 `Run` 方法中增加 `Pathing` 类型处理逻辑。
- 在 `ScriptGroupProjectExtensions` 中增加 `Pathing` 类型描述。

在 `PathingTask.cs` 中:
- 添加 `FileName` 属性,并在 `BuildFromFilePath` 方法中设置。

在 `Navigation.cs` 中:
- 将 `Navigation` 类改为 `public`。
- 添加 `_isWarmUp` 静态字段,防止重复加载地图特征点。
- 将 `GetPosition`、`GetTargetOrientation` 和 `GetDistance` 方法改为 `public`。

在 `GameTaskManager.cs` 中:
- 在 `AddTrigger` 方法中添加注释,指出清理 `TriggerDictionary` 的问题。

在 `ScriptService.cs` 中:
- 在 `RunMulti` 方法中增加 `hasTimer` 变量,并在处理 `Pathing` 类型时设置。
- 修改 `RunMulti` 方法逻辑,确保无定时操作时检查 JS 脚本。
- 在 `Run` 方法中增加 `Pathing` 类型处理逻辑。

在 `MapPathingPage.xaml` 中:
- 注释掉第四列定义和相关 `Grid` 元素。
- 修改 `ListView` 中 `GridViewColumn` 的 `DisplayMemberBinding`。

在 `ScriptControlPage.xaml` 中:
- 在 `ContextMenu` 中添加新的 `MenuItem`,用于添加路径追踪任务。

在 `PromptDialog.xaml.cs` 中:
- 添加新的 `Prompt` 方法,允许指定对话框大小。
- 修改 `ResponseText` 属性逻辑,增加默认返回值。

在 `MapPathingViewModel.cs` 中:
- 调整 `using` 语句顺序,删除重复引用。

在 `ScriptControlViewModel.cs` 中:
- 修改 `OnAddKmScript` 方法,使用 `BuildKeyMouseProject` 方法创建键鼠脚本项目。
- 添加 `OnAddPathing` 方法及其辅助方法,用于添加路径追踪任务。
- 在 `RunSelectedScriptGroup` 方法中,将脚本运行逻辑放入 `Task.Run` 中,避免阻塞 UI 线程。
2024-09-08 23:17:48 +08:00
辉鸭蛋
461b0b00d1 add JS script dynamic settings 2024-08-24 02:13:46 +08:00
辉鸭蛋
b62e4a7425 add script group editor 2024-08-18 21:41:12 +08:00
辉鸭蛋
6812f30732 optimize script execution 2024-08-17 18:00:03 +08:00
qhy040404
c490d29aa1 code cleanup 2024-08-14 18:01:02 +08:00
辉鸭蛋
059e21775f unified capture image method 2024-07-21 20:38:06 +08:00
辉鸭蛋
80b6e36d9a test way point recorder 2024-05-04 23:31:26 +08:00
辉鸭蛋
c2d3e132e8 refactor: RectArea -> Region compilation passed 2024-05-02 14:45:07 +08:00
Mr-Quin
3f471c68da Fix code style issues 2024-03-31 23:14:24 -07:00
Mr-Quin
97f2dc4550 Small refactor to NotificationHelper 2024-03-30 15:23:53 -07:00
Mr-Quin
63bec641af Simplify notification creation 2024-03-30 13:57:03 -07:00
Mr-Quin
04ce508efd Slightly simplify call to NotifyAllNotifiersAsync 2024-03-30 13:57:03 -07:00
Mr-Quin
7e5b7eb1d4 Improve error handling 2024-03-30 13:57:03 -07:00