Skip to content

Commit b9e8b95

Browse files
authored
Merge branch 'main' into uvmc-pcl-main
2 parents 83f9231 + 28ef67e commit b9e8b95

144 files changed

Lines changed: 6339 additions & 4115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
required: false
1313
- label: "**我已尝试使用 HMCL 启动,HMCL 没有出现问题。** 如果 HMCL 也无法启动就不是 PCL 导致的问题,请 **不要** 提交反馈。[下载 HMCL](https://hmcl.huangyuhui.net/download)"
1414
required: true
15-
- label: "我已在 [Issues 页面](https://github.com/Hex-Dragon/PCL2/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Hex-Dragon/PCL2/discussions/1930) 中搜索,确认了这一 Bug 未被提交过。"
15+
- label: "我已在 [Issues 页面](https://github.com/Meloong-Git/PCL/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Meloong-Git/PCL/discussions/1930) 中搜索,确认了这一 Bug 未被提交过。"
1616
required: true
1717
- type: textarea
1818
id: "yml-2"

.github/ISSUE_TEMPLATE/bug2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
required: false
1313
- label: "我知晓大多数此类问题都是网络环境不佳导致的,但我确实认为我的问题可能是 PCL 导致的,和网络环境无关。"
1414
required: true
15-
- label: "我已在 [Issues 页面](https://github.com/Hex-Dragon/PCL2/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Hex-Dragon/PCL2/discussions/1930) 中搜索,确认了这一 Bug 未被提交过。"
15+
- label: "我已在 [Issues 页面](https://github.com/Meloong-Git/PCL/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Meloong-Git/PCL/discussions/1930) 中搜索,确认了这一 Bug 未被提交过。"
1616
required: true
1717
- type: textarea
1818
id: "yml-2"

.github/ISSUE_TEMPLATE/bug9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body:
88
label: "检查项"
99
description: "请逐个检查下列项目,并勾选确认。"
1010
options:
11-
- label: "我已在 [Issues 页面](https://github.com/Hex-Dragon/PCL2/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Hex-Dragon/PCL2/discussions/1930) 中搜索,确认了这一 Bug 未被提交过。"
11+
- label: "我已在 [Issues 页面](https://github.com/Meloong-Git/PCL/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Meloong-Git/PCL/discussions/1930) 中搜索,确认了这一 Bug 未被提交过。"
1212
required: true
1313
- type: textarea
1414
id: "yml-2"

