Skip to content

优化模组管理页面模组信息的展示方式#4621

Merged
Glavo merged 25 commits into
HMCL-dev:mainfrom
Glavo:mod-file-name
Oct 9, 2025
Merged

优化模组管理页面模组信息的展示方式#4621
Glavo merged 25 commits into
HMCL-dev:mainfrom
Glavo:mod-file-name

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Oct 6, 2025

image

Copilot AI review requested due to automatic review settings October 6, 2025 12:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request optimizes the display of mod information in the mod management page by refactoring how mod data is stored and presented to users.

  • Simplified the ModInfoObject class by removing redundant fields and computed properties
  • Updated mod display logic to prioritize translated names when available
  • Enhanced file name display to show actual file names instead of mod names

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@burningtnt

This comment was marked as outdated.

@Glavo

This comment was marked as outdated.

@zkitefly
Copy link
Copy Markdown
Member

zkitefly commented Oct 7, 2025

如果要将中文翻译默认显示在 title 上,建议合并该 pr 就就优化翻译匹配,否则会出现翻译错误误导的问题

@burningtnt

This comment was marked as outdated.

@Glavo

This comment was marked as outdated.

@burningtnt

This comment was marked as outdated.

@burningtnt

This comment was marked as outdated.

@Glavo

This comment was marked as outdated.

@burningtnt

This comment was marked as outdated.

@Glavo

This comment was marked as outdated.

@burningtnt

This comment was marked as outdated.

@Glavo

This comment was marked as outdated.

@burningtnt

This comment was marked as outdated.

@Glavo

This comment was marked as outdated.

@Mine-diamond

This comment was marked as resolved.

@IF-desu
Copy link
Copy Markdown

IF-desu commented Oct 7, 2025

不妨增加一个选项:mod列表高级菜单
关闭(default)时使用新方案,打开使用原有信息较为详细的方案
另外某些fabric-forge同时兼容,或neoforge-forge单方兼容的mod识别出问题还是挺多的

@rootwhois

This comment was marked as outdated.

@ZZZank
Copy link
Copy Markdown
Contributor

ZZZank commented Oct 7, 2025

我更偏向这个PR提供的UI:

  • 图标、名称与版本三个分辨mod的常用依据都有突出显示;
  • authors似乎无人在意,modid可读性不及名称;
  • 加载器标识我个人从来没理过,就不做评价了;
  • 能显示文件名对我来说是很好的锦上添花

@Glavo
Copy link
Copy Markdown
Member Author

Glavo commented Oct 7, 2025

我又调整了一下显示方式。

  1. 现在对于和实例的模组加载器不匹配的模组,HMCL 会添加红色的模组加载器标签以突出提示。
  2. 现在 subtitle 里会显示 mod id。
image

@ZZZank

This comment was marked as resolved.

@HMCL-dev HMCL-dev deleted a comment from Copilot AI Oct 7, 2025
@HMCL-dev HMCL-dev deleted a comment from Copilot AI Oct 7, 2025
@Mine-diamond
Copy link
Copy Markdown
Contributor

Mine-diamond commented Oct 9, 2025

也许可以增加一个显示项:如果模组支持的minecraft版本与当前实例不匹配则显示警告或者将版本tag标红

@Glavo Glavo merged commit 11c45e0 into HMCL-dev:main Oct 9, 2025
2 checks passed
@Glavo Glavo deleted the mod-file-name branch October 9, 2025 07:21
@zkitefly
Copy link
Copy Markdown
Member

zkitefly commented Oct 9, 2025

突然想到,如果模组中含有 信雅互联 时,建议禁用不兼容警告

@Glavo
Copy link
Copy Markdown
Member Author

Glavo commented Oct 9, 2025

突然想到,如果模组中含有 信雅互联 时,建议禁用不兼容警告

这个在考虑中,但 HMCL 现在无法识别信雅互联等使用 jarinjar 的模组,所以需要我们修复后才能支持。

root.getStyleClass().add("no-padding");
listView = new JFXListView<>();

this.holder = FXUtils.onWeakChange(skinnable.loadingProperty(), loading -> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为什么要滚动到顶部嘞?这会导致 #4821

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.

9 participants