欢迎来到 HiMCBBS 论坛~

想在这里休息会么?和我们共度美好时光吧~

加入QQ群:879016948 获得最新公告,并与群友们一起聊天吹水!

注册 登录
  • 嗨,游客,欢迎来到CRAFTBBS论坛!QQ 交流群: 879016948

自动窗口大小/Auto Window Size

原创 开源 Forge 自动窗口大小/Auto Window Size V1.1.0

Minecraft 1.20.1 / Forge 纯客户端模组。启动自动调整窗口大小并居中,最小尺寸锁定,固定窗口大小,60个分辨率预设(5种比例)+自定义输入,无边框模式,窗口置顶(3种模式),循环

✨ Added / 新增

  • Borderless mode — removes window title bar and borders; supports windowed, maximized, and fullscreen (pseudo-fullscreen) states. Auto-borderless on launch option available.

  • 无边框模式 — 去除窗口标题栏和边框,支持窗口化、最大化和全屏(伪全屏)三种状态,可设置启动自动无边框。

  • Always-on-top (3 modes) — off / normal (GLFW floating) / force (re-claims focus every frame, can override other always-on-top windows like classroom monitoring software).

  • 窗口置顶(3种模式) — 关闭 / 普通(GLFW悬浮)/ 强制(每帧重新抢焦点,可覆盖教室监控软件等其他置顶窗口)。

  • Cycle window state — one button / keybind to cycle through windowed → maximized → fullscreen.

  • 循环切换窗口状态 — 一个按钮/快捷键即可在 窗口化 → 最大化 → 全屏 之间循环切换。

  • 5 keybinds (all unbound by default): Open Settings, Center, Toggle Borderless, Cycle State, Toggle Always-on-Top. All give chat feedback.

  • 5个快捷键(默认未绑定):打开设置、居中、切换无边框、循环状态、切换置顶,全部带聊天反馈。

  • About page — in-game info screen with 6 sections (Purpose, About, Usage, Downloads, Feedback, Author) in 20 languages.

  • 关于页面 — 游戏内信息页面,包含6个模块(制作目的、MOD介绍、使用方法、下载渠道、反馈渠道、作者信息),支持20种语言。

  • Debug mode — outputs detailed diagnostic info (preset availability, borderless transitions, window state changes) to the game log.

  • 调试模式 — 将详细诊断信息(预设可用性检查、无边框状态切换、窗口状态变化等)输出到游戏日志。

  • 15 commands total: /aws help (paginated), gui, status, toggle, lock, unlock, fixed, center, fullscreen, maximize, remember, top, debug, borderless (with auto subcommand), resolution.

  • 共15个指令:/aws help(分页)、gui、status、toggle、lock、unlock、fixed、center、fullscreen、maximize、remember、top、debug、borderless(含auto子指令)、resolution。


🔄 Changed / 变更

  • Settings entry moved to Accessibility Settings (compatible with Embeddium and other mods that replace the video settings screen).

  • 设置入口迁移到辅助功能设置(兼容 Embeddium 等完全替换视频设置界面的模组)。

  • Settings screen rebuilt with native AbstractSelectionList scrolling — title and Done button have independent opaque backgrounds, scrollbar position matches vanilla exactly.

  • 设置界面重建,采用原生 AbstractSelectionList 滚动列表 — 标题和完成按钮有独立不透明背景,滚动条位置与原版完全一致。

  • Button layout optimized: fixed window size as large button; remember position + center side-by-side; debug + about side-by-side at bottom.

  • 按钮布局优化:固定窗口大小改为大按钮;记住窗口状态+居中并排;调试+关于在底部并排。

  • Preset auto-disable expanded: presets are now disabled if larger than screen, smaller than config minimum, smaller than hardcoded minimum (856×482), or matching current size.

  • 预设自动禁用增强:超过屏幕、低于配置最小值、低于硬编码最小值(856×482)或匹配当前大小的预设都会自动禁用。

  • Custom resolution input with live validation — Apply button disabled when input is invalid, hover tooltip shows valid range.

  • 自定义分辨率输入实时校验 — 输入非法时应用按钮禁用,鼠标悬停显示合法范围。

  • Config files unified in config/AutoWindowSize/ (config.toml + window.json); config screen supports 20 languages.

  • 配置文件统一到 config/AutoWindowSize/ 目录(config.toml + window.json);配置界面支持20种语言。

  • 20 languages supported.

  • 支持20种语言。