.github/ISSUE_TEMPLATE/ch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ body:
88
label: "检查项"
99
description: "请逐个检查下列项目,并勾选确认。"
1010
options:
11-
- label: "我已在 [Issues 页面](https://github.com/Hex-Dragon/PCL2/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Hex-Dragon/PCL2/discussions/1930) 中搜索,确认了这一建议未被提交过。"
11+
- label: "我已在 [Issues 页面](https://github.com/Meloong-Git/PCL/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Meloong-Git/PCL/discussions/1930) 中搜索,确认了这一建议未被提交过。"
1212
required: true
13-
- label: "我已查看 [功能投票页面](https://github.com/Hex-Dragon/PCL2/discussions/categories/%E5%8A%9F%E8%83%BD%E6%8A%95%E7%A5%A8/),确认了这一建议未在投票列表中。"
13+
- label: "我已查看 [功能投票页面](https://github.com/Meloong-Git/PCL/discussions/categories/%E5%8A%9F%E8%83%BD%E6%8A%95%E7%A5%A8/),确认了这一建议未在投票列表中。"
1414
required: true
1515
- type: textarea
1616
id: "yml-2"

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: 主页预设反馈
4-
url: https://github.com/Hex-Dragon/PCL2/discussions/categories/自定义主页
4+
url: https://github.com/Meloong-Git/PCL/discussions/categories/自定义主页
55
about: 提交与预设的主页(设置 → 个性化 → 主页预设)中的具体内容相关的反馈
66
- name: 帮助文档反馈
77
url: https://github.com/LTCatt/PCL2Help/issues
88
about: 提交与 PCL 帮助文档(更多 → 帮助)中的具体内容相关的反馈
99
- name: 提问
10-
url: https://github.com/Hex-Dragon/PCL2/discussions/new?category=%E6%8F%90%E9%97%AE
10+
url: https://github.com/Meloong-Git/PCL/discussions/new?category=%E6%8F%90%E9%97%AE
1111
about: 我想问一些 PCL 相关的问题……
1212
- name: 讨论
13-
url: https://github.com/Hex-Dragon/PCL2/discussions/new?category=%E8%AE%A8%E8%AE%BA
13+
url: https://github.com/Meloong-Git/PCL/discussions/new?category=%E8%AE%A8%E8%AE%BA
1414
about: 我想讨论一些 PCL 相关的事情……

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ body:
88
label: "检查项"
99
description: "请逐个检查下列项目,并勾选确认。"
1010
options:
11-
- label: "我已在 [Issues 页面](https://github.com/Hex-Dragon/PCL2/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Hex-Dragon/PCL2/discussions/1930) 中搜索,确认了这一提案未被提交过。"
11+
- label: "我已在 [Issues 页面](https://github.com/Meloong-Git/PCL/issues?q=is%3Aissue+) 和 [常见&难检反馈及问题列表](https://github.com/Meloong-Git/PCL/discussions/1930) 中搜索,确认了这一提案未被提交过。"
1212
required: true
13-
- label: "我已查看 [功能投票页面](https://github.com/Hex-Dragon/PCL2/discussions/categories/%E5%8A%9F%E8%83%BD%E6%8A%95%E7%A5%A8/),确认了这一提案未在投票列表中。"
13+
- label: "我已查看 [功能投票页面](https://github.com/Meloong-Git/PCL/discussions/categories/%E5%8A%9F%E8%83%BD%E6%8A%95%E7%A5%A8/),确认了这一提案未在投票列表中。"
1414
required: true
1515
- label: "我知晓还没做的新功能真的太多了,忙不过来,所以新功能提案几乎不会被处理,也不建议再提交新功能提案 qwq……"
1616
required: true

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838

3939
- name: Update Help
4040
run: |
41-
$workpath = [System.Environment]::CurrentDirectory
4241
Set-Location ..
4342
git clone https://github.com/LTCatt/PCL2Help.git -b master --single-branch --depth 1
4443
Set-Location PCL2Help
@@ -52,8 +51,8 @@ jobs:
5251
5352
- name: Replace
5453
run: |
55-
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public Const OAuthClientId As String = ""', 'Public Const OAuthClientId As String = "${{ secrets.CLIENT_ID }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb"
56-
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public Const CurseForgeAPIKey As String = ""', 'Public Const CurseForgeAPIKey As String = "${{ secrets.CURSEFORGE_API_KEY }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb"
54+
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public OAuthClientId As String = If(Environment.GetEnvironmentVariable("PCL_MS_CLIENT_ID"), "")', 'Public OAuthClientId As String = If(Environment.GetEnvironmentVariable("PCL_MS_CLIENT_ID"), "${{ secrets.CLIENT_ID }}")' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb"
55+
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public CurseForgeAPIKey As String = If(Environment.GetEnvironmentVariable("PCL_CURSEFORGE_API_KEY"), "")', 'Public CurseForgeAPIKey As String = If(Environment.GetEnvironmentVariable("PCL_CURSEFORGE_API_KEY"), "${{ secrets.CURSEFORGE_API_KEY }}")' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb"
5756
(gc "Plain Craft Launcher 2\Modules\Base\ModBase.vb") -replace 'Public Const CommitHash As String = ""', 'Public Const CommitHash As String = "${{ github.sha }}"' | Out-File "Plain Craft Launcher 2\Modules\Base\ModBase.vb"
5857
5958
- name: Build

LICENCE

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,40 @@
1-
本文件仅作为指引您合理使用本存储库内容的指南,不是法律文件或协议。
1+
一、声明
22

