Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8723cb26e5 | ||
|
|
1220b11f65 | ||
|
|
ad68b50ea1 | ||
|
|
45f62e9111 | ||
|
|
2bb6010de7 | ||
|
|
c39a771c7b | ||
|
|
f30e2675e3 | ||
|
|
d95e87313e | ||
|
|
6f9d8fa156 | ||
|
|
3b650ad04d | ||
|
|
dc4517ab37 | ||
|
|
10720b3865 | ||
|
|
4629c52024 | ||
|
|
374803d05e | ||
|
|
19d08939ab | ||
|
|
e328281d94 |
No files matched your search
+15
-4
@@ -5,7 +5,7 @@
|
||||
Text="1. 点击启动游戏按钮,然后单击 "多人游戏"。" HorizontalAlignment="Left" />
|
||||
<Image Margin="220,0,0,15" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/01/64c8715fcc1ab.png?comment=启动游戏" />
|
||||
</Grid>
|
||||
<!-- <local:MyHint Margin="0,0,0,15" Text="如果无法点击多人游戏按钮,请不要使用 1.16.x 版本,或者切换到正版登录。" IsWarn="False" /> -->
|
||||
<!-- <local:MyHint Margin="0,0,0,15" Text="如果无法点击多人游戏按钮,请不要使用 1.16.4 或 1.16.5 版本,或者切换到正版登录。" IsWarn="False" /> -->
|
||||
|
||||
<Grid>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
@@ -38,15 +38,26 @@
|
||||
<local:MyCard Title="多人游戏已被禁用,请检查你的 Microsoft 账户设置" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,11">
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="原因:目前离线账户无法使用 1.16.x 的多人游戏功能。" />
|
||||
Text="原因:目前离线账户无法使用 1.16.4 和 1.16.5 的多人游戏功能。" />
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="解决方法:使用正版登录或第三方登录;尝试在启动游戏时断开网络连接;安装下方的 MultiOfflineFix 或 Offline Multiplayer 模组。" />
|
||||
Text="解决方法:请逐一尝试以下方法。" />
|
||||
<TextBlock Margin="2,0,0,4" LineHeight="17"
|
||||
Text="1. 使用正版登录或第三方登录进入游戏。" />
|
||||
<TextBlock Margin="2,0,0,4" LineHeight="17"
|
||||
Text="2. 尝试在启动游戏时断开网络连接。" />
|
||||
<TextBlock Margin="2,0,0,4" LineHeight="17"
|
||||
Text="3. 安装下方的 MultiOfflineFix 或 Offline Multiplayer 模组。" />
|
||||
<local:MyListItem Margin="0,0,0,4"
|
||||
Title="MultiOfflineFix" Info="Fabric / Forge 1.16.5"
|
||||
EventType="打开网页" EventData="https://www.mcmod.cn/download/10643.html" Type="Clickable" />
|
||||
<local:MyListItem Margin="0,0,0,4"
|
||||
Title="Offline Multiplayer" Info="Fabric 1.16.5"
|
||||
EventType="打开网页" EventData="https://github.com/ChickenPige0n/offline-multiplayer-fabric" Type="Clickable" />
|
||||
EventType="打开网页" EventData="https://github.com/ChickenPige0n/offline-multiplayer-fabric/releases" Type="Clickable" />
|
||||
<TextBlock Margin="2,2,0,4" LineHeight="17"
|
||||
Text="4. 使用下方的 Authlib 更新工具。" />
|
||||
<local:MyListItem Margin="0,0,0,4"
|
||||
Title="Authlib 更新工具" Info="502mc 制作的 Authlib 更新工具,支持修复未安装 Mod 加载器的客户端。"
|
||||
EventType="打开网页" EventData="https://www.mcbbs.net/thread-1450892-1-1.html" Type="Clickable" />
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
|
||||
+58
-27
@@ -1,4 +1,7 @@
|
||||
<!-- 由 WTP016 修改的部分的图片备份: https://github.com/WTP016-CN/Image_for_PCL2Help/tree/mods -->
|
||||
<!-- 由 SC 修改的 Mod 及整合包下载安装部分图片备份:https://github.com/WForst-Breeze/Files/tree/main/PCL2/H_img_mod_new -->
|
||||
<!-- 由 SC 修改的模组加载器安装部分图片备份:https://github.com/WForst-Breeze/Files/tree/main/PCL2/H_img_modloader -->
|
||||
<!-- 由 SC 修改的 Mod 文件安装 Mod 部分图片备份:https://github.com/WForst-Breeze/Files/tree/main/PCL2/H_img_mod_import -->
|
||||
|
||||
<local:MyCard Title="Mod 是什么?" Margin="0,0,0,15">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
@@ -14,31 +17,44 @@
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="安装 Mod 加载器 - Forge" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<local:MyCard Title="安装 Mod 加载器(Forge)" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17"
|
||||
Text="1. 打开 PCL 的自动安装页面,选择想要安装的 Minecraft 版本。然后点击下方的 "Forge" 按钮即可打开 Forge 版本菜单。" />
|
||||
<Image HorizontalAlignment="Center" Margin="0,0,0,4" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13c86e6f6.png" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17"
|
||||
Text="2. 选择合适的 Forge 版本之后,点击上方的 "开始安装" 即可安装一个带有 Forge 的 Minecraft 版本。" />
|
||||
<Image HorizontalAlignment="Center" Margin="0,0,0,4" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13cae5a63.png" />
|
||||
<local:MyHint Margin="0,0,0,15" IsWarn="False" Text="一般来说,只需要选择最新版或推荐版的 Forge 即可。仅在出现 Mod 或服务器等兼容问题时,玩家需要遵循相关指示选择特定的版本。" />
|
||||
<Grid>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="1. 在 PCL 中点击 “下载” 按钮,在 “自动下载” 页面中点击 “正式版”,选择想要安装的 Minecraft 版本。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea16a77b83f.png?comment=Minecraft版本选择" />
|
||||
</Grid>
|
||||
|
||||
<local:MyHint Margin="0,20,0,0" Text="一般来说,只需要选择最新版或推荐版的 Forge 即可。仅在出现 Mod 或服务器等兼容问题时,玩家需要遵循相关指示选择特定的版本。" IsWarn="False" />
|
||||
<Grid Margin="0,10,0,0">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="2. 等待加载完成后,点击 “Forge”,选择合适的 Forge 版本,点击 “开始安装” 按钮。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea16c74e4f3.png?comment=加载器选择" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="安装 Mod 加载器 - Fabric" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<local:MyCard Title="安装 Mod 加载器(Fabric)" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17"
|
||||
Text="1. 打开 PCL 的自动安装页面,选择想要安装的 Minecraft 版本。然后点击下方的 "Fabric" 按钮即可打开 Fabric 版本菜单。" />
|
||||
<Image HorizontalAlignment="Center" Margin="0,0,0,4" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13c7c26b9.png" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17"
|
||||
Text="2. 选择适合的 Fabric 版本,之后下方会出现 Fabric API 的安装选项,从中选择合适的版本。" />
|
||||
<Image HorizontalAlignment="Center" Margin="0,0,0,4" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13cd416e1.png" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17"
|
||||
Text="3. 点击上方的 "开始安装" 即可安装一个带有 Fabric 的 Minecraft 版本。" />
|
||||
<Image HorizontalAlignment="Center" Margin="0,0,0,4" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13c9f0748.png" />
|
||||
<local:MyHint Margin="0,0,0,15" Text="虽然 Fabric API 的安装并不是必须的,但绝大多数 Mod 都需要 Fabric API 作为前置。" />
|
||||
<local:MyHint Margin="0,0,0,15" IsWarn="False" Text="一般来说,只需要选择最新版本的 Fabric 和 Fabric API 即可。仅在出现 Mod 或服务器等兼容问题时,玩家需要遵循相关指示选择特定的版本。" />
|
||||
<Grid>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="1. 在 PCL 中点击 “下载” 按钮,在 “自动下载” 页面中点击 “正式版”,选择想要安装的 Minecraft 版本。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea16a77b83f.png?comment=Minecraft版本选择" />
|
||||
</Grid>
|
||||
|
||||
<local:MyHint Margin="0,20,0,0" Text="一般来说,只需要选择最新版本的 Fabric 和 Fabric API 即可。仅在出现 Mod 或服务器等兼容问题时,玩家需要遵循相关指示选择特定的版本。" IsWarn="False" />
|
||||
<Grid Margin="0,10,0,0">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="2. 点击 “Fabric”,选择合适的 Fabric 版本。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea189f2ec4e.png?comment=加载器选择" />
|
||||
</Grid>
|
||||
|
||||
<local:MyHint Margin="0,20,0,0" Text="虽然 Fabric API 的安装并不是必须的,但绝大多数 Mod 都需要 Fabric API 作为前置。
现在 PCL 一般会在您选择 Fabric 后同时自动选择 Fabric API。" IsWarn="False" />
|
||||
<Grid Margin="0,10,0,0">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="2. 点击 “Fabric API”,选择合适的 Fabric API 版本,点击 “开始安装” 按钮。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea19c360e68.png?comment=FabAPI选择" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
@@ -72,16 +88,31 @@
|
||||
|
||||
<local:MyCard Title="下载并安装 Mod(Mod 文件)" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<local:MyHint Margin="0,0,0,10" Text="在从网站下载 Mod 时,玩家需要注意下载的 Mod 是否与自己的游戏版本以及 Mod 加载器匹配。
下载完成的 Mod 文件的扩展名一般为 .jar(用于老旧加载器 LiteLoader 的 Mod 扩展名为 .litemod)" IsWarn="False" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17" Text="虽然 PCL 内置的 Mod 下载功能可以满足大部分安装 Mod 的需求,但在很多情况下,玩家仍需通过网站的方式来安装 Mod。" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17" Text="玩家可以访问发布 Mod 资源的网站并通过网页链接下载 Mod 文件,除 CurseForge 之外发布 Mod 的网站还有很多,例如国内知名的 MCBBS。" />
|
||||
<local:MyButton Height="35" HorizontalAlignment="Left" Padding="13,0,13,0" Margin="0,0,0,4"
|
||||
<local:MyButton Height="35" HorizontalAlignment="Left" Padding="13,0,13,0" Margin="0,5,0,10"
|
||||
Text="打开 MCBBS Mod 分享板块" EventType="打开网页" EventData="https://www.mcbbs.net/forum-mod-1.html" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17" Text="下载完成的 Mod 文件的扩展名一般为 .jar(用于老旧加载器 LiteLoader 的 Mod 扩展名为 .litemod),玩家需要将 Mod 文件放入对应游戏版本的 mods 文件夹。" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17" Text="PCL 可以帮助玩家打开 mods 文件夹: 在 PCL 主页选中需要安装 Mod 的版本,点击 "版本设置",点击左侧菜单中的 "Mod 管理",再点击 "打开 Mod 文件夹" 即可打开这个游戏版本的 mods 文件夹。将 Mod 文件移动进去即可完成安装。" />
|
||||
<Image HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13c74be58.png" />
|
||||
<Image HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/03/64cb13c9254e3.png" />
|
||||
<Image HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/03/64cb15e5efcc7.png" />
|
||||
<local:MyHint Margin="0,0,0,15" Text="在从网站下载 Mod 时,玩家需要注意下载的 Mod 是否与自己的游戏版本以及 Mod 加载器匹配。" IsWarn="False" />
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17" Text="下载完想要安装的 Mod 后,可以在版本设置中选择需要安装 Mod 的版本,直接将需要安装的所有 Mod 文件拖入 PCL 窗口进行安装即可。" />
|
||||
<!--
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,0,4" LineHeight="17" Text="若仅需要安装少量模组,可以在版本设置中选择需要安装 Mod 的版本后,直接将需要安装的所有 Mod 文件拖入 PCL 窗口进行安装即可。若需要批量安装较多 Mod,建议依照以下步骤进行安装:" />
|
||||
<Grid>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="1. 在 PCL 中启动页面中的版本设置中选择需要安装 Mod 的版本,点击版本设置。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea1bd627822.png?comment=版本设置" />
|
||||
</Grid>
|
||||
|
||||
<Grid Margin="0,20,0,4">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4" Width="200"
|
||||
Text="2. 在弹出的菜单中点击 "打开 Mod 文件夹" 按钮。" HorizontalAlignment="Left" />
|
||||
<Image Margin="250,0,0,0" HorizontalAlignment="Center" Source="https://img.z0z0r4.top/local/2023/08/26/64ea1c54830ba.png?comment=打开文件夹" />
|
||||
</Grid>
|
||||
|
||||
<Grid Margin="0,20,0,4">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,15,0,4"
|
||||
Text="3. 将 Mod 文件拖入打开的文件夹中,即可完成安装。" HorizontalAlignment="Left" />
|
||||
</Grid>
|
||||
-->
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
|
||||
+96
-39
@@ -98,7 +98,7 @@
|
||||
<TextBlock Margin="0,4,0,0"
|
||||
Text="如果能在 PCL 文件夹中找到该文件,则会优先打开 PCL 文件夹中的文件。当然,你可以使用例如 C:\ 开头的绝对路径。" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="此外,PCL 会将文件中的花括号 path 替换为 PCL 可执行文件所在文件夹({path}),可以用于执行特定程序或加载图片。" />
|
||||
Text="此外,PCL 会将文件中的 “花括号 path” 替换为 PCL 可执行文件所在文件夹({path}),可以用于执行特定程序或加载图片。" />
|
||||
<local:MyButton Margin="0,4,0,10" Width="200" Height="35"
|
||||
Text="打开 PCL 日志" EventType="打开文件" EventData="Log1.txt" ToolTip="PCL 的日志文件就在 PCL 文件夹内,且名为 Log1.txt" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
@@ -139,7 +139,7 @@
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="横向布局 1:StackPanel" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<local:MyCard Title="StackPanel 横向布局" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,10"
|
||||
Text="你需要使用 StackPanel 在一行里塞下多个按钮。你可以仅在这个教学卡片的基础上稍作调整,来实现自己的按钮布局。" />
|
||||
@@ -164,29 +164,6 @@
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="横向布局 2:Grid" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="如果要实现更复杂的布局,则必须使用 Grid。Grid 可以让按钮们自动适应窗口宽度:随意拉伸 PCL 窗口,按钮大小会自动改变。" />
|
||||
<TextBlock Margin="0,0,0,10"
|
||||
Text="你可以上网查找 “WPF Grid” 的相关教程,这里仅给出一个例子,不作详细介绍。你可以仅在这个教学卡片的基础上稍作调整,来实现自己的按钮布局。" />
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1.6*" /> <!-- 这个按钮的宽度是其他按钮的 1.6 倍 -->
|
||||
<ColumnDefinition Width="1*" /> <!-- 如果不打 *,则会占用固定的宽度 -->
|
||||
</Grid.ColumnDefinitions>
|
||||
<!-- 为按钮添加 Grid.Column 属性,删除 Width 与 HorizontalAlignment 属性 -->
|
||||
<local:MyButton Grid.Column="0" Margin="0,0,10,0" Height="35" ColorType="Highlight"
|
||||
Text="打开 B 站" EventType="打开网页" EventData="https://www.bilibili.com/" />
|
||||
<local:MyButton Grid.Column="1" Margin="0,0,10,0" Height="35"
|
||||
Text="进入 Hypixel" EventType="启动游戏" EventData="1.16.3|mc.hypixel.net" ToolTip="使用 Minecraft 1.16.3 进入 Hypixel" />
|
||||
<local:MyButton Grid.Column="2" Margin="0,0,10,0" Height="35"
|
||||
Text="打开画图" EventType="打开文件" EventData="mspaint.exe" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="列表项 1:基础" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
@@ -250,13 +227,86 @@
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="替换标记" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="在花括号 {} 中写入特定内容,PCL 会在加载时对其进行替换。
例如,path 会被替换为 PCL 可执行文件所在文件夹({path}),用于在 EventData 中指定特定文件,或是加载图片。" />
|
||||
<local:MyHint Margin="0,6,0,10" Text="以下特性于 PCL 2.6.5 (299) 加入,不适用于更早版本的 PCL。" IsWarn="False" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="你也可以使用替换标记来获取随机内容:cave 会被替换为一条随机的回声洞内容,hint 则是 “你知道吗” 的内容。" />
|
||||
<TextBlock Margin="10,6,0,5" Foreground="{DynamicResource ColorBrush3}"
|
||||
Text="你知道吗:{hint}" />
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="进阶:Grid 布局" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="如果要实现更复杂的布局,则必须使用 Grid。Grid 可以让按钮们自动适应窗口宽度:随意拉伸 PCL 窗口,按钮大小会自动改变。" />
|
||||
<TextBlock Margin="0,0,0,10"
|
||||
Text="你可以上网查找 “WPF Grid” 的相关教程,这里仅给出一个例子,不作详细介绍。你可以仅在这个教学卡片的基础上稍作调整,来实现自己的按钮布局。" />
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1.6*" MinWidth="200" /> <!-- 第二个按钮的宽度是第一个按钮的 1.6 倍,且至少为 200 -->
|
||||
<ColumnDefinition Width="150" /> <!-- 如果不打 *,则会占用固定的宽度,也可以写 Auto 来自适应 -->
|
||||
</Grid.ColumnDefinitions>
|
||||
<!-- 为按钮添加 Grid.Column 属性指定它所在的列,不要添加 Width 与 HorizontalAlignment 属性 -->
|
||||
<local:MyButton Grid.Column="0" Margin="0,0,10,0" Height="35" ColorType="Highlight"
|
||||
Text="打开 B 站" EventType="打开网页" EventData="https://www.bilibili.com/" />
|
||||
<local:MyButton Grid.Column="1" Margin="0,0,10,0" Height="35"
|
||||
Text="进入 Hypixel" EventType="启动游戏" EventData="1.16.3|mc.hypixel.net" ToolTip="使用 Minecraft 1.16.3 进入 Hypixel" />
|
||||
<local:MyButton Grid.Column="2" Margin="0,0,10,0" Height="35"
|
||||
Text="打开画图" EventType="打开文件" EventData="mspaint.exe" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="进阶:图标按钮" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<local:MyHint Margin="0,0,0,10" Text="以下特性于 PCL 2.6.5 (299) 加入,不适用于更早版本的 PCL。" IsWarn="False" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="MyIconTextButton 是一种带有自定义矢量图标的按钮变体,它同样支持 EventType 与 EventData 属性。
通过设置 Logo 属性来控制它的图标,设置 LogoScale 属性还可以调整图标的缩放比例。" />
|
||||
<local:MyIconTextButton Margin="0,4,0,8" Height="35" HorizontalAlignment="Center"
|
||||
Text="查看 SVG Path 简介" EventType="打开网页" EventData="https://developer.mozilla.org/zh-CN/docs/Web/SVG/Tutorial/Paths"
|
||||
LogoScale="1.02" Logo="M1091 0H78C35 0 0 35 0 78v863c0 43 35 78 78 78H1091c43 0 78-35 78-78V78C1170 35 1134 0 1091 0z m-8 87v78H87v-78h994zM87 933V254h994v679H87v0zM724 340l-206 547a43 43 0 0 1-82-31l206-547a43 43 0 0 1 82 30zM369 545l-85 85 85 85a43 43 0 0 1-62 62l-116-116a43 43 0 0 1 0-62l116-116a43 43 0 0 1 62 61z m610-37a43 43 0 0 1 0 62l-116 116a43 43 0 0 1-62 0 43 43 0 0 1 0-62l85-85-85-85a43 43 0 0 1 62-62l116 116z" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="Logo 属性的内容是 SVG Path 的值,你需要使用 SVG 编辑器或者从图标资源网站(如 IconFont)查找它。不要自己写,写不懂的。
此外,它还有两种 ColorType:Black(默认)和 Highlight。" />
|
||||
<local:MyIconTextButton Margin="0,4,0,8" Height="35" HorizontalAlignment="Center"
|
||||
ColorType="Highlight" Text="打开 IconFont" EventType="打开网页" EventData="https://www.iconfont.cn/"
|
||||
LogoScale="1" Logo="M510 959c-51-31-40-86-74-120-61-63-168-66-231-138C-5 457 196 3 593 70c231 39 407 363 250 592-67 98-198 106-277 213-23 23-11 81-55 83zM176 432c-9 176 240 167 240 9 0-80-72-145-166-111-66 23-71 49-74 101z m509 129c212 59 217-307 0-231-102 36-90 206 0 231z m-213 111c33 7 44-91 9-92-19 19-64 79-9 92z m83 0H575c23-37-8-87-46-92 3 37-11 92 27 92z" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="如果只想要图标,不要文字,还可以使用 MyIconButton。它不能设置 Text 属性,只有一个图标可以按。
它的 Theme 属性可以设置为 Color(默认)、White、Black、Red。" />
|
||||
<local:MyIconButton Margin="0,4,0,0" Width="25" Height="25" HorizontalAlignment="Center"
|
||||
Theme="Black" EventType="弹出窗口" EventData="事件|MyIconButton 当然也支持 EventType 和 EventData——要不然介绍它干啥?"
|
||||
LogoScale="1" Logo="M149 873c47 47 101 83 162 109 63 26 130 40 199 40 69 0 136-13 199-40 61-25 115-62 162-109s83-101 109-162c26-63 40-130 40-199 0-69-13-136-40-199-25-61-62-115-109-162-46-46-101-83-162-109C648 13 580 0 511 0s-136 13-199 40c-61 25-115 62-162 109s-83 101-109 162C13 375 0 442 0 511s13 136 40 199c25 61 62 115 109 162zM97 511c0-228 185-414 414-414 228 0 414 185 414 414S740 926 511 926c-228 0-414-185-414-414z M539 244c-8-4-17-7-27-7-9 0-19 2-27 7-16 9-27 27-27 47 0 30 24 54 54 54 30 0 54-24 54-54 0-19-10-37-27-47zM566 732v-284c0-30-24-54-54-54-30 0-54 24-54 54v284c0 30 24 54 54 54 30 0 54-24 54-54z" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="如果只想显示一个图标,不想让它是能按的按钮,可以使用 WPF 自带的 Path 等绘图控件,感兴趣的话可以自行搜索。想偷懒也可以把 MyIconButton 的 IsHitTestVisible 属性改为 False……" />
|
||||
<Path Margin="0,4,0,0" Width="20" Height="20" HorizontalAlignment="Center"
|
||||
Stretch="Uniform" Fill="{DynamicResource ColorBrush1}"
|
||||
Data="M149 873c47 47 101 83 162 109 63 26 130 40 199 40 69 0 136-13 199-40 61-25 115-62 162-109s83-101 109-162c26-63 40-130 40-199 0-69-13-136-40-199-25-61-62-115-109-162-46-46-101-83-162-109C648 13 580 0 511 0s-136 13-199 40c-61 25-115 62-162 109s-83 101-109 162C13 375 0 442 0 511s13 136 40 199c25 61 62 115 109 162zM97 511c0-228 185-414 414-414 228 0 414 185 414 414S740 926 511 926c-228 0-414-185-414-414z M539 244c-8-4-17-7-27-7-9 0-19 2-27 7-16 9-27 27-27 47 0 30 24 54 54 54 30 0 54-24 54-54 0-19-10-37-27-47zM566 732v-284c0-30-24-54-54-54-30 0-54 24-54 54v284c0 30 24 54 54 54 30 0 54-24 54-54z" />
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="进阶:联网自定义主页" Margin="0,0,0,15" CanSwap="True" IsSwaped="True">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<local:MyHint Margin="0,0,0,10" Text="以下特性于 PCL 2.6.5 (299) 加入,不适用于更早版本的 PCL。" IsWarn="False" />
|
||||
<TextBlock Margin="0,0,0,10"
|
||||
Text="如果你在尝试制作联网更新的自定义主页,可以查看下方的 GitHub 讨论页。
你可以根据其中的介绍为主页添加版本号检查以节省流量,也可以通过检查 Referer 和 User Agent 来确定对方的 PCL 版本。" />
|
||||
<local:MyButton Margin="0,0,0,8" Height="35" HorizontalAlignment="Center" Padding="20,0,20,0"
|
||||
Text="打开 GitHub 讨论页" EventType="打开网页" EventData="https://github.com/Hex-Dragon/PCL2/discussions/2528" />
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<!--
|
||||
|
||||
全部通用的属性:
|
||||
- Width、Height:设置宽度与高度
|
||||
- ToolTip:设置鼠标指向时的提示文本
|
||||
- Background:调整背景颜色(十六进制字符串,例如 #FF010203 代表 ARGB 中的 255,1,2,3。前两位代表不透明度,FF 为全不透明,00 为全透明)
|
||||
- Margin:调整外边距(格式为 左,上,右,下。例如 Margin="0,0,0,2" 即为 2 单位的下边距)
|
||||
- HorizontalAlignment:设置横向对齐方式,居左:Left、居中:Center、居右:Right、拉伸(默认):Stretch
|
||||
- VerticalAlignment:设置纵向对齐方式,居上:Top、居中:Center、居下:Bottom、拉伸(默认):Stretch
|
||||
- IsHitTestVisible:该控件是否响应交互(点击、指向动画等),True 为是(默认),False 为否
|
||||
|
||||
TextBlock(纯文本):
|
||||
- Text:设置显示的文本(如果要使用引号等特殊字符,自行百度 XAML 转义)
|
||||
@@ -264,38 +314,32 @@ TextBlock(纯文本):
|
||||
- FontSize:设置字号
|
||||
- FontWeight:设置为 Bold 时,文字加粗
|
||||
- Foreground:调整前景颜色(十六进制字符串,例如 #FF010203 代表 ARGB 中的 255,1,2,3。前两位代表不透明度,FF 为全不透明,00 为全透明)
|
||||
- HorizontalAlignment:设置对齐方式(Left、Center、Right)
|
||||
|
||||
Image(图片):
|
||||
- Source:要显示的图片的网址
|
||||
- Foreground:调整前景颜色(十六进制字符串,例如 #FF010203 代表 ARGB 中的 255,1,2,3。前两位代表不透明度,FF 为全不透明,00 为全透明)
|
||||
- HorizontalAlignment:设置对齐方式(Left、Center、Right)
|
||||
- Source:要显示的图片的网址,或 PCL 内置图片位置
|
||||
|
||||
local:MyCard(卡片):
|
||||
- Title:设置显示的标题文本
|
||||
- CanSwap:这张卡片是否可以折叠,True 为是,False 为否
|
||||
- IsSwaped:这张卡片是否默认折叠,要求 CanSwap 必须为 True
|
||||
- Foreground:调整前景颜色(十六进制字符串,例如 #FF010203 代表 ARGB 中的 255,1,2,3。前两位代表不透明度,FF 为全不透明,00 为全透明)
|
||||
- HorizontalAlignment:设置对齐方式(Left、Center、Right)(使用时,CanSwap 属性需为 False)
|
||||
- CanSwap:卡片是否可以折叠,True 为是,False 为否
|
||||
- IsSwaped:卡片是否默认折叠,要求 CanSwap 必须为 True
|
||||
- HorizontalAlignment:若使用,要求 CanSwap 必须为 False
|
||||
- UseAnimation:是否在展开等高度改变时触发动画,True 为是(默认),False 为否
|
||||
- SwapLogoRight:卡片折叠时的箭头是朝下还是朝右,True 为朝右,False 为朝下(默认)
|
||||
- HasMouseAnimation:是否在鼠标指向时改变卡片颜色,True 为是(默认),False 为否
|
||||
|
||||
local:MyHint(提示条):
|
||||
- Text:设置显示的文本(
 代表换行)
|
||||
- IsWarn:设置为 True 代表警告样式,False 代表提示样式
|
||||
- Foreground:调整前景颜色(十六进制字符串,例如 #FF010203 代表 ARGB 中的 255,1,2,3。前两位代表不透明度,FF 为全不透明,00 为全透明)
|
||||
- HorizontalAlignment:设置对齐方式(Left、Center、Right)
|
||||
|
||||
local:MyButton(按钮):
|
||||
- Text:设置显示的文本
|
||||
- Padding:设置内边距,格式与 Margin 一致
|
||||
- ColorType:设置颜色主题(Highlight 为当前启动器的主题颜色,Red 为红色,默认为黑色)
|
||||
- EventType、EventData:触发特定事件
|
||||
- HorizontalAlignment:设置对齐方式(Left、Center、Right)
|
||||
|
||||
local:MyTextButton(文本按钮):
|
||||
- Text:设置显示的文本
|
||||
- EventType、EventData:触发特定事件
|
||||
- Foreground:调整前景颜色(十六进制字符串,例如 #FF010203 代表 ARGB 中的 255,1,2,3。前两位代表不透明度,FF 为全不透明,00 为全透明)
|
||||
- HorizontalAlignment:设置对齐方式(Left、Center、Right)
|
||||
|
||||
local:MyListItem(列表项):
|
||||
- Logo:列表项的图标(所指定的可以是链接也可以是文件路径)
|
||||
@@ -303,6 +347,19 @@ local:MyListItem(列表项):
|
||||
- Info:列表项的详细信息,它将会以灰色显示在大标题下方
|
||||
- Type:若留空仅单纯展示信息,设置为 Clickable 触发相应活动
|
||||
|
||||
local:MyIconTextButton(带图标的按钮):
|
||||
- Text:设置显示的文本
|
||||
- Logo:设置显示的图标
|
||||
- LogoScale:设置图标的缩放,默认为 1
|
||||
- ColorType:设置颜色主题(Highlight 为当前启动器的主题颜色,默认为黑色)
|
||||
- EventType、EventData:触发特定事件
|
||||
|
||||
local:MyIconButton(图标按钮):
|
||||
- Logo:设置显示的图标
|
||||
- LogoScale:设置图标的缩放,默认为 1
|
||||
- Theme:设置颜色主题,Color(默认)为当前启动器的主题颜色,也可设置为 White、Black、Red
|
||||
- EventType、EventData:触发特定事件
|
||||
|
||||
-->
|
||||
|
||||
<local:MyHint Margin="0,0,0,15" Text="作者:龙腾猫跃、XiaoFans、林小槐、TCJ" IsWarn="False" />
|
||||
@@ -1,4 +1,4 @@
|
||||
<!--图片备份:https://github.com/WForst-Breeze/Files/tree/main/PCL2/Help_image3 -->
|
||||
<!--图片备份:https://github.com/WForst-Breeze/Files/tree/main/PCL2/H_img_microsoftdefender -->
|
||||
|
||||
<local:MyCard Title="PCL 为什么会被静默删除?">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
"Types": ["启动器","个性化"],
|
||||
"IsEvent": true,
|
||||
"EventType": "弹出窗口",
|
||||
"EventData": "解锁主题切换|主题功能仅对 PCL 的赞助者开放。\n在赞助任意金额后,下载快照版本,即可使用主题功能!\n多谢各位的支持啦……",
|
||||
"EventData": "解锁主题切换|主题功能仅对 PCL 的赞助者开放。\n在爱发电赞助后,爱发电私信发送【下载】,按说明操作即可使用主题功能!\n多谢各位的支持啦……\n\n爱发电:https://afdian.net/a/LTCat",
|
||||
"ShowInSnapshot": false
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"__Author__": "XiaoFans、龙腾猫跃、林小槐、WTP016",
|
||||
"Title": "使用 Git 获取帮助库",
|
||||
"Description": "使用 Git Bash 命令行获取 PCL 帮助库并提交",
|
||||
"ShowInSearch": false
|
||||
}
|
||||
@@ -1,110 +0,0 @@
|
||||
<local:MyHint Margin="0,0,0,15" Text="该帮助页面还需要根据规范重新整理格式,优化排版与文案。如果你感兴趣也可以来帮帮忙!" IsWarn="False" />
|
||||
|
||||
<local:MyCard Title="前言">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="本篇主要介绍使用 Git Bash 命令行的方式获取帮助库。" />
|
||||
<TextBlock Margin="0,0,0,4"
|
||||
Text="因 Git GUI 版本不普及,将不编写进此帮助条目内,如果你正在寻找它,可以跳转到下方外站教程。" />
|
||||
<local:MyButton MinWidth="140" Height="35px" HorizontalAlignment="Left" ColorType="Highlight"
|
||||
Text="Git 可视化极简易教程" EventType="打开网页" EventData="https://www.runoob.com/w3cnote/git-gui-window.html" />
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="获取并配置 Git 工具" CanSwap="true" IsSwaped="false">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<local:MyHint Margin="0,0,0,15" Text="如果你已经在之前使用过 Git,可以直接跳过此步骤。" IsWarn="False" />
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="在开始之前请确保已经根据“参与完善 PCL 帮助库”条目下的“获取帮助库”的指引,注册了 GitHub 并 Fork 了仓库。"/>
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="在开始获取 PCL 帮助库之前不可缺少的是安装 Git 工具,你可以直接通过下面的按钮下载,或访问网页下载。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left" ColorType="Highlight"
|
||||
Text="下载 Git (32 位)" EventType="下载文件" EventData="https://registry.npmmirror.com/-/binary/git-for-windows/v2.39.2.windows.1/Git-2.39.2-32-bit.exe" />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left" ColorType="Highlight"
|
||||
Text="下载 Git (64 位)" EventType="下载文件" EventData="https://registry.npmmirror.com/-/binary/git-for-windows/v2.39.2.windows.1/Git-2.39.2-64-bit.exe" />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="访问官网" EventType="打开网页" EventData="https://git-scm.com/" />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="访问镜像" EventType="打开网页" EventData="https://npm.taobao.org/mirrors/git-for-windows/" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,10,0,4" LineHeight="17"
|
||||
Text="1. 点击下方按钮,进入 PCL 文件夹,创建名称为 Help 的文件夹。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left" ColorType="Highlight"
|
||||
Text="打开文件夹" EventType="打开文件" EventData="explorer.exe|/select,Help" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,10,0,4" LineHeight="17"
|
||||
Text="2. 进入 Help 文件夹,右键鼠标,单击"Git Bash Here"。你也可以使用其他命令行工具。"/>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="3. 在启动的命令行窗口中,逐行执行以下指令 (点击按钮即可复制文本)。"/>
|
||||
<StackPanel Margin="25,0,0,0">
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="① 生成公钥和私钥,与你的 GitHub 账号建立连接。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="ssh-keygen -t rsa -C '此处填写邮箱'" EventType="复制文本" EventData="ssh-keygen -t rsa -C '此处填写邮箱'" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="在建立过程中可以需要进行确认操作,请按照提示回车确认。"/>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="② 点击下方按钮打开生成的密钥文件。"/>
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left" Height="35px"
|
||||
Text="打开资源管理器" EventType="打开文件" EventData="explorer.exe|%homepath%\.ssh\id_rsa.pub" />
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="③ 进入网页版 GitHub 的设置中,打开 SSH and GPG keys 项,点击 New SSH Key,标题任意,内容粘贴打开文件的内容。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="访问设置" EventType="打开网页" EventData="https://github.com/settings/keys" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="④ 设置用户信息(填写和上述操作一致的邮箱)。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git config --global user.name '此处填写名称'" EventType="复制文本" EventData="git config --global user.name '此处填写名称'" />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git config --global user.email '此处填写邮箱'" EventType="复制文本" EventData="git config --global user.email '此处填写邮箱'" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="如果你不想设置为全局用户,可以将上述命令中的 --global 部分删去,这样用户信息只在此库有效。"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="获取 PCL 帮助库" CanSwap="true" IsSwaped="false">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="1. 克隆仓库到本地。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git clone https://github.com/LTCatt/PCL2Help.git" EventType="复制文本" EventData="git clone https://github.com/LTCatt/PCL2Help.git" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="2. 开始在克隆到本地的仓库中使用本地代码编辑器编写代码,编写完成后推送编写的文件到远程仓库。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git add ." EventType="复制文本" EventData="git add ." />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git commit -m '此处填写修改记录'" EventType="复制文本" EventData="git commit -m '此处填写修改记录'" />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git push" EventType="复制文本" EventData="git push" />
|
||||
</StackPanel>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="以上指令的含义分别是,将所有更改添加到缓存,创建新的提交,同步提交。"/>
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="3. 最后回到原仓库中,新建合并请求,提交代码审核。"/>
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="新建合并请求" EventType="打开网页" EventData="https://github.com/LTCatt/PCL2Help/compare" />
|
||||
</StackPanel>
|
||||
<local:MyHint Margin="0,15,0,0" Text="注意,在请求合并之前请先请确保你的仓库分支与原仓库是同步的,GitHub 不会自动同步你的分支仓库,请在 Pull Request 前进入你的 Fork 仓库界面,点击 “Fetch upstream”,再点击“Fetch and merge” 以同步上游仓库。" />
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="如果你没法很好的理解上面的警告,可以跳转到下方外站教程详细学习。如果依旧无法理解,也可以使用不推荐但是方便的重新 Fork 来解决。"/>
|
||||
<local:MyButton Height="35px" HorizontalAlignment="Left" ColorType="Highlight" Margin="0,0,0,15"
|
||||
Text="GitHub 进行 Fork 后如何与原仓库同步" EventType="打开网页" EventData="https://github.com/selfteaching/the-craft-of-selfteaching/issues/67" />
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17" Padding="15,0,0,15"
|
||||
Text="以上内容为详细的 Git 提交帮助,如果还是无法理解,可以通过搜索引擎进一步学习。"/>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyHint Margin="0,0,0,15" Text="作者:XiaoFans、龙腾猫跃、林小槐、WTP016" IsWarn="False" />
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"__Author__": "龙腾猫跃、XiaoFans、iammcjack6、Ian-Rin",
|
||||
"Title": "使用 Intellij Idea 获取帮助库",
|
||||
"Description": "使用 Intellij Idea 编辑器获取 PCL 帮助库并提交",
|
||||
"ShowInSearch": false
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<local:MyCard Title="下载和配置 IntelliJ IDEA">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17" Text="IntelliJ IDEA 是主流的 Java 集成开发环境,适用于商业和开源开发。你可以通过点击下面的按钮来进行下载或访问其官方网站。" />
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="下载 IntelliJ IDEA" EventType="打开网页" EventData="https://www.jetbrains.com/zh-cn/idea/download/?section=windows" />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="访问 IntelliJ IDEA 官网" EventType="打开网页" EventData="https://www.jetbrains.com/zh-cn/idea/" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="在 IntelliJ IDEA 中设置并使用 Git 版本控制">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17" Text="如果要在 IntelliJ IDEA 中使用 Git 工具,你需要按照以下步骤进行相关设置:" />
|
||||
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="1. 安装 Git Integration 插件。首先打开 IntelliJ IDEA,然后依次点击 “File” → “Settings” → “Plugins” ,在出现的搜索框内输入 “Git Integration” ,找到插件并进行安装。" />
|
||||
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="2. 生成 SSH 公钥和私钥。打开 “Terminal”,并输入 ssh-keygen -t rsa -C “你的邮箱” 以生成 SSH 公钥和私钥,然后打开生成的 id_rsa.pub 文件,并复制文件中的内容。" />
|
||||
|
||||
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
||||
Text="3. 将 SSH 公钥添加到 GitHub。点击下面的 “访问设置” 按钮,然后在 GitHub 设置页面点击 “SSH and GPG keys”,接着点击 “New SSH Key”,最后在 “Key” 区域粘贴步骤2中复制的 SSH 公钥,并为其添加标题。" />
|
||||
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="访问 GitHub 设置" EventType="打开网页" EventData="https://github.com/settings/keys" />
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17"
|
||||
Text="4. 在 “Terminal” 中设置 Git 用户信息,需确保 Git 邮箱和 SSH 公钥使用的是相同的邮箱。如果只对当前库设置用户信息,“--global” 参数可以省略。" />
|
||||
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="设置 Git 用户名" EventType="复制文本" EventData="git config --global user.name '你的名称' " />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="设置 Git 邮箱" EventType="复制文本" EventData="git config --global user.email '你的邮箱' " />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyCard Title="利用 Git 获取代码库">
|
||||
<StackPanel Margin="25,40,23,15">
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17" Text="1. 克隆仓库到本地。打开 “Terminal”,输入 git clone https://github.com/LTCatt/PCL2Help.git ,此操作会在本地创建一个名为 “PCL2Help” 的文件夹,并将代码仓库的内容下载到这个文件夹。" />
|
||||
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17" Text="2. 使用 IntelliJ IDEA 进行编写。首先,在 “Terminal” 中输入 “cd PCL2Help” 切换到代码仓库目录,然后打开 IntelliJ IDEA,选择打开已有的项目,选择刚刚下载的 “PCL2Help” 文件夹,编写代码并保存更改。" />
|
||||
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17" Text="3. 将更改提交到 GitHub。在 “Terminal” 中,运行以下三个命令,将新更改添加到暂存区,然后提交并推送到远程仓库。" />
|
||||
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git add ." EventType="复制文本" EventData="git add ." />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git commit -m '提交信息' " EventType="复制文本" EventData="git commit -m '提交信息' " />
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="git push" EventType="复制文本" EventData="git push" />
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17" Text="在 GitHub 源代码仓库页面创建新的 Pull Request。点击下方的 “新建 Pull Request” 按钮,填写标题和描述,然后提交。在创建 Pull Request 之前,请确保你的分支与源仓库是同步的。" />
|
||||
|
||||
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
||||
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
||||
Text="新建合并请求" EventType="打开网页" EventData="https://github.com/LTCatt/PCL2Help/compare" />
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Margin="0,5,0,4" LineHeight="17" Text="若需同步源仓库和你的分支,打开你的 Fork 仓库页面,点击 “Fetch upstream”,然后点击 “Fetch and merge”。" />
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
|
||||
<local:MyHint Margin="0,0,0,15" Text="作者:Ian-Rin、iammcjack6、龙腾猫跃、XiaoFans" IsWarn="False" />
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
<local:MyListItem Margin="0,0,0,0"
|
||||
EventType="打开帮助" EventData="帮助/提交帮助 - VSCode.json" />
|
||||
<local:MyListItem Margin="0,0,0,0"
|
||||
EventType="打开帮助" EventData="帮助/提交帮助 - Git.json" />
|
||||
EventType="打开帮助" EventData="帮助/提交帮助 - Intellij Idea.json" />
|
||||
<local:MyListItem Margin="0,0,0,10"
|
||||
EventType="打开帮助" EventData="帮助/提交帮助 - GitHub Desktop.json" />
|
||||
</StackPanel>
|
||||
|
||||
Reference in new issue
Block a user