🐛 Fixed / 修复

  • Fixed settings screen button layout overlapping title and Done button.

  • 修复设置界面按钮布局与标题和完成按钮重叠的问题。

  • Fixed scrollbar position overlapping buttons (now matches vanilla exactly).

  • 修复滚动条位置与按钮重叠的问题(现在与原版完全一致)。

  • Fixed button highlight/selection border overflowing beyond button bounds.

  • 修复按钮选中/高亮边框超出按钮边界的问题。

  • Fixed aspect ratio button incorrectly showing "Custom" after toggling maximize / fullscreen.

  • 修复比例按钮在切换最大化/全屏后错误显示"自定义"的问题。

  • Fixed aspect ratio button reverting to previous ratio after clicking a preset.

  • 修复点击预设后比例按钮回弹到上一个比例的问题。

  • Fixed custom resolution input fields not updating in real-time when window is resized by dragging.

  • 修复自定义分辨率输入框在拖动窗口调整大小时不实时更新的问题。

  • Fixed fixed window size not disabling resolution preset buttons.

  • 修复固定窗口大小未禁用分辨率预设按钮的问题。

  • Fixed borderless mode causing a gap at the top when switching from fullscreen to maximized.

  • 修复无边框模式下从全屏切换到最大化时顶部出现空白的问题。

  • Fixed force always-on-top losing focus when clicking the title bar of another window.

  • 修复强制置顶模式下点击其他窗口标题栏后丢失焦点的问题。

  • Fixed scroll position resetting to top after clicking certain buttons.

  • 修复点击某些按钮后滚动位置重置到顶部的问题。

  • Fixed window.json not being generated on first launch.

  • 修复window.json首次启动时不生成的问题。

  • Fixed duplicate chat messages when entering fullscreen.

  • 修复进入全屏时重复发送聊天消息的问题。

  • Fixed Debug config option missing translation keys in config screen.

  • 修复配置界面中Debug配置项缺少翻译的问题。

  • Fixed mouse wheel not scrolling when hovering over input fields or buttons.

  • 修复鼠标悬停在输入框或按钮上时无法滚轮滚动的问题。

  • Various minor UI alignment and spacing fixes.

  • 修复各种细微的UI对齐和间距问题。


Full changelog / 完整更新日志: CHANGELOG.md · CHANGELOG_ZH-CN.md

v1.0.8 — 常用分辨率预设 + 自定义分辨率 + 设置界面重构

新增

  • 分辨率预设:按 16:9 / 16:10 / 4:3 / 5:4 / 21:9 分组,点一下立即切换并居中。
  • 自定义分辨率:手动输入宽高,点应用立即切换。
  • 已匹配当前分辨率的预设自动禁用;超过屏幕的预设也自动禁用。
  • 固定窗口大小开启后,比例切换、预设、自定义输入框全部自动禁用。
  • 语言扩展到 15 种(新增德语、西班牙语、葡萄牙语、意大利语、土耳其语、荷兰语、波兰语、越南语)。
  • 预设扩充:16:9 加 1024×576 / 1152×648 / 3840×2160;4:3 加 640×480 / 1152×864 / 1920×1440 等。

调整

  • 设置界面重构为原版滚动列表(AbstractSelectionList),和原版视频设置观感一致。
  • 拖动窗口后不匹配当前比例时自动切到"自定义",输入框同步当前值;最大化/全屏不触发。
  • 拖动后分辨率刷新延迟缩短到 0.2 秒。

修复

  • 修复切换到无翻译语言时"窗口设置"按钮偏移的问题。
  • 修复固定窗口开启后预设按钮仍可点击的问题。
  • 修复切到自定义时输入框不更新的问题。

⚠ 升级时请手动删除旧配置文件 .minecraft/config/autowindowsize-client.toml,重启后会自动生成新配置。


v1.0.8 — Resolution Presets & Custom Resolution

New

  • Resolution presets grouped by aspect ratio (16:9 / 16:10 / 4:3 / 5:4 / 21:9); click to apply and center instantly.
  • Custom resolution: type any width/height and apply instantly.
  • Presets matching your current resolution are auto-disabled; presets larger than your screen are also disabled.
  • When fixed window size is on, aspect cycling, presets and custom inputs are all auto-disabled.
  • 15 languages now supported (added German, Spanish, Portuguese, Italian, Turkish, Dutch, Polish, Vietnamese).
  • More presets added across all aspect ratios.

Changed

  • Settings screen rebuilt on the vanilla scrolling list (AbstractSelectionList), matching vanilla video settings.
  • Dragging the window to a non-preset size switches to Custom automatically; maximized/fullscreen states don't trigger it.
  • Drag refresh latency reduced to 0.2s.

Fixed

  • Fixed "Window Settings" button position offset when switching to an untranslated language.
  • Fixed preset buttons still clickable when fixed window size is enabled.
  • Fixed custom input not syncing current resolution.

⚠ On upgrade, please delete your old config .minecraft/config/autowindowsize-client.toml and restart to generate a fresh one.

后退
顶部