3-
一、承诺与声明。
3+
本文件仅作为指南,不是法律文件或协议。但开发者在此承诺,在您遵守本指南且善意、合理使用的情况下,不会追究您的责任。
4+
法律上,开发者仍保留所有权利(All Rights Reserved),若情况恶劣,仍可能将诉讼作为最终手段。
45

5-
  开发者承诺,在您遵守本指南且善意使用的情况下,不会追究您的责任,但最终裁量权仍由开发者保留。
6-
  法律上,开发者仍保留所有权利(All Rights Reserved),且可能随时修改本指南,本指南并不是永久性保证。
76

8-
二、少量使用情形。
97

10-
  如果您仅合理使用本存储库中的少量内容,或是参考实现思路,您必须:
11-
  1、给出适当的署名,且提供指向本存储库的链接。GitHub 上的 Fork 可视为满足此条。
12-
  2、不得以任何方式暗示开发者为您或您的使用作担保。
8+
二、轻度使用
139

14-
三、大量使用情形。
10+
若您仅参考了本存储库中极小部分的内容,或您在制作与 PCL 的实质功能不存在任何重叠的软件,则为轻度使用。
11+
其常见情形例如:
12+
· 使用或参考存储库中极小部分的内容,来开发启动器或其他软件。
13+
· 虽参考了较大量的内容,但制作的软件与 PCL 的实质功能不存在任何重叠。
1514

16-
  如果您基于该存储库创作衍生作品,或合理使用了本存储库中的较大量内容,您必须:
17-
  1、给出适当的署名,且提供指向本存储库的链接。GitHub 上的 Fork 可视为满足此条。
18-
  2、不得以任何方式暗示开发者为您或您的使用作担保。
19-
  3、给出适当的说明,以明确表示该衍生作品是非官方内容。
20-
  4、使用本指南文件作为协议,不得附加额外条款。
21-
  5、该衍生作品的名称必须以 “PCL” 或 “Plain Craft Launcher” 开头,并在其后添加后缀。例如 “PCL 整合包优化版”、“PCL PR Collection”。
22-
  6、该衍生作品不得包含 PCL 的赞助解锁功能,或与其相近的功能或内容。例如将配色修改为蓝色色系以外的颜色。
23-
  7、以善意目的进行合理使用,不要用 PCL 来干坏事、恰烂钱、整烂活。开发者可能会将撤销所有授权作为最终手段。
15+
若属于轻度使用,您需要:
16+
1、以适当的形式给出署名。
17+
2、不得将您的内容与 PCL 混淆,或暗示您的内容与 PCL 有关。
18+
 例如:您的内容不得使用 Planting Craft Launcher、PCL 手机版 等会造成混淆或暗示这与 PCL 有关的名称。
19+
20+
21+
22+
三、重度使用
23+
24+
若不符合轻度使用的情形,即为重度使用。
25+
其常见情形例如:
26+
· 基于本存储库进行修改。
27+
· 参考存储库中较大量的内容,以制作或重新实现 PCL 的部分实质功能(例如启动或下载 Java 版 Minecraft,下载或管理 Mod 等)。
28+
29+
若属于重度使用,您需要:
30+
1、明确表示您的内容是第三方基于 PCL 独立进行二次创作的产物。
31+
2、您的内容的名称必须以 Plain Craft Launcher (PCL) 开头,并在其后添加足以表现其由第三方修改的后缀。
32+
 允许的示例:PCL 某服务器魔改版、PCL PR Collection、PCL (XX Bug Fix)、PCL XXX修改版。
33+
 禁止的示例:PCL 某服务器特供版(暗示由官方提供)、PCL 3、PCL 手机版、PCL++、PCL Pro(这像是官方的后续作品)。
