Commit Graph

91 Commits

Author SHA1 Message Date
Constrat
995af0fcda ci: bump oxi, clang, prettier, markdownlint (#12388)
* ci: bump oxi, clang, prettier, markdownlint

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: 移除不再使用clang-format的JSON文件

* chore: clang-format disable

* chore: clang版本更新

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: ver注释

* docs: Modify the clang-format version restriction in the documentation to match the current changes

@zzyyyl

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2025-04-20 09:42:41 +08:00
Aliothmoon
76e41e30e2 feat: 调整按钮阴影 (#12398)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-19 00:14:23 +08:00
Constrat
f33fcc4ce5 style: clang mass formatting 2025-04-17 09:32:58 +02:00
status102
5628ad3693 Revert "style: clang formatting"
This reverts commit 1656a80b54.
2025-02-02 23:59:46 +08:00
Constrat
1656a80b54 style: clang formatting
[skip changelog]
2025-02-02 14:24:12 +01:00
status102
896032a477 fix: 移除二次检查
[skip changelog]
2025-02-02 15:44:55 +08:00
晓丶梦丶仁
3d5e05414f feat: 点刺、后勤种子存钱 & ProcessTask 添加 Input 方法 (#11521)
* feat: 为 ProcessTask 添加文本输入功能

* feat: 点刺、后勤种子存钱

* docs: 为 Input 方法添加文档

* perf: 添加循环刷钱cd检查

* perf: werror

* perf: 改变 Input 的 int 值

* perf: 减少 AsstProxy 传参,改用 c:Binding

* chore: 界面显示和获取分离

---------

Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
2025-01-12 20:03:09 +08:00
uye
918bce16d6 chore: 修改上报抬头 2025-01-04 12:50:44 +08:00
Weiyou Wang
f0174a6541 feat: 自动编队允许指定助战单位 (#11075)
* feat: 自动编队自动借助战

Revert d78fc68

fix: 招募助战后继续(缺少点击快速招募)

i18n: 翻译

style: clang-format

fix: basetask template

fix: werror

perf: 注释、format

i18n: en

perf: 完成功能实现,复用task,进行gui输出

perf: 更改默认状态

feat: BattleFormationTask

Revert 05baeb4 (Back to 739aa03)

* fix: 缺干员回到主界面的时候应该点确认而不是返回

* feat: 助战干员职业选择栏模版

* refactor: UseSupportUnitTaskPlugin

* chore: Auto update by pre-commit hooks [skip changelog]

* perf: 默认值适配国服

* chore: Auto update by pre-commit hooks [skip changelog]

* feat: try_find_and_apply_support_unit

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 大概可以用了

* fix: 补充 struct 的构造函数

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 添加默认构造函数

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 改改类型

* fix: callback[what] 纠正

* perf: roi及初始化优化

* perf: 简化中英文查找

* perf: rename func

* perf: click roi

* fix: 在点击助战干员的行动后添加 LoadingText

* fix: 打点 Log

* fix: remove unused function

---------

Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
Co-authored-by: 晓丶梦丶仁 <74444214+Daydreamer114@users.noreply.github.com>
2024-11-06 00:37:43 +11:00
status102
1daa200c40 Revert "feat: 自动编队允许指定助战单位 (#10820)"
This reverts commit e595aa021f.
2024-11-05 17:57:24 +08:00
晓丶梦丶仁
e595aa021f feat: 自动编队允许指定助战单位 (#10820)
* feat: 自动编队自动借助战

Revert d78fc68

fix: 招募助战后继续(缺少点击快速招募)

i18n: 翻译

style: clang-format

fix: basetask template

fix: werror

perf: 注释、format

i18n: en

perf: 完成功能实现,复用task,进行gui输出

perf: 更改默认状态

feat: BattleFormationTask

Revert 05baeb4 (Back to  739aa03)

* fix: 缺干员回到主界面的时候应该点确认而不是返回

* feat: 助战干员职业选择栏模版

* refactor: UseSupportUnitTaskPlugin

* chore: Auto update by pre-commit hooks [skip changelog]

* perf: 默认值适配国服

* chore: Auto update by pre-commit hooks [skip changelog]

* feat: try_find_and_apply_support_unit

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 大概可以用了

* fix: 补充 struct 的构造函数

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 添加默认构造函数

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 改改类型

* fix: callback[what] 纠正

* perf: roi及初始化优化

* perf: 简化中英文查找

* perf: rename func

* perf: click roi

* fix: 在点击助战干员的行动后添加 LoadingText

* fix: 打点 Log

* fix: remove unused function

---------

Co-authored-by: Weiyou Wang <44151844+Alan-Charred@users.noreply.github.com>
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-11-05 17:09:25 +11:00
pre-commit-ci[bot]
ce02c80498 chore: Auto update by pre-commit hooks [skip changelog] 2024-10-22 08:40:28 +00:00
zzyyyl
ec42d503e0 feat!: 更新保全 strategies 逻辑 (#10314)
* feat: 保全策略更新

* docs: 修改保全文档对 strategies 的描述

* style: format

[skip changelog]

* feat: 无可用工具人且无 core 时允许检查同一格的后续策略

* style: format

[skip changelog]

* feat: 不再检查干员是否暴毙

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

* fix: 修复m_all_cores可能插入空core名字导致保全战斗主要部署逻辑结束后仍然识别待部署区

* fix: var reset

---------

Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-08-29 19:53:52 +08:00
status102
730b1733d0 Revert "feat: 保全作战保留core不过牌且放置core后回到待部署则重放工具人和core" (#10300)
* Revert "feat: 保全作战保留core不过牌且放置core后回到待部署则重放工具人和core"

This reverts commit 970d2cfddc.

* Revert "feat: 保全作战相同location以json写的策略顺序执行"

This reverts commit 29db7fabd9.
2024-08-20 08:00:50 +08:00
晓丶梦丶仁
29db7fabd9 feat: 保全作战相同location以json写的策略顺序执行 2024-08-20 00:47:59 +08:00
status102
0b5704c02f Revert "chore: 保全作战相同location以json写的策略顺序执行、全局保留core干员不作为过牌干员" (#10285)
Revert "chore: 保全作战相同location以json写的策略顺序执行、全局保留core干员不作为过牌干员 (#10284)"

This reverts commit 22817d4717.

不该是chore吧,要发版了等发版完再进
2024-08-19 07:49:25 +08:00
晓丶梦丶仁
22817d4717 chore: 保全作战相同location以json写的策略顺序执行、全局保留core干员不作为过牌干员 (#10284)
* feat: SSSstrategy之间同一位置需按json内写的顺序放置

* fix: 添加哈希函数

* fix: 修改错误参数

* refactor: 改用shared_ptr

* feat: 保全作业将不允许用核心干员作为工具人

* fix: 实现全局保core

* fix: 增加顺序tag减少bug

---------

Co-authored-by: Weiyou Wang <blspgzs@gmail.com>
2024-08-19 07:36:22 +08:00
zzyyyl
856cc6494d feat!: 拆分 maskRange 与 colorScales;增加 colorWithClose 开关数色时闭运算 2024-08-17 01:22:17 +08:00
zzyyyl
0aa3d31d95 feat: 删除 action ClickRand (#10003) 2024-08-03 09:35:43 +08:00
zzyyyl
89228d1d6d feat: 删去 CcoeffHSV, HSVCount 时的模板匹配采用 RGB 的 Ccoeff
CcoeffHSV 有致命缺陷: (0, 0, 0) 与 (179, 0, 0) 应为相似颜色,因为 Hue 是循环的

* feat: HSVCount & RGBCount 的返回结果为点积

为了尽量保证 0.8 的阈值

* workaround: HSVCount & RGBCount 时 maskRange 不再对模板匹配生效

否则数色时的模板匹配结果将不准确,之后可以分开 maskRange 和 colorRange, 后者的格式可以讨论后再做决定
2024-07-28 01:11:59 +08:00
zzyyyl
98e24a1093 feat!: 增加图像匹配算法 RGBCount, HSVCount
feat: 使用 F1-score 作为返回结果而不是 Recall

perf: 简化 F1-score 计算
2024-07-22 14:43:35 +08:00
zzyyyl
49fb5bcf2b feat!: mask_range 支持彩色掩码 (#9818) 2024-07-22 14:42:10 +08:00
zzyyyl
98cde630a4 feat: mask_range 支持彩色掩码 2024-07-22 13:12:10 +08:00
zzyyyl
11761f9196 feat: 删除 HashTaskInfo 相关 2024-07-21 20:33:55 +08:00
zzyyyl
64bcac6e02 feat: 支持自定义 MatchTemplate 匹配方法 2024-07-20 12:36:02 +08:00
Weiyou Wang
ed56d04968 refactor: matcher result will contain the name of the matched template 2024-06-10 18:49:39 +10:00
Horror Proton
0b9c0915ec fix: remove incorrect use of __cpp_lib_ranges 2024-05-13 18:56:47 +08:00
Horror Proton
9635cdf7f4 feat: add compile def to disable emulator extras 2024-05-13 18:35:50 +08:00
dantmnf
20a5574780 feat: Wine 支持 (#8960)
* feat: WineRuntimeInformation

* fix: system theme crash under wine

* refactor: toast notification

* feat: add destory callback

* feat: detect winegcc

* feat: use native MaaCore under Wine

* feat: libnotify integration

* chore: disable hardware accelration under Wine

* fix: distorted icon under Wine

* chore: use Environment.ProcessPath instead of cursed alternatives

* chore: don't filter *.exe when using native MaaCore

* chore: force Aero2 theme

* chore: allow build MaaWpfGui without Windows

You need to extract native .NET SDK on top of Windows .NET SDK to get a working WPF SDK.

* feat: fontconfig integration

* docs: run MaaWpfGui under Wine
2024-05-12 23:27:46 +08:00
zzyyyl
7025c6fbed refactor: 优化与 TaskData 的 get_raw 和 get 相关部分
fix: 使用 std::erase & std::erase_if, 避免使用具有不同定义的 ranges::remove & ranges::remove_if

现在 get_raw 只能获取任务的继承信息,其它详细信息会在 get 的时候解析。

另:
- 增加 TaskDerivedType 表示任务的继承类型
- 增加 TaskPipelineInfo 表示任务的流程信息(name + 5个TaskList的任务列表)
- 增加 TaskDerivedInfo 表示任务的继承信息,包含 base & prefix & TaskDerivedType
- 给各个任务类型的 shared_ptr 增加了别名;

(cherry picked from commit c09ff03010)
2023-11-29 19:02:42 +08:00
zzyyyl
e829ba06ca Revert "feat: 重构 TaskData (#7410)"
This reverts commit ca9501652a, reversing
changes made to 8719e9b416.
2023-11-29 00:09:10 +08:00
zzyyyl
c09ff03010 refactor: 优化与 TaskData 的 get_raw 和 get 相关部分
fix: 使用 std::erase & std::erase_if, 避免使用具有不同定义的 ranges::remove & ranges::remove_if

现在 get_raw 只能获取任务的继承信息,其它详细信息会在 get 的时候解析。

另:
- 增加 TaskDerivedType 表示任务的继承类型
- 增加 TaskPipelineInfo 表示任务的流程信息(name + 5个TaskList的任务列表)
- 增加 TaskDerivedInfo 表示任务的继承信息,包含 base & prefix & TaskDerivedType
- 给各个任务类型的 shared_ptr 增加了别名;
2023-11-27 14:59:12 +08:00
status102
d04855ae41 perf: 迁移肉鸽主题、肉鸽主题检查 2023-11-14 21:00:05 +08:00
zzyyyl
af9ff4c0bb style: format [skip changelog]
python tools\ClangFormatter\clang-formatter.py --input=src\MaaCore --ignore="[\"src/MaaCore/x64\"]"
python tools\ClangFormatter\clang-formatter.py --input=resource\ --ignore="[\"resource/Arknights-Tile-Pos\", \"resource/infrast.json\"]"
2023-10-19 14:35:06 +08:00
MistEO
4f1bf344c4 feat: support GPU OCR 2023-10-11 17:44:18 +08:00
David
8c72af9a04 feat: operbox operator names localization (#6726)
fix #6664
2023-10-08 11:17:59 +02:00
MistEO
41d0c507da feat: 支持多模板匹配,任一达到阈值即视为命中
MultiMatcher 暂不支持,仅使用第一个模板
2023-10-01 13:54:56 +08:00
zzyyyl
69fad6f127 style: code format 2023-09-30 23:44:34 +08:00
MistEO
5232d41369 feat: 基建 制造站、贸易站、控制中枢 新增支持干员编组配置 (#6249) 2023-09-11 22:47:06 +08:00
status102
a9466ec991 feat: 自动战斗-自动编队 增加自动追加自定干员设置 2023-09-10 19:29:07 +08:00
status102
d224b047bf feat: 增加 控制中枢 支持干员编组配置,以及编组选择输出 2023-09-10 12:42:21 +08:00
status102
273cbc2332 feat: 基建制造站和贸易站新增支持干员编组配置 2023-09-10 12:41:02 +08:00
Annoying Flower
5a7659c1b3 feat: 添加对 "skill_times" 字段的支持,再也不会狂点重岳辣 (#6007) 2023-08-20 21:38:40 +08:00
Hao Guan
1121980592 fix: 修复对ranges支持检测的判断条件 2023-07-20 04:52:15 +10:00
Infko
d9a2badfd8 fix# clang-tidy compatibility 2023-07-18 15:11:20 +00:00
DavidWang19
50b8bcd758 feat: 适配萨米肉鸽 2023-07-14 09:29:17 +01:00
MistEO
67da458bc2 fix: 将 OCR replace 改为有序 2023-06-29 10:11:26 +08:00
MistEO
679c66dd0a feat: 提前为更新json库做好准备() 2023-05-17 00:46:44 +08:00
Annoying Flower
21416b81ae fix: 解决guard和supporter字段不识别的问题
guard拼错了(
游戏里辅助的正统翻译是supporter,所以顺便加上了
2023-05-12 09:16:42 +08:00
MistEO
578e5abc05 refactor: Vision 超级大重构 Phase 1 2023-04-27 22:42:56 +08:00