Repository navigation
feat: 移植 PCL 界面风格与动画,新增网易 NEMC 下载页 - #1
Merged
Merged
Conversation
界面 - 新增 PclStyles.xaml,从 PCL2 的 Application.xaml 迁移 63 个资源键 (含 AaColor / AaTranslateY 等动画资源),根节点改为 Grid.Resources - 移除依赖 PCL 私有类型的 MyScrollViewer 与 MyIconButton 模板,改用原生控件 - 新增 PclAnim 动画封装层:可反射调用 PCL ModAnimation,缺失时降级为纯 WPF 动画 - 导航改为 启动 / 下载 / 联机大厅 / 设置 / 更多,删除原「功能」页 - 导航切换前先关闭下拉弹层,避免 OnWindowResize 时对已卸载控件操作 - 候选行加入 90ms 颜色过渡,启动页增加入场动画 下载 - 新增 NemcDownload.cs:调用 x19mclobt.nie.netease.com 拉取版本清单, 动态 Token 鉴权,32 段 Range 并发下载,ZipArchive 解压并处理 \?\ 长路径 - 新增 PclMainWindow.Download.cs:下载页 UI 与 PCL NEMC 功能对齐 稳定性 - Boot.cs:对两个已知第三方 NRE 签名做 60 秒去重,避免刷屏 - AppHost.cs:运行期自愈 config.json 与 user 目录;账号 JSON 读取前校验 - 启动页状态行实时刷新,日志同时落盘 run.log - 工程补 System.IO.Compression.FileSystem 引用,PclStyles.xaml 按内容文件拷贝 其他 - 新增 build.bat:编译后自动部署到 ES_Tool_data - 更新使用说明
Owner
|
67 |
ESCc13
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
把 PCL2 的界面风格与动画移植进 ES-Tool,并新增与 PCL NEMC 功能对齐的「下载」页(网易 Minecraft 版本下载)。
动机
目前 UI 只用了纯色表
PclColors.xaml,视觉上与 PCL2 差距较大;同时缺少版本下载入口,用户需要自己去找版本。这次把 PCL2 的样式资源与动画引擎真正接上,并补上完整的下载链路。改动
界面
src/PclStyles.xaml:从 PCL2 的Application.xaml迁移 63 个资源键(含AaColor/AaTranslateY等动画资源),根节点改为Grid.Resources以匹配现有XamlReader.Parse的加载方式MyScrollViewer与MyIconButton模板,改用原生ScrollViewer(原实现在宿主中会因FrmMain为空而每秒抛 NRE)src/UI/PclAnim.cs:动画封装层,优先反射调用 PCL 的ModAnimation,缺失时降级为纯 WPF StoryboardOnWindowResize操作已卸载的控件下载
src/UI/NemcDownload.cs:调用x19mclobt.nie.netease.com拉取版本清单,动态 Token 鉴权,32 段 Range 并发下载,ZipArchive解压并处理 Windows 长路径前缀src/UI/PclMainWindow.Download.cs:下载页 UI,功能与 PCL NEMC 对齐稳定性
Boot.cs:对两个已知第三方 NRE 签名做 60 秒去重,避免日志刷屏AppHost.cs:运行期自愈config.json与 user 目录;账号 JSON 读取前做校验,避免非法 JSON 直接崩run.log,便于反馈问题时取证System.IO.Compression.FileSystem引用,PclStyles.xaml按内容文件拷贝到pcl/其他
build.bat:编译后自动部署到ES_Tool_data测试情况
dotnet build -t:Rebuild:0 警告 0 错误crash.log,run.log确认 config 加载成功需要注意
pcl/、modpc/下的第三方 DLL 仍按.gitignore排除,clone 后需自行补齐才能编译(CI 已做条件编译,缺依赖时跳过而不是报红)如果方向没问题,希望可以合并;有需要调整的地方我来改。