Commit Graph

6139 Commits

Author SHA1 Message Date
uye
f42f527015 fix: 强制定时启动报错 2024-09-23 12:58:06 +08:00
uye
f38c88c7f4 chore: TimerSettings 改用 NumericUpDown 验证输入 2024-09-23 12:27:26 +08:00
uye
525140fa75 chore: 定时启动添加日志 2024-09-23 11:44:49 +08:00
uye
0075b59da1 chore: 主定时器改用 Timer 2024-09-23 11:22:32 +08:00
uye
cb331b653c chore: 在 ui 线程清除日志 2024-09-23 11:21:29 +08:00
uye
94ff657808 perf: 优化 RecognizerViewModel (#10641)
* perf: 优化 RecognizerViewModel

删除多余变量,避免大量内存重复申请

* perf: 优化 peep 逻辑

* chore: 优化异步截图

* perf: 移除不必要的任务调用

* perf: 优化截图

* chore: stream 使用 using

* chore: TestLinkAndGetImage 改用 AsstGetFreshImageAsync

* refactor: 提取 peep 页面,允许自定义触发器间隔

* chore: 添加 PeepInterval 最小值

* chore: 避免重复订阅事件

* chore: _peepImageTimer 改用 System.Timers.Timer

* refactor: PeepInterval 改为 PeepTargetFps

* fix: 截图时间过长时导致队列阻塞无法停止观测

* perf: 增加截图任务并发限制

* chore: 调整变量名

说起来真有人能截图截到 Int.Max 吗

* chore: 调整初始分配线程数

---------

Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-09-21 22:53:19 +08:00
status102
6c25ec2f46 perf: 截图测试使用GetFreshImage替代添加冗余任务 2024-09-20 10:11:08 +08:00
uye
82a5f53ff1 chore: 启动后对已有配置排序
fix https://github.com/orgs/MaaAssistantArknights/discussions/10633
2024-09-18 19:44:07 +08:00
uye
ae77c07311 feat: capture fresh image (#10460)
* feat: 使用 AsstAsyncScreencap 的实时截图

---------

Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>

* feat: 增加空阻塞任务以便调试

* chore: 增加帧率显示

---------

Co-authored-by: zzyyyl <aysyxx53@hotmail.com>
2024-09-18 00:41:30 +08:00
uye
c4e320526c feat: LD 截图 (#10581)
* feat: EmulatorExtras 子模块更新

* feat: 写了一坨

* feat: 大概是能用了

* feat: ui 支持 ld 截图增强

* chore: 修改 LdSpecialScreenshot 颜色,调整版本要求描述

* chore: 使用 steady_clock

* chore: 移除未使用变量
2024-09-17 22:52:18 +08:00
uye
4734d2600d chore: 喜报! (#10578)
* chore: 喜报!

* fix: 无法复制完整信息

* perf: 优化彩色显示效果

* feat: 支持切换ErrorView

* feat: 添加UI开关

* fix: 绑定不生效

* chore: 修改标题

* chore: 改成正常的翻译

* chore: 去除多余翻译

* chore: 调整淡入时长

* chore: 降低点图片质量

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com>
2024-09-17 22:51:43 +08:00
Constrat
a47597879c i18n: SSS log EN tweak 2024-09-17 11:44:16 +02:00
uye
1e6a985bc7 fix: 下干员操作不显示干员组名字
fix #10629
2024-09-16 23:26:53 +08:00
status102
b8ea0d41a7 i18n: zh任务链完成耗时 2024-09-16 17:23:08 +08:00
uye
d2040d3328 fix: adb lite 无法连接 2024-09-16 16:35:28 +08:00
uye
eef2a80b36 fix: 配置问题 (#10601)
* fix: _configurationBakFile 不生效

* chore: HttpService 使用 SettingsViewModel 属性

* chore: GetValue 增加同步锁

* chore: 备份有错误的配置文件

* chore: 使用 ConcurrentDictionary

* style: 减少缩进

* chore: 移除未使用变量

* chore: 目录下存在 DEBUG/DEBUG.txt 的情况下输出更低等级的日志信息

* fix: 无配置文件时报错

* chore: gui.log 输出日志等级

* chore: 给写入文件的时候加锁

* perf: 减少重复检查

* fix: omit

---------

Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-09-15 22:04:11 +08:00
uye
ef2873c977 fix: 重置战斗参数状态错误 2024-09-15 15:12:12 +08:00
Autumn Sound
331bfa11ce feat: 移除在非windows上locale的实现 (#9680) 2024-09-15 14:17:32 +08:00
dragonheart107
a7be240c4a i18n: RA2 replace brush with farm (#10610)
fix mistranslation 'brush' into farm en-us.xaml
2024-09-14 22:35:54 +08:00
uye
34a2b083d8 perf: 使用 devices 判断是否需要连接 (#10606)
* perf: 使用 devices 判断是否需要连接

* chore: 判断是否存在捕获组
2024-09-14 14:29:01 +08:00
Constrat
2e4bb63acf i18n: EN reduced copilot output 2024-09-12 15:18:26 +02:00
uye
02ff6e0c63 perf: 优化 connect 逻辑 (#10571)
* chore: 优化 connect 对实体设备和已有错误路径下自动检测的支持

* perf: 优化 core 对 connect 成功的判断逻辑

may fix 类似 #10426 的异常情况
2024-09-12 13:07:36 +08:00
uye
fbca4a6bf0 perf: 增强任务和基建列表健壮性,部分异常配置下可自动还原
fix #10583
2024-09-11 22:56:36 +08:00
Constrat
1c00f4277e fix: missing parameter for system notification
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/pull/10562#issuecomment-2342509182
2024-09-11 10:53:10 +02:00
Constrat
838a1d9844 chore: international english date format 2024-09-10 15:48:06 +02:00
Constrat
08f44e066d feat: time diff log output and notification (#10562)
* feat: StartTaskTime + diff calculation

* chore: updated xaml with TimeDiff

* feat: logic for all task complete timediff log

* chore: update xaml for timediff log output

Co-authored-by: status102 <102887808+status102@users.noreply.github.com>

* i18n: chinese tweak

---------

Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-09-10 12:03:52 +01:00
uye
7744a30869 fix: 阻止休眠时保持屏幕常亮功能无效
fix #10575
2024-09-10 18:43:02 +08:00
uye
5e11128fa2 chore: 添加移动 MAA.exe 的解决方案 (#10565)
* chore: 添加移动 MAA.exe 的解决方案

* i18n: tweak kR

---------

Co-authored-by: HX3N <128385247+HX3N@users.noreply.github.com>
2024-09-10 09:59:01 +08:00
晓丶梦丶仁
a12f3d8fc9 fix: 将肉鸽招募的等级限制改为精一55级 2024-09-10 01:10:16 +08:00
HX3N
f8f9a70dca i18n: KR tweaked translations (#10560) 2024-09-09 19:53:26 +08:00
status102
abb471ba74 perf: Wpf版本号显示最小宽度调整 2024-09-09 19:44:05 +08:00
uye
26781dd864 chore: Shutdown() 增加输出调用者信息 2024-09-09 15:41:11 +08:00
uye
4bd5b9ee79 chore: 关机倒计时前显示窗口 2024-09-09 14:58:32 +08:00
uye
32535dc79f chore: Add logging for timer cancellation status 2024-09-09 14:46:05 +08:00
zzyyyl
b224518303 refactor: 重构 ProcessTask (#10001) 2024-09-09 11:23:44 +08:00
status102
6529b8b1bc perf: 调整MumuExtras未生效->Mumu截图增强未生效 2024-09-08 17:46:16 +08:00
uye
32c64823ee perf: 拆分技能识别与使用 (#10536)
* perf: 拆分技能识别与使用

* chore: 调整 use_all_ready_skill 技能使用过快判断
2024-09-08 16:27:10 +08:00
uye
ca2d9ccf0b chore: 增加未取消关机的日志 2024-09-08 15:19:51 +08:00
uye
43d184c57c chore: 加点关机日志 2024-09-08 15:04:05 +08:00
uye
6866c57f48 fix: 未输入完整开局干员时点选会清空已输入内容 2024-09-07 22:36:04 +08:00
Constrat
7023d7ea57 fix: xaml escape character
fix ee96efe
2024-09-07 12:41:10 +02:00
Constrat
ee96efeede i18n: en-us Expiring potion hour consistency
@status102 should give a better idea
2024-09-07 12:02:56 +02:00
uye
7e5aa9402c chore: 调整使用技能间隔日志输出等级,调整间隔时间 2024-09-07 14:21:18 +08:00
status102
1ec890214d style: format
[skip changelog]
2024-09-07 14:02:29 +08:00
status102
ccdd0c9e06 style: format
[skip changelog]
2024-09-07 14:02:29 +08:00
uye
7d31fc8c29 perf: 允许 TimerCanceledAsync 提前返回
#10520
2024-09-07 13:51:38 +08:00
uye
453ce619f8 chore: 修改存储的构建日期 2024-09-06 12:10:22 +08:00
uye
c6c640c2a6 feat: date format language based (#10424)
c479834d38
2024-09-06 00:08:33 +08:00
uye
e5d5a48033 chore: 邪道 2024-09-06 00:04:19 +08:00
uye
a9eb6ed025 chore: 修改格式化条件 2024-09-05 22:56:42 +08:00