[Feature] 增强游戏设置 > 游戏窗口类型 > 窗口化中的窗口大小预设
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 10.1k
- Forks
- 934
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 82
Description
概述 | Summary
提供多个 16:9 的窗口大小预设。
恢复老版文本框,添加一个按钮展示预设菜单。
原因 | Reason
现在的窗口大小预设只有六种 (系统分辨率 1080p 时只有四种)
但是它们不能满足所有用户的需求。希望能添加更多预设。
此外,在 1080p 下仍然会显示 1920x1080 这个预设,似乎不太合理。
老版文本框比较方便:双击第一个文本框,输入宽度值;双击第二个文本框,输入高度值,完成。
新版文本框,双击选中了所有文本,输入宽度值还要单独输入 x,再输入高度值。对一部分用户来说可能不太友好。
新版的文本框对一些用户来说可能不适应,虽然 Issues 中暂时没看到反馈。
详情 | Description
https://github.com/UNIkeEN/SJMCL/issues/1735
https://github.com/UNIkeEN/SJMCL/pull/1751
https://github.com/UNIkeEN/SJMCL/pull/1759
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in HMCL/src/main/java/org/jackhuang/hmcl/ui/game/GameSettingsPage.java around the referenced game-window size controls at lines 2866-2886. Review the linked SJMCL issue and pull requests for the proposed presets and input behavior, then verify the result in the game settings UI: additional 16:9 presets are available, unsuitable presets are not shown at 1080p, and width and height can be entered conveniently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100