HMCL-dev / HMCL-dev/HMCL

[Feature] 增强游戏设置 > 游戏窗口类型 > 窗口化中的窗口大小预设

Open
#6,737 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

概述 | Summary

提供多个 16:9 的窗口大小预设。

恢复老版文本框,添加一个按钮展示预设菜单。

原因 | Reason

现在的窗口大小预设只有六种 (系统分辨率 1080p 时只有四种)

https://github.com/HMCL-dev/HMCL/blob/f0527e12b49e8fc528cf83d9bf744874b6f1c0a4/HMCL/src/main/java/org/jackhuang/hmcl/ui/game/GameSettingsPage.java#L2866-L2886

但是它们不能满足所有用户的需求。希望能添加更多预设。

此外,在 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.