辉鸭蛋
|
b483ec2d84
|
play with merge event
|
2024-12-17 01:30:45 +08:00 |
|
辉鸭蛋
|
0d56fa6c7e
|
fix bug
|
2024-12-17 01:05:24 +08:00 |
|
辉鸭蛋
|
83f8f78203
|
fix all
|
2024-12-16 23:56:30 +08:00 |
|
辉鸭蛋
|
e6bac7e72c
|
add ffmpeg recorder
|
2024-12-16 08:55:08 +08:00 |
|
辉鸭蛋
|
fa3e7fccb0
|
add sharp avi
|
2024-12-15 17:48:30 +08:00 |
|
辉鸭蛋
|
ec8fa6e824
|
KeyDown -> KeyUp
|
2024-12-14 20:52:19 +08:00 |
|
辉鸭蛋
|
3266b63187
|
alt use sendInput
|
2024-12-14 19:56:38 +08:00 |
|
辉鸭蛋
|
294d096229
|
fixed Alt does not take effect when playing macros
|
2024-12-14 18:59:16 +08:00 |
|
辉鸭蛋
|
48b5ab8af6
|
macro: add mouse wheel
|
2024-12-14 18:40:14 +08:00 |
|
辉鸭蛋
|
11dda84592
|
pick drops
|
2024-12-09 00:57:17 +08:00 |
|
辉鸭蛋
|
6cfa4b27a6
|
Merge pull request #835 from babalae/feat/new-camera
new camera orientation algorithm
|
2024-12-02 22:55:21 +08:00 |
|
辉鸭蛋
|
e2a25e4492
|
new camera orientation algorithm by https://github.com/Limint
|
2024-12-02 22:53:40 +08:00 |
|
辉鸭蛋
|
2383761b5d
|
more js methods to expose
|
2024-12-01 16:43:42 +08:00 |
|
辉鸭蛋
|
fa9eacf4ac
|
divide the path by tp point
|
2024-11-25 22:27:04 +08:00 |
|
辉鸭蛋
|
1cad8c3a00
|
pathing: config ui
|
2024-11-24 01:10:30 +08:00 |
|
辉鸭蛋
|
84629942bc
|
pathing: use gadget #799
|
2024-11-24 00:49:49 +08:00 |
|
辉鸭蛋
|
a6f6ce55dd
|
pathing: add OnlyInTeleportRecover config #779
|
2024-11-24 00:32:41 +08:00 |
|
辉鸭蛋
|
3c2739c5c5
|
add GoToAdventurersGuildTask
优化项目结构并新增任务和路径文件
主要更改:
- 在 `BetterGenshinImpact.csproj` 文件中,添加了对 `GameTask\Common\Element\Assets\Json\**` 目录的处理,并确保其内容始终复制到输出目录。
- 在 `RecognitionObject.cs` 文件中,新增了多个静态方法 `Ocr` 和一个静态实例 `OcrThis`。
- 在 `PathExecutor.cs` 文件中,优化了路径执行逻辑,新增 `GetPosition` 方法,并调整了超时判断。
- 在 `AutoPickAssets.cs` 文件中,添加了多个 `using` 语句,新增 `_logger` 和 `PickRo` 字段,并在构造函数中添加了自定义拾取按键的处理逻辑。
- 在 `AutoPickTrigger.cs` 文件中,移除了自定义拾取按键的初始化逻辑。
- 在 `OneKeyExpeditionTask.cs` 文件中,注释掉了 `Cv2.ImWrite` 方法的调用。
- 在 `TpTask.cs` 文件中,添加了点位很近时不切换的判断逻辑。
- 在 `BvSimpleOperation.cs` 文件中,新增了多个点击按钮的方法和 `FindF`、`FindFAndPress` 方法。
- 在 `BvStatus.cs` 文件中,新增了多个方法用于判断是否在对话界面并等待对话界面加载完成。
- 在 `GameTaskManager.cs` 文件中,添加了 `MapAssets.DestroyInstance` 方法的调用。
- 在 `HotKeyPageViewModel.cs` 文件中,注释掉了 `ElementalCollectHandler` 的测试代码,并添加了 `GoToAdventurersGuildTask` 的测试代码。
- 在 `TaskSettingsPageViewModel.cs` 文件中,更新了 `OnGoToAutoGeniusInvokationUrlAsync` 方法中的 URL。
- 添加了 `BetterGenshinImpact - Backup.csproj` 文件,配置了项目属性、资源文件和包引用。
- 添加了 `冒险家协会_枫丹.json`、`合成台_枫丹.json` 和 `合成台_璃月.json` 文件,定义了前往相应地点的路径和动作。
- 添加了 `ChooseTalkOptionTask.cs` 文件,实现了选择对话选项的任务。
- 添加了 `GoToAdventurersGuildTask.cs` 文件,实现了前往冒险家协会领取奖励的任务。
|
2024-11-10 22:49:55 +08:00 |
|
辉鸭蛋
|
648dfd3f41
|
ensure that the 'settings' object passed into JS is not empty
|
2024-11-10 13:22:56 +08:00 |
|
辉鸭蛋
|
435d04b52d
|
pathing: add more settings
|
2024-11-10 00:51:47 +08:00 |
|
辉鸭蛋
|
19c7b10b01
|
fix repo update
|
2024-11-09 17:37:46 +08:00 |
|
辉鸭蛋
|
32bec1656b
|
default pathing condition config
|
2024-11-05 22:50:34 +08:00 |
|
辉鸭蛋
|
003939bb94
|
js: fix no path pathing task
更新 PathingConditionConfig 和 PathingTask 方法以支持空值
将 PathingConditionConfig 类中的 FilterPartyName 方法的 materialName 参数类型从 string 改为 string?,以允许传入空值。增加了对 materialName 是否为空的检查,只有在 materialName 不为空时才进行条件匹配。将 PathingTask 类中的 GetMaterialName 方法的返回类型从 string 改为 string?,以允许返回空值。增加了对 FullPath 是否为空的检查,如果为空则返回 null。
|
2024-11-05 22:26:41 +08:00 |
|
辉鸭蛋
|
9c9bd7d138
|
js: extend click time
修改了 `GlobalMethod` 类中的 `Click` 方法,现在调用 `LeftButtonClick` 方法而不是 `Simulation.SendInput.Mouse.LeftButtonClick`。
修改了 `GlobalMethod` 类中的 `LeftButtonClick` 方法,现在使用 `Simulation.SendInput.Mouse.LeftButtonDown().Sleep(60).LeftButtonUp()` 代替 `Simulation.SendInput.Mouse.LeftButtonClick`。
修改了 `GlobalMethod` 类中的 `RightButtonClick` 方法,现在使用 `Simulation.SendInput.Mouse.RightButtonDown().Sleep(60).RightButtonUp()` 代替 `Simulation.SendInput.Mouse.RightButtonClick`。
|
2024-11-05 22:00:16 +08:00 |
|
辉鸭蛋
|
5b054bf31b
|
0.36.0
|
2024-11-04 21:33:07 +08:00 |
|
辉鸭蛋
|
a98934fc9a
|
fix bug
|
2024-11-02 22:56:35 +08:00 |
|
辉鸭蛋
|
2b8f38b758
|
finsh pathing config
|
2024-11-02 21:03:58 +08:00 |
|
辉鸭蛋
|
2545581807
|
new pathing config
|
2024-11-02 19:49:38 +08:00 |
|
辉鸭蛋
|
dcd7831368
|
auto fix win11 bitblt
|
2024-11-02 12:57:58 +08:00 |
|
辉鸭蛋
|
4725af5491
|
impl js run task
|
2024-11-01 21:37:44 +08:00 |
|
辉鸭蛋
|
b74e09ac8b
|
add continuous execution & add pathing ui right menu & real time updates of script repository
更新了 `BetterGenshinImpact.csproj` 文件中的 `WPF-UI.Violeta` 包版本,从 `3.0.5.21` 升级到 `3.0.5.23`。
在 `RepoWebBridge.cs` 文件中,注释掉了检查本地 `repo.json` 文件是否存在的代码,并直接调用 `ScriptRepoUpdater.Instance.UpdateCenterRepo()` 方法更新仓库。更新后的异常信息也进行了修改。
在 `MapPathingPage.xaml` 文件中,删除了 `ui:TreeListView` 控件的 `behavior:RightClickSelectBehavior.Enabled` 属性。
在 `ScriptControlPage.xaml` 文件中,添加了一个新的 `RowDefinition`,并在 `Grid` 中添加了一个新的 `ui:Button`,用于执行连续脚本组的命令。
在 `ScriptControlViewModel.cs` 文件中,添加了 `System.Windows.Media` 的引用。
在 `ScriptControlViewModel.cs` 文件中,添加了一个新的异步方法 `OnStartMultiScriptGroupAsync`,用于显示一个包含全选按钮和配置组复选框的对话框,并执行选中的脚本组。
|
2024-10-28 00:25:14 +08:00 |
|
辉鸭蛋
|
44190a522b
|
team identification support online
修复错误信息,改进联机状态处理
更新了 `BetterGenshinImpact.csproj` 文件中的程序集版本号,从 `0.35.2` 更新为 `0.35.4`。
修正了 `ScriptProject.cs` 文件中抛出 `FileNotFoundException` 异常时的错误信息,将 "manifest.json文件存在" 改为 "manifest.json文件不存在"。
在 `AutoFightAssets.cs` 文件中:
- 为 `AvatarSideIconRectList` 和 `AvatarIndexRectList` 添加了注释,解释其在非联机状态下的用途。
- 添加了多个新的属性和注释,用于处理联机状态下的角色头像和对应的白色块位置。
- 初始化了 `OnePRa` 和 `PRa` 两个识别对象,用于识别联机状态下的1P和P图标。
在 `Avatar.cs` 文件中:
- 修改了角色切换逻辑,使用 `CombatScenes.ExpectedTeamAvatarNum` 替代硬编码的数字。
- 在 `TrySwitch` 方法中添加了 `needLog` 参数,并在切换成功时记录日志。
- 移除了部分注释代码,并在日志中保存了角色切换和索引区域的截图。
- 添加了 `System.Diagnostics` 的引用。
在 `CombatScenes.cs` 文件中:
- 将 `Avatars` 初始化为空数组。
- 添加了 `ExpectedTeamAvatarNum` 属性,默认值为4。
- 在 `InitializeTeam` 方法中添加了联机状态的判断和处理逻辑。
- 修改了队伍识别逻辑,使用动态数组替代固定长度的数组。
- 修改了 `CheckTeamInitialized` 方法,使用 `ExpectedTeamAvatarNum` 替代硬编码的数字。
- 修改了 `BuildAvatars` 方法,添加了对联机状态下角色编号位置信息的处理。
- 修改了 `SelectAvatar` 方法,使用 `GetValueOrDefault` 替代 `TryGetValue`。
在 `ScriptControlViewModel.cs` 文件中,设置 `WindowStartupLocation` 为 `WindowStartupLocation.CenterOwner`。
添加了 `1p.png` 和 `p.png` 两个新图像文件,用于识别联机状态下的1P和P图标。
|
2024-10-27 17:15:55 +08:00 |
|
辉鸭蛋
|
98d2664c28
|
auto pathing: use group config & fix bug
|
2024-10-27 00:51:10 +08:00 |
|
辉鸭蛋
|
72c2e38f94
|
add pathing settings for script group
|
2024-10-26 21:11:59 +08:00 |
|
辉鸭蛋
|
14a1d3be74
|
auto pathing: add settings ui
|
2024-10-25 01:17:00 +08:00 |
|
辉鸭蛋
|
94aae80046
|
auto pathing: optimize switch avatar
删除 `BetterGenshinImpact.csproj` 中的无用文件夹包含项。
将 `PathingConfig.cs` 中部分属性类型从 `int` 改为 `string`,并调整默认值。
在 `ScriptRepoUpdater.cs` 中用 `MessageBox` 替换 `ContentDialog`。
简化 `ElementalSkillHandler.cs` 和 `NormalAttackHandler.cs` 中的代码。
删除 `NahidaCollectHandler.cs` 中的切换角色代码。
在 `PathingTask.cs` 中添加 `HasAction` 方法。
在 `PathExecutor.cs` 中添加 `_actionAvatarIndexMap` 字典和多个新方法。
新增 `ReturnMainUiTask.cs` 任务类。
|
2024-10-24 23:05:52 +08:00 |
|
辉鸭蛋
|
404e7215fa
|
add icon for pathing ui
|
2024-10-24 00:48:58 +08:00 |
|
辉鸭蛋
|
b3f6002846
|
add pathing config
|
2024-10-22 01:21:11 +08:00 |
|
辉鸭蛋
|
960cfea102
|
fix script repo web
重构:移出 localRepoJsonPath 赋值和 null 检查逻辑
将 localRepoJsonPath 的赋值和 null 检查逻辑移出 if (needUpdate) 代码块,以确保无论 needUpdate 的值如何,这段逻辑都会被执行。
|
2024-10-22 00:36:26 +08:00 |
|
辉鸭蛋
|
7cc4093079
|
refresh the ui after subscribing to the script
重构了多个类中的方法为异步方法,并增加了消息注册逻辑:
- `ScriptRepoUpdater.cs`:增加了检查并创建 `ReposPath` 目录的逻辑。
- `RepoWebBridge.cs`:引用新命名空间,重构 `GetRepoJson` 和 `ImportUri` 方法为异步方法,增加了检查和更新本地仓库的逻辑。
- `JsListViewModel.cs` 和 `MapPathingViewModel.cs`:引用新命名空间,增加消息注册逻辑,修正方法中的引用。
- `PathingTask.cs`:修正了日志记录中 `FileName` 的引用。
- `TaskSettingsPage.xaml`:更新了文本内容,增加了关于装备「王树瑞佑」的说明。
- 新增 `RefreshDataMessage.cs` 文件,定义了 `RefreshDataMessage` 类。
|
2024-10-21 01:32:36 +08:00 |
|
辉鸭蛋
|
6b41b52008
|
warning when script version number is too high
更新程序集版本号并添加版本号比较逻辑
更新了 `BetterGenshinImpact.csproj` 文件中的程序集版本号,从 `0.35.0` 更新到 `0.35.1`。
在 `Manifest.cs` 文件中,增加了对 `BetterGenshinImpact.GameTask.Common` 和 `Microsoft.Extensions.Logging` 的引用,并在 `Manifest` 类中增加了版本号比较的逻辑,如果脚本要求的版本号大于当前版本号,则记录错误日志。
在 `ScriptProject` 类的构造函数中,增加了对脚本文件夹是否存在的检查,如果不存在则抛出 `DirectoryNotFoundException` 异常。
在 `PathingTask.cs` 文件中,增加了对 `BetterGenshinImpact.Core.Config`、`BetterGenshinImpact.GameTask.Common` 和 `Microsoft.Extensions.Logging` 的引用,并在 `PathingTask` 类中增加了版本号比较的逻辑,如果路径追踪任务要求的版本号大于当前版本号,则记录错误日志。
|
2024-10-20 15:47:03 +08:00 |
|
辉鸭蛋
|
11ec9bc45d
|
refactor: CancellationTokenSource -> CancellationToken
|
2024-10-19 01:50:21 +08:00 |
|
辉鸭蛋
|
3d2b1b376e
|
0.35.0
|
2024-10-14 00:24:11 +08:00 |
|
辉鸭蛋
|
c4a7823c83
|
fix js pathingScript
|
2024-10-13 22:58:42 +08:00 |
|
辉鸭蛋
|
b2cf62a21c
|
add local script repo web
重构了 `AvatarClassifyGen.cs` 中的图像读取逻辑,现在只读取一个图像文件。`AllConfig.cs` 中添加了 `ScriptConfig` 类的配置,并监听其属性变化。`ScriptRepoUpdater.cs` 中引入了多个新命名空间,添加了 `_logger` 和 `_webWindow` 字段,新增了 `AutoUpdate` 方法,修改了 `UpdateCenterRepo` 方法,新增了 `FindCenterRepoPath`、`ImportScriptFromUri` 和 `OpenLocalRepoInWebView` 方法。`WebpagePanel.cs` 中添加了 `OnWebViewInitializedAction` 属性。`WebpageWindow.cs` 中注释掉了背景色设置。`MainWindow.xaml` 中修改了标题栏图标路径。`JsListPage.xaml`、`KeyMouseRecordPage.xaml` 和 `MapPathingPage.xaml` 中修改了按钮命令绑定。`MainWindowViewModel.cs` 中添加了 `AutoUpdate` 方法调用。`JsListViewModel.cs`、`KeyMouseRecordPageViewModel.cs` 和 `MapPathingViewModel.cs` 中添加了 `Config` 属性和 `OnOpenLocalScriptRepo` 命令。新增了 `ScriptConfig.cs` 和 `RepoWebBridge.cs` 文件,定义了 `ScriptConfig` 和 `RepoWebBridge` 类。
|
2024-10-13 18:13:28 +08:00 |
|
辉鸭蛋
|
c75dbbc241
|
add script repo downloader
|
2024-10-13 13:36:06 +08:00 |
|
辉鸭蛋
|
bb18350457
|
fix mouse move for js
|
2024-10-11 03:12:38 +08:00 |
|
辉鸭蛋
|
c13db0a501
|
rename
|
2024-10-08 00:21:56 +08:00 |
|
辉鸭蛋
|
876a833590
|
fix: js script bug
|
2024-10-04 19:04:32 +08:00 |
|
辉鸭蛋
|
160e45c75a
|
fix JustTp
|
2024-10-04 14:24:42 +08:00 |
|