辉鸭蛋
|
648dfd3f41
|
ensure that the 'settings' object passed into JS is not empty
|
2024-11-10 13:22:56 +08:00 |
|
辉鸭蛋
|
2545581807
|
new pathing config
|
2024-11-02 19:49:38 +08:00 |
|
辉鸭蛋
|
98d2664c28
|
auto pathing: use group config & fix bug
|
2024-10-27 00:51:10 +08:00 |
|
辉鸭蛋
|
11ec9bc45d
|
refactor: CancellationTokenSource -> CancellationToken
|
2024-10-19 01:50:21 +08:00 |
|
辉鸭蛋
|
8d2b36d5fd
|
refactor: script run
|
2024-09-10 23:27:04 +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 |
|
辉鸭蛋
|
b68b0d85f6
|
Js -> JS
|
2024-08-24 02:28:31 +08:00 |
|
辉鸭蛋
|
461b0b00d1
|
add JS script dynamic settings
|
2024-08-24 02:13:46 +08:00 |
|
辉鸭蛋
|
b7d492e5d2
|
I don't know why this error occurred, but I fixed it
|
2024-08-20 23:35:08 +08:00 |
|
辉鸭蛋
|
b62e4a7425
|
add script group editor
|
2024-08-18 21:41:12 +08:00 |
|
辉鸭蛋
|
c6680ced12
|
add js script page
|
2024-08-17 16:02:54 +08:00 |
|
辉鸭蛋
|
8b0bdef670
|
edit script group name
|
2024-08-15 23:55:57 +08:00 |
|
辉鸭蛋
|
0edf6c13ef
|
script group ui3
|
2024-08-10 21:18:48 +08:00 |
|
辉鸭蛋
|
ad288c60cc
|
script group ui 2
|
2024-08-10 19:16:35 +08:00 |
|
辉鸭蛋
|
308d398036
|
script group ui
|
2024-08-10 13:37:29 +08:00 |
|
辉鸭蛋
|
4610c9e7ca
|
add script engine
|
2024-08-03 19:41:48 +08:00 |
|