34+
3、在关于页面的首位给出龙腾猫跃的署名及对应的赞助链接,公开源代码,且继续使用本文件作为指南(可参考 CC BY-SC 协议)。
35+
4、软件若有 Minecraft 启动功能,则应实现与 McLaunchPrecheck 函数一致的 Minecraft 正版购买弹窗与赞助弹窗。
36+
5、软件在 Windows 系统上运行时,不应有与 PCL 的赞助解锁功能类似的功能或表现。
37+
 例如:界面的主要色相必须为蓝色(即使没有修改功能,改为其他色相也和需要赞助解锁的主题功能类似)。
2438

2539
————————————
2640

@@ -29,5 +43,7 @@
2943
因为没有法律专业人士检查,所以这不敢作为正式的法律协议,如果有专业人士愿意帮忙改一改我也很乐意……
3044
这些规则主要是为了阻止恶意的使用和 “山寨版” 的出现,常规、善意的使用都没啥问题的,放心吧!
3145

32-
如果你只是想参考一下,或者用了一小部分代码,署个名就行啦。
33-
如果你整了个魔改版,或者用了一大堆代码,请仔细参考上面的第三条。
46+
如果你只是参考了一小段代码,署个名就行啦,不用担心。
47+
如果对具体细节有疑问,欢迎在 https://github.com/Meloong-Git/PCL/discussions/new?category=%E6%8F%90%E9%97%AE 发帖询问!
48+
49+
多谢大家啦!

Plain Craft Launcher 2/App.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
3131
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
3232
</dependentAssembly>
33+
<dependentAssembly>
34+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
35+
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="13.0.0.0"/>
36+
</dependentAssembly>
3337
</assemblyBinding>
3438
</runtime>
3539
</configuration>

Plain Craft Launcher 2/Application.xaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
<Application.Resources>
99
<ResourceDictionary>
1010

11-
<!-- 本地化 -->
12-
<ResourceDictionary.MergedDictionaries>
13-
<ResourceDictionary Source="pack://application:,,,/Resources/Language/zh_CN.xaml" />
14-
<ResourceDictionary Source="pack://application:,,,/Resources/Language/zh_CN.xaml" />
15-
</ResourceDictionary.MergedDictionaries>
16-
1711
<!-- Converter -->
1812
<local:AdditionConverter x:Key="AdditionConverter"/>
1913
<local:MultiplicationConverter x:Key="MultiplicationConverter"/>
@@ -66,7 +60,7 @@
6660
<SolidColorBrush x:Key="ColorBrushWhite" Color="#ffffff" />
6761
<SolidColorBrush x:Key="ColorBrushTransparent" Color="Transparent" />
6862
<SolidColorBrush x:Key="ColorBrushSemiTransparent">#01eaf2fe</SolidColorBrush>
69-
<SolidColorBrush x:Key="ColorBrushBackgroundTransparentSidebar" Color="#D2FFFFFF" />
63+
<SolidColorBrush x:Key="ColorBrushBackgroundTransparentSidebar" Color="#F1FFFFFF" />
7064

7165
<!-- Window -->
7266
<Style TargetType="{x:Type Window}" x:Key="MyWindow">
@@ -209,7 +203,7 @@
209203
</Setter.Value>
210204
</Setter>
211205
</Style>
212-
<Style TargetType="local:MyScrollViewer">
206+
<Style TargetType="local:MyScrollViewer" x:Name="StyleMyScrollViewer">
213207
<Setter Property="OverridesDefaultStyle" Value="True" />
214208
<Setter Property="CanContentScroll" Value="False" />
215209
<Setter Property="PanningMode" Value="VerticalOnly" />
@@ -225,6 +219,7 @@
225219
</Setter.Value>
226220
</Setter>
227221
</Style>
222+
<Style TargetType="local:PageComp" BasedOn="{StaticResource {x:Type local:MyScrollViewer}}" />
228223
<Style TargetType="ScrollViewer" x:Key="ScrollViewerFullMargin">
229224
<Setter Property="OverridesDefaultStyle" Value="True" />
230225
<Setter Property="CanContentScroll" Value="False" />

0 commit comments

Comments
 (0)