Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

允许隐藏社区版提示 #39

Merged
merged 2 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Plain Craft Launcher 2/Modules/ModSecret.vb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ Friend Module ModSecret
Environment.[Exit](Result.Cancel)
End If
'开源版本提示
MyMsgBox($"你正在使用来自 PCL-Community 的 PCL2 社区版本,遇到问题请不要向官方仓库反馈!
If Convert.ToBoolean(ReadReg("UiLauncherCEHint", "True")) Then
MyMsgBox($"你正在使用来自 PCL-Community 的 PCL2 社区版本,遇到问题请不要向官方仓库反馈!
PCL-Community 及其成员与龙腾猫跃无从属关系,且均不会为您的使用做担保。

该版本中暂时无法使用以下特性:
Expand All @@ -59,6 +60,7 @@ PCL-Community 及其成员与龙腾猫跃无从属关系,且均不会为您的

该版本中的以下特性与原版有所区别:
- 百宝箱:主线分支没有提供相关内容", "社区版本说明", "我知道了")
End If
End Sub

''' <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
PanScroll = PanBack '不知道为啥不能在 XAML 设置
PanLog.Visibility = If(ModeDebug, Visibility.Visible, Visibility.Collapsed)
'社区版提示
PanHint.Visibility = If(ThemeCheckGold(), Visibility.Collapsed, Visibility.Visible)
LabHint1.Text = "社区版包含尚未在官方主线版本发布的测试功能,仅用于尝鲜。请不要向官方仓库反馈社区版的问题哦!"
LabHint2.Text = $"若要永久隐藏此提示,请自行 Clone 代码并删除此提示相关内容。"
PanHint.Visibility = If(Convert.ToBoolean(ReadReg("UiLauncherCEHint", "True")), Visibility.Visible, Visibility.Collapsed)
LabHint1.Text = "社区版包含未在官方主线版本发布的功能,仅用于尝鲜。请不要向官方仓库反馈社区版的问题哦!"
LabHint2.Text = $"若要永久隐藏此提示,请自行查阅代码中的相关部分。"
End Sub

'暂时关闭快照版提示
Expand Down
1 change: 1 addition & 0 deletions Plain Craft Launcher 2/Pages/PageSetup/ModSetup.vb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
{"UiLauncherThemeHide2", New SetupEntry("0|1|2|3|4", Source:=SetupSource.Registry, Encoded:=True)},
{"UiLauncherLogo", New SetupEntry(True)},
{"UiLauncherEmail", New SetupEntry(False)},
{"UiLauncherCEHint", New SetupEntry(True)},
{"UiBackgroundColorful", New SetupEntry(True)},
{"UiBackgroundOpacity", New SetupEntry(1000)},
{"UiBackgroundBlur", New SetupEntry(0)},
Expand Down