ModernUI icon indicating copy to clipboard operation
ModernUI copied to clipboard

[Bug] 自动UI尺寸但是看起来小了好几号

Open al-wei opened this issue 2 months ago • 2 comments

Describe the bug A clear and concise description of what the bug is. 自动 UI 尺寸,我看我这边原版是最大6x且“自动”,但是模组“自动”看起来比minecraft小了好几号。因为模组配置的自动是4x但是模组最大为8x,那就小了很多。但是我设置8x却显示当前6x的字样,那么7x8x有意义吗?并且为什么模组“自动”不选6x而是4x呢。 我想可不可以跟原版“自动”一样,更好的适配。 这个问题我在1.16.5时代就体验过了。 To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. 正常游戏&现代UI Image

Image Image Image Image Image

Environment

  • Mod Version: ModernUI-Forge-1.20.1-3.12.0.1-universal
  • Forge Version: 47.4.6
  • Operating System: w11 64
  • Graphics Card: 笔记本RTX5060 2560x1600
  • Other Mods: 只有现代UI

al-wei avatar Nov 10 '25 15:11 al-wei

等会,去mod设置里设置几下,有错误了吗? https://mclo.gs/vvt6pMT

al-wei avatar Nov 10 '25 15:11 al-wei

这是预期的,ModernUI 的自动尺寸不会选取最大可能的尺寸,刻意与原版的行为不一致。同时,ModernUI 允许你预先设置自动、2x到8x的任意值,与当前窗口分辨率无关。这样你不会因为当前窗口分辨率过小而丢失之前设置的较大值。实际生效的尺寸会被钳制在当前最大可能的尺寸内,这个值和原版的计算方式一样。如果你希望和原版的自动效果一样,只需设成8x即可。

由于后台编译器的线程池是Builtin的而不是Forge Transformer的,Forge会打印这些错误信息,但对程序运行没有任何影响。因为我们的编译器不需要Transformer。

BloCamLimb avatar Nov 11 '25 06:11 BloCamLimb