Commit Graph

1016 Commits

Author SHA1 Message Date
辉鸭蛋
1fd5320df2 auto pathing: update
- 移除了不必要的 `using` 语句,添加了新的 `using` 语句。
- 将 `Waypoints` 属性重命名为 `Positions`。
- 更新了 `BuildFromFilePath` 方法中的 `JsonOptions` 引用。
- 将 `Waypoint` 类移到单独的文件中,并添加了相关属性和注释。
- 添加了 `SaveToFile` 方法,用于将 `PathingTask` 对象保存到文件。
- 更新了 `PathExecutor` 中的 `TaskControl` 引用,简化了代码。
- 更新了 `PathRecorder` 的属性和方法,使用私有字段 `_pathingTask`。
- 更新了 `MapPathingPage.xaml` 的命令绑定。
- 更新了 `HotKeyPageViewModel` 和 `MapPathingViewModel` 的逻辑。
- 添加了新的 `PathingTaskConfig` 类,用于配置路径任务。
2024-09-08 02:23:45 +08:00
辉鸭蛋
5818bcd7ed refactor the path task-related code, using the new enum class
在 `PathingTask.cs`、`PathExecutor.cs` 和 `PathRecorder.cs` 中,删除了 `WaypointType`、`MoveType`、`ActionType` 和 `PathingTaskType` 枚举,并将其替换为 `Enum` 命名空间中的类。更新了 `PathingTaskInfo` 类的属性默认值和新增属性。在 `PathExecutor.cs` 中,使用 `.Code` 属性进行比较,并优化了 `prevPositions` 列表的索引。在 `HotKeyPageViewModel.cs` 中,重命名了变量并更新了回调函数。在 `ActionEnum.cs`、`MoveStatusType.cs`、`PathingTaskType.cs` 和 `WaypointType.cs` 中,定义了新的枚举类及其静态实例和相关方法。
2024-09-07 14:53:25 +08:00
辉鸭蛋
93250f84cf update UI experience
在 `App.xaml` 中添加了 `BooleanToEnableTextConverter` 转换器。
在 `ScriptControlPage.xaml` 中:
  * 更新了文本描述,增加了对配置组排序的说明。
  * 添加了一个新的 `TextBlock` 和 `Button`,用于新增配置组。
  * 将“启用状态”列从简单的文本显示改为 `ToggleSwitch` 控件,并使用 `BooleanToEnableTextConverter` 进行绑定。
  * 将 `ListBox.ContextMenu` 更改为 `ListView.ContextMenu`。
  * 为“修改JS脚本自定义配置”菜单项添加了样式和触发器,以根据脚本类型动态显示或隐藏。
在 `ScriptControlViewModel.cs` 中:
  * 添加了 `System.ComponentModel` 的引用。
  * 注释掉了 `WriteScriptGroup` 的循环调用。
  * 修改了 `ShowEditWindow` 方法,将关闭按钮文本从“确定”改为“关闭”。
  * 在 `EditJsScriptSettings` 方法中,添加了对 `LoadSettingUi` 返回值的检查,并在未提供自定义配置时显示警告。
  * 在 `ScriptProjectsCollectionChanged` 方法中,添加了对项目属性变化的事件处理。
  * 添加了 `ScriptProjectsPChanged` 方法,用于处理项目属性变化事件。
  * 更新了 `OnGoToScriptGroupUrl` 方法中的 URL。
新增了 `BooleanToEnableTextConverter.cs` 文件,实现了 `BooleanToEnableTextConverter` 转换器,用于将布尔值与启用状态文本进行转换。
2024-09-07 12:31:07 +08:00
辉鸭蛋
010beebcb6 add open fight script command #569 2024-09-06 00:35:31 +08:00
辉鸭蛋
e6aa70a74c add pick black list 2024-09-06 00:06:25 +08:00
辉鸭蛋
f6801eeaab update ui text #583
原来的文本块内容是“在游戏内剧情‘自动’开启时,快速跳过文本、自动选择选项”,现在被修改为“快速跳过剧情文本、自动选择选项、自动提交物品等”。
2024-09-05 00:49:40 +08:00
辉鸭蛋
522d0517a6 update script 2024-09-03 01:20:09 +08:00
辉鸭蛋
c90fb15557 add 5.0 tp pos 2024-09-03 01:05:37 +08:00
辉鸭蛋
5726e73d40 更新传送点绘制逻辑及界面文本
在 `MainWindow.xaml` 中,修改了按钮文本,将“超大地图标点”改为“画传送点”,并调整了按钮属性顺序以符合 XAML 标准格式。

在 `MapTeleportPointDraw.cs` 中:
- 添加命名空间引用。
- 修改 `Draw` 方法中的文件路径和数据源,增加从 `MapAssets.Instance.TpPositions` 中加载传送点。
- 修改 `DrawTeleportPoint` 方法参数类型为 `List<GiWorldPosition>`,增加坐标转换和文字标注。
- 修改 `LoadTeleportPoint` 方法返回类型为 `List<GiWorldPosition>`。
- 修改 `Transform` 方法返回类型为 `GiWorldPosition`,简化坐标转换逻辑。

