Skip to content

Add batch Mod actions, menu-state filtering and loader auto-save - #68

Merged
uyujkk merged 2 commits into
mainfrom
feature/direct-items
Nov 3, 2026
Merged

uyujkk merged 2 commits into
mainfrom
feature/direct-items

Conversation

@uyujkk

@uyujkk uyujkk commented Nov 3, 2026

Copy link
Copy Markdown
Owner

修改内容 / Summary

路线图 C1(大部分)、C4、C6,以及 G3 的自定义导入器。

  • C1 批量操作: 新增 MainWindow.BatchModActions.cs,可把多个 Mod 加入组合预设、复制到文件夹或删除。单个删除的逻辑抽成 RemoveModAndItsLinks,批量删除共用它,先移除加载器里的链接再删目录。批量加标签原来就有。
  • C4 菜单状态过滤: 新增 TransientVariablePolicy。规则取自维护者仓库里 1443 个真实变量名,只过滤菜单开关、页码和菜单、图标、面板的位置;调色盘位置和外观参数一律保留。一个 Mod 的变量如果全部命中,就不过滤,避免存出空槽位。只在保存时生效,已保存的槽位不变。
  • C6 自动保存间隔: 新增 LoaderAutoSaveSetting,只读写 d3dx.ini [System] 里的 settings_auto_save_interval,只改数字,其余内容不动。
  • G3 自定义导入器: 仓库可以保存自己的 XxmiImporter,优先于游戏预设。EFMI 不在可选列表里,因为终末地有自己的集成启动。

用户可见变化 / User-visible Changes

  • Mod 列表旁新增“批量”按钮。批量删除和单个删除一样是永久删除,不进回收站,确认框会写明。
  • 保存或更新状态槽位时,菜单状态变量默认不保存:主窗口列出它们并可逐项保留,浮窗保存会显示略过的数量。快捷键页新增开关“槽位也保存 Mod 菜单的状态”。
  • 快捷键页新增“加载器自动保存间隔”(5、10、30、60 秒),修改前在旁边备份 d3dx.ini,可以恢复原值。
  • 仓库编辑对话框新增“XXMI 导入器”。
  • 配置新增可选字段 KeepMenuStateVariables、LoaderAutoSaveOriginals、XxmiImporter,旧配置可以直接读入。

验证 / Verification

  • 已运行 scripts/test-all.ps1 / Ran scripts/test-all.ps1
  • 新增或更新了相关测试 / Added or updated relevant tests
  • 检查了中文和英文界面文字 / Checked Chinese and English UI text
  • 未提交配置、缓存、日志、凭据、构建产物或用户 Mod / Did not commit configuration, caches, logs, credentials, build outputs, or user mods

scripts/test-all.ps1 全部通过(Core 1506、数据 24、更新器 32、Endfield 47),scripts/check-code-style.ps1 也已通过。

已确认:演示环境打开批量对话框,显示正常,没有错误日志。

未验证:

  • 批量的三个动作的实际执行。
  • 菜单状态变量选择框,以及浮窗保存时略过数量的提示。
  • 自动保存间隔的实际修改、备份和恢复;较短间隔是否造成游戏卡顿。
  • 自定义导入器的实际启动。
  • 英文界面。

相关 Issue / Related Issue

无 / None

🤖 Generated with Claude Code

uyujkk and others added 2 commits November 2, 2026 22:13
Batch: the Mod list can add several Mods to a combination preset, copy
them to a folder or delete them. Delete reuses the single-Mod removal,
including its loader links, and stays permanent like before.

Menu state: saving a state slot leaves out variables that only hold a Mod
menu's open state, page or position, so restoring does not reopen or move
the menu. The rules come from real variable names and stay narrow. The main
window lists them so any can be kept; the overlay reports how many it left
out; a setting turns this off. Saved slots are unchanged.

Loader auto-save: the Shortcuts page can set settings_auto_save_interval in
d3dx.ini [System], with a backup and a way back to the original value.

XXMI: any repository can choose its importer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uyujkk
uyujkk merged commit ac9bbfb into main Nov 3, 2026
2 checks passed
@uyujkk
uyujkk deleted the feature/direct-items branch November 3, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant