Skip to content

Commit

Permalink
Merge pull request #39 from PCL-Community/hint-hidden
Browse files Browse the repository at this point in the history
允许隐藏社区版提示
  • Loading branch information
Pigeon0v0 authored Dec 31, 2024
2 parents e84be6c + ed821de commit 2331017
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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 @@ -134,6 +134,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

0 comments on commit 2331017

Please sign in to comment.