Commit Graph

18 Commits

Author SHA1 Message Date
ema
4da6efd54e fix the all about scrollable 2024-10-01 13:50:59 +08:00
ema
335b053b32 change: moved image assets to new folder 2024-09-30 10:12:13 +08:00
ema
a4e55ab164 change: WindowBackdropType 2024-09-12 00:08:59 +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
辉鸭蛋
a0691f1c19 auto pathing: add mapper viewer 2024-09-08 19:08:46 +08:00
辉鸭蛋
b62e4a7425 add script group editor 2024-08-18 21:41:12 +08:00
qhy040404
c490d29aa1 code cleanup 2024-08-14 18:01:02 +08:00
辉鸭蛋
ad288c60cc script group ui 2 2024-08-10 19:16:35 +08:00
ema
cb9dc4ca2e UI/UX: use MiSans-Regular as TextThemeFontFamily 2024-05-15 20:26:55 +08:00
辉鸭蛋
a0f94babe8 init one key fight task 2024-04-14 21:54:43 +08:00
辉鸭蛋
a9ff321daf big map surf test 2024-03-31 14:49:03 +08:00
辉鸭蛋
f6e2694204 map match test & add map viewer 2024-03-23 20:31:38 +08:00
辉鸭蛋
eb0a886784 replace message box #245 2024-03-14 00:09:02 +08:00
辉鸭蛋
016c94e06c rename editor #245 2024-03-13 23:41:52 +08:00
辉鸭蛋
8a450d9edd single simple JSON editor #245 2024-03-13 23:35:30 +08:00
辉鸭蛋
bb0ea6622b move namespace 2024-03-13 23:11:31 +08:00
ema
77496332bf update: edit auto pick black/white list files #245 2024-03-12 04:16:49 +08:00
huiyadanli
e2143429c0 add PromptDialog & add explore config 2023-11-12 22:51:03 +08:00