feat: 服务器专用启动器(一键进服、新界面、精简) #3

Merged
layue13 merged 19 commits from feat/server-launcher-redesign into main 2026-11-08 07:31:54 +00:00
Owner

Requested by Ethyn

摘要

把 HMCL 改造成服务器专用启动器:

  • 一键进服:主按钮带服务器地址启动(1.20+ 用 quickPlay,旧版本用 --server),地址来自整合包清单的 serverAddress / routes;支持多线路和 ws(s):// 地址,主页可切换线路并显示服务器在线人数与延迟
  • 界面:奶油底色 + 陶土主色,Noto Sans SC / Noto Serif SC(OFL)内置,新主页与线条图,侧栏(整合包、设置,账号在左下角并带浮层),系统风格窗口按钮,统一圆角,柔和动效
  • 账号:首次启动轻量弹窗,去掉强制外置账号和“非官方版本”提示
  • 精简:删除 mod / 资源包 / 存档 / 数据包 / 安装器页、多实例列表、主题包与壁纸系统,单页设置(隐藏“继承全局”),约 -1.48 万行

验证

  • ./gradlew :HMCL:test :HMCLCore:test 通过
  • macOS 真机启动并截图确认主页、侧栏、标题栏
  • 未在真机验证:Windows / Linux 样式、账号浮层、首次启动弹窗、线路切换、下载弹窗与进度条、WebSocket 线路(需客户端模组补丁,见线程)

🤖 Generated with Claude Code

<!-- claude-projects-attribution --> _Requested by **Ethyn**_ ## 摘要 把 HMCL 改造成服务器专用启动器: - 一键进服:主按钮带服务器地址启动(1.20+ 用 quickPlay,旧版本用 `--server`),地址来自整合包清单的 `serverAddress` / `routes`;支持多线路和 `ws(s)://` 地址,主页可切换线路并显示服务器在线人数与延迟 - 界面:奶油底色 + 陶土主色,Noto Sans SC / Noto Serif SC(OFL)内置,新主页与线条图,侧栏(整合包、设置,账号在左下角并带浮层),系统风格窗口按钮,统一圆角,柔和动效 - 账号:首次启动轻量弹窗,去掉强制外置账号和“非官方版本”提示 - 精简:删除 mod / 资源包 / 存档 / 数据包 / 安装器页、多实例列表、主题包与壁纸系统,单页设置(隐藏“继承全局”),约 -1.48 万行 ## 验证 - `./gradlew :HMCL:test :HMCLCore:test` 通过 - macOS 真机启动并截图确认主页、侧栏、标题栏 - 未在真机验证:Windows / Linux 样式、账号浮层、首次启动弹窗、线路切换、下载弹窗与进度条、WebSocket 线路(需客户端模组补丁,见线程) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
layue13 added 18 commits 2026-11-08 07:01:00 +00:00
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
refactor: single settings page; hide inherit-from-global toggles, drop global game settings tab
Check Codes / build (push) Failing after 3m51s
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (push) Canceled after 1h8m30s
21fcac1b0c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
refactor: remove multi-instance list pages and unused wizard pages
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Check Codes / build (push) Failing after 3m52s
Check Codes / build (pull_request) Failing after 2m45s
Java CI / build (push) Canceled after 1h0m4s
Java CI / build (pull_request) Canceled after 56m22s
3a6e80da0e
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
layue13 added 1 commit 2026-11-08 07:03:49 +00:00
style: fix checkstyle indentation, unused imports and a Classical Chinese spelling check
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Check Codes / build (push) Successful in 8m11s
Check Codes / build (pull_request) Successful in 9m17s
Java CI / build (push) Canceled after 53m53s
Java CI / build (pull_request) Canceled after 54m7s
a7123a389e
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
layue13 merged commit 61caf8a925 into main 2026-11-08 07:31:54 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/HMCL#3