在 `ScaleTest.cs` 中:
- 修改 `ZoomOutTest` 方法加载的图像模式为彩色图。
- 修改缩小倍数为 4 倍,调整目标文件路径和图像尺寸。
2024-09-03 00:50:03 +08:00
辉鸭蛋
5d70782c49 auto pick: hard-coding #573 2024-09-02 23:25:24 +08:00
辉鸭蛋
3430e116e3 auto tp: retry after failed map recognition 2024-09-02 01:38:01 +08:00
辉鸭蛋
139b2089d5 fix _submitGoodsEnabled & _closePopupPagedEnabled not vaild 2024-09-01 20:48:45 +08:00
辉鸭蛋
0056dcfc11 #558 2024-09-01 20:46:34 +08:00
辉鸭蛋
c5d5ccab0e fix: trigger may not obtain the latest screenshot 2024-09-01 20:23:10 +08:00
辉鸭蛋
7c1febf307 add pathing ui 2024-09-01 20:15:47 +08:00
辉鸭蛋
5955f90c03 update pathing page 2024-09-01 02:10:13 +08:00
辉鸭蛋
8931a633f1 update pick_black_lists 2024-09-01 00:46:47 +08:00
辉鸭蛋
ae5dbab855 update pick_black_lists 2024-09-01 00:38:18 +08:00
辉鸭蛋
fe09e9c35f Merge branch 'main' of https://github.com/babalae/better-genshin-impact 2024-09-01 00:35:20 +08:00
辉鸭蛋
023733d88f Merge pull request #573 from rong-xiaoli/main
[bug] Fix: AutoPick chose wrong option
2024-09-01 00:33:55 +08:00
辉鸭蛋
93944250e6 update avatar classify model to 5.0 2024-09-01 00:22:45 +08:00
辉鸭蛋
c9f7b3a14b auto wood: automatically disable logging function upon initial failure 2024-09-01 00:22:08 +08:00
容小狸
ae75e9007d Update pick_black_lists.json
Added:
  "我在「回声之子」的声望…";
  "我在「悬木人」的声望…";
  "我在「流泉之众」的声望…";
2024-08-31 21:31:59 +08:00
辉鸭蛋
181b486db7 update avatar to 5.0 2024-08-31 14:17:28 +08:00
辉鸭蛋
4e7349fac4 update Yap to 5.0 2024-08-31 13:29:00 +08:00
辉鸭蛋
36da78cb78 update map data to 5.0 2024-08-31 13:22:05 +08:00
辉鸭蛋
bfddb53fa0 update script repo 2024-08-31 01:24:21 +08:00
辉鸭蛋
185ce4d930 Merge branch 'main' of https://github.com/babalae/better-genshin-impact 2024-08-31 01:09:52 +08:00
辉鸭蛋
7d82b1af9f add scripts submodule 2024-08-31 01:09:19 +08:00
辉鸭蛋
cb47bf730b delete scripts 2024-08-31 01:07:54 +08:00
辉鸭蛋
b2fecf1155 Merge pull request #567 from haokaiyang/main
auto tcg: update character card config to v5.0
2024-08-30 11:40:40 +08:00
haokaiyang
201ac734cb auto tcg: update character card config to v5.0 2024-08-30 11:23:39 +08:00
辉鸭蛋
bb6aa9e121 auto skip: add pause text #552 2024-08-26 23:17:35 +08:00
辉鸭蛋
b68b0d85f6 Js -> JS 2024-08-24 02:28:31 +08:00
辉鸭蛋
7f03157c25 add GetBigMapPosHotkey 2024-08-24 02:22:52 +08:00
辉鸭蛋
461b0b00d1 add JS script dynamic settings 2024-08-24 02:13:46 +08:00
ema
24d798d6b2 UI/UX: use MessageBox from Violeta 2024-08-20 23:46:29 +08:00
辉鸭蛋
447fd103de support high dpi keyboard and mouse recording 2024-08-20 23:40:25 +08:00
辉鸭蛋
b7d492e5d2 I don't know why this error occurred, but I fixed it 2024-08-20 23:35:08 +08:00
辉鸭蛋
3b701735e6 fix kmscript dpi adapt 2024-08-20 23:22:40 +08:00
辉鸭蛋
928f9612c0 Update README.md 2024-08-20 01:17:31 +08:00
辉鸭蛋
a440729a67 Merge pull request #535 from lwh9346/main
继续完善自动寻路
2024-08-20 01:16:10 +08:00
辉鸭蛋
64c5ab78bc Merge branch 'main' into main 2024-08-20 01:15:55 +08:00
辉鸭蛋
c370410d53 add runner 2024-08-20 01:04:59 +08:00
辉鸭蛋
98b1376111 0.33.1 0.33 2024-08-19 23:14:55 +08:00
lwh9346
622a4d5fde allow adding target points 2024-08-19 11:25:55 +08:00
lwh9346
fb0c63f8a8 optimize fly mode and path recording 2024-08-19 11:14:37 +08:00
lwh9346
1610f1cd31 remove redundant screen capture 2024-08-18 22:47:23 +08:00
lwh9346
ab2d6c1de4 copy when transforming coordinate 2024-08-18 21:55:08 +08:00
辉鸭蛋
b62e4a7425 add script group editor 2024-08-18 21:41:12 +08:00