Skip to content

feat: 为联机功能添加帮助文档链接与地区检查#66

Merged
AnemoFlower merged 8 commits intoCeciliaStudio:mainfrom
AnemoFlower:feature/multiplayer-hints
Feb 7, 2026
Merged

feat: 为联机功能添加帮助文档链接与地区检查#66
AnemoFlower merged 8 commits intoCeciliaStudio:mainfrom
AnemoFlower:feature/multiplayer-hints

Conversation

@AnemoFlower
Copy link
Member

@AnemoFlower AnemoFlower commented Feb 5, 2026

本 PR 为联机页面增加了一个“帮助文档”按钮,点击后会打开 https://ceciliastudio.top/helps/PCL.Mac#联机 ,并添加了地区检查,禁止在非中国大陆地区使用。
closes #63
fixes #65

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本 PR 旨在完善联机页面的可用性与合规性:新增“帮助文档”入口,并在进入联机流程前加入地区(中国大陆)限制检查;同时顺带调整了一些通用 UI 组件以改善显示效果(例如列表图标清晰度、输入框组件)。

Changes:

  • 联机页新增“帮助文档”按钮,点击打开指定教程链接;并在联机免责声明检查中加入地区限制检查。
  • ListItem 的图标来源从 NSImage 调整为资源名 String,以配合 SwiftUI Image(...) 渲染(改善图标显示效果/清晰度)。
  • MessageBox 的输入框由 TextField 切换为 MyTextField,并微调弹窗阴影与内容 padding。

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
PCL.Mac/Views/Multiplayer/MultiplayerPage.swift 联机入口 UI 更新:加载文案初始化、帮助文档入口、地区检查接入免责声明流程
PCL.Mac.Core/Utils/LocaleUtils.swift 新增基于 Cloudflare trace 的地区判断逻辑,并引入缓存与严格模式参数
PCL.Mac/Models/ListItem.swift ListItem.image 类型从 NSImage? 改为 String?(资源名)
PCL.Mac/Components/MyListItem.swift 列表项图标渲染从 Image(nsImage:) 改为 Image(name)
PCL.Mac/Views/Download/MinecraftDownloadPage.swift 列表项构造适配新的 ListItem.image 类型
PCL.Mac/Views/Launch/InstanceList/InstanceListPage.swift 同上:实例列表项图标参数适配
PCL.Mac/Views/Launch/InstanceSettings/InstanceConfigPage.swift 同上:实例配置页头部列表项适配
PCL.Mac/ViewModels/AccountViewModel.swift 同上:账号类型选择列表项适配
PCL.Mac/ViewModels/MultiplayerViewModel.swift 默认玩家名改为 Anonymous;EasyTier 退出码判断逻辑调整
PCL.Mac/Views/MessageBoxView.swift 弹窗样式调整(阴影、padding)与输入控件切换为 MyTextField
PCL.Mac/ContentView.swift 移除 MessageBoxView 外层阴影(迁移到 MessageBoxView 内部实现)
PCL.Mac/Components/MyTextField.swift 新增 immediately 行为、细节交互与绘制调整(边框/占位符点击穿透等)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AnemoFlower AnemoFlower merged commit 14456ba into CeciliaStudio:main Feb 7, 2026
1 check passed
@AnemoFlower AnemoFlower deleted the feature/multiplayer-hints branch February 7, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] MyListItem(_:) 显示的 Image 不清晰 [Feature] 限制联机功能使用地区

1 participant