-
Notifications
You must be signed in to change notification settings - Fork 9
/
Custom.xaml
164 lines (159 loc) · 11 KB
/
Custom.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!--
\- Simple Mainpage -\
\- by MFn -\
\- https://github.com/MFn233/PCL-Mainpage -\
\- Version: 0.1.2 -\
-->
<!--欢迎页-->
<local:MyCard Margin="0,-6,0,12" Title="欢迎"> <!--下面不是卡片,所以不用0,0,0,12-->
<StackPanel Margin="24,35,24,15">
<TextBlock HorizontalAlignment="Center" Margin="0,0,0,0"
Foreground="{DynamicResource ColorBrush2}" FontSize="20"
Text="欢迎使用Simple Mainpage!" />
<Calendar HorizontalAlignment="Center" Margin="0,12,0,10" />
<!--因为“你知道吗”在启动游戏的时候会出现,所以我只在这里设置了回声洞-->
<TextBlock Margin="5,0,5,12" TextWrapping="Wrap" HorizontalAlignment="Center"
Foreground="{DynamicResource ColorBrush1}" Text="{cave}" />
</StackPanel>
</local:MyCard>
<!-- Dock (大概可以这么称呼吧) -->
<local:MyCard Margin="0,0,0,8">
<StackPanel Margin="24,6,24,12">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<local:MyIconTextButton Margin="0,5,0,6" Height="35" HorizontalAlignment="Center"
Text="作者网站" EventType="打开网页" Grid.Column="0"
EventData="https://mfn233.github.io/PCL-Mainpage/redirect/index.html"
LogoScale="0.8" ColorType="Highlight"
Logo="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z" />
<local:MyIconTextButton Margin="0,5,0,6" Height="35" HorizontalAlignment="Center"
Text="刷新主页" EventType="刷新主页" Grid.Column="1"
LogoScale="0.8" ColorType="Highlight"
Logo="M256.455,8C322.724,8.119,382.892,34.233,427.314,76.685L463.029,40.97C478.149,25.851,504,36.559,504,57.941L504,192C504,205.255,493.255,216,480,216L345.941,216C324.559,216,313.851,190.149,328.97,175.029L370.72,133.279C339.856,104.38 299.919,88.372 257.49,88.006 165.092,87.208 87.207,161.983 88.0059999999999,257.448 88.764,348.009 162.184,424 256,424 297.127,424 335.997,409.322 366.629,382.444 371.372,378.283 378.535,378.536 382.997,382.997L422.659,422.659C427.531,427.531 427.29,435.474 422.177,440.092 378.202,479.813 319.926,504 256,504 119.034,504 8.001,392.967 8,256.002 7.999,119.193 119.646,7.755 256.455,8z" />
</Grid>
<local:MyListItem Margin="-2,0,0,0"
Logo="pack://application:,,,/images/blocks/GoldBlock.png" Title="今日人品"
Info="试试手气!" EventType="今日人品" Type="Clickable" />
<local:MyListItem Margin="-2,0,0,0"
Logo="pack://application:,,,/images/blocks/Grass.png" Title="启动基岩版"
Info="以 URL Scheme 的方式启动电脑上的 MC 基岩版。" EventType="打开网页" EventData="minecraft://"
Type="Clickable" />
<local:MyListItem Margin="-2,0,0,0"
Logo="pack://application:,,,/images/blocks/CommandBlock.png" Title="网页捷径"
Type="Clickable"
Info="打开网页捷径页面,暂时位于 GitHub" EventType="打开帮助"
EventData="https://mfn233.github.io/PCL-Mainpage/urlshortcut/main.json" />
</StackPanel>
</local:MyCard>
<!--工具-->
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5"
Stretch="Fill" Grid.Column="0" />
<TextBlock Text="工具" FontSize="15" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1"
VerticalAlignment="Center" HorizontalAlignment="Center" />
<Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5"
Stretch="Fill" Grid.Column="2" />
</Grid>
<local:MyCard Margin="0,0,0,12" Title="启动器工具" CanSwap="True" IsSwaped="True">
<StackPanel Margin="24,40,24,15">
<local:MyHint IsWarn="False" Text="此处所有功能均为启动器自带,出问题请上报至 PCL2 仓库" Margin="0,0,0,10" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<local:MyButton Grid.Column="0" Margin="0,0,10,0" Height="35" Text="打开 PCL 日志"
EventType="打开文件" EventData="Log1.txt" ToolTip="查看当前PCL启动器的日志文件。" />
<local:MyButton Grid.Column="1" Margin="0,0,0,0" Height="35" Text="清理垃圾"
EventType="清理垃圾" ToolTip="清理垃圾文件。" />
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<local:MyButton Grid.Column="0" Margin="0,10,10,0" Height="35" Text="内存优化"
EventType="内存优化" ToolTip="将物理内存占用降低约 1/3 ,不仅限于 MC !
如果使用机械硬盘,这可能会导致一小段时间的严重卡顿。" />
<local:MyButton Grid.Column="1" Margin="0,10,0,0" Height="35" Text="定位游戏启动脚本"
EventType="打开文件" EventData="explorer.exe|/select,LatestLaunch.bat"
ToolTip="打开PCL上一次启动 MC 的脚本 (LatestLaunch.bat) 。" />
</Grid>
</StackPanel>
</local:MyCard>
<local:MyCard Margin="0,0,0,8" Title="下载器" CanSwap="True" IsSwaped="True">
<StackPanel Margin="24,40,24,15">
<local:MyHint Margin="0,0,0,10" IsWarn="False"
Text="使用 PCL 的高速多线程下载引擎下载任意文件。请注意,部分网站 (例如百度网盘) 可能会报错 (403) 已禁止,无法正常下载。" />
<local:MyHint Margin="0,0,0,10" IsWarn="True"
Text="链接必须为以 http:// 或 https:// 开头的网址,部分网址可能无法下载" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<local:MyTextBox HintText="下载链接:" Margin="0,0,0,0" Name="web" Height="30"
Grid.Column="0" ToolTip="在此输入下载链接,点击右边按钮下载自定义文件。
注意不要按下Enter键,这会直接启动游戏。" />
<local:MyButton EventType="下载文件" EventData="{Binding ElementName=web,Path=Text}"
Text="开始下载→" Margin="5,0,0,0" Height="30" Grid.Column="2" Padding="2,0,2,0"
ColorType="Highlight" />
</Grid>
</StackPanel>
</local:MyCard>
<!--其它-->
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5"
Stretch="Fill" Grid.Column="0" />
<TextBlock Text="其它" FontSize="15" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1"
VerticalAlignment="Center" HorizontalAlignment="Center" />
<Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5"
Stretch="Fill" Grid.Column="2" />
</Grid>
<local:MyCard Margin="0,0,0,12" Title="友情链接" CanSwap="True" IsSwaped="True">
<StackPanel Margin="24,40,24,15">
<local:MyListItem Margin="-2,0,0,0"
Logo="pack://application:,,,/images/blocks/Grass.png" Title="新闻页面"
Info="作者:最亮的信标" EventType="打开帮助" EventData="https://news.bugjump.net/News.json"
Type="Clickable" />
<local:MyListItem Margin="-2,0,0,0"
Logo="pack://application:,,,/images/blocks/Grass.png" Title="主页市场"
Info="作者:MFn233" EventType="打开帮助"
EventData="https://mfn233.github.io/PCL-Mainpage-Market/market.json"
Type="Clickable" />
</StackPanel>
</local:MyCard>
<local:MyCard Margin="0,0,0,8" Title="关于" CanSwap="True" IsSwaped="True">
<StackPanel Margin="24,40,24,15">
<local:MyListItem Margin="-2,0,10,0" Info="最新版本的更新日志"
Logo="pack://application:,,,/images/blocks/RedstoneLampOn.png" Title="更新日志"
EventType="打开网页"
EventData="https://github.com/MFn233/PCL-Mainpage/releases/latest"
Type="Clickable" />
<local:MyListItem Margin="-2,0,10,0" Info="GitHub项目仓库"
Logo="pack://application:,,,/images/blocks/CommandBlock.png" Title="项目仓库"
EventType="打开网页" EventData="https://github.com/MFn233/PCL-Mainpage"
Type="Clickable" />
<local:MyListItem Margin="-2,0,0,0" Info="排名不分先后"
Logo="pack://application:,,,/images/blocks/GoldBlock.png" Title="鸣谢"
EventType="弹出窗口"
EventData="鸣谢|感谢以下朋友!此窗口专门用于记录对这个项目有帮助的除作者之外的其他人,括号中注明了他们的来历。\n\n(GitHub) MCSteve123提交大量pull request\n(GitHub) Ad_closeNN提交大量pull request\n(GitHub) JingHai-Lingyun提供改进建议\n(GitHub) wuliaodexiaoluo提供改进建议\n(GitHub) erqianwu提供改进建议\n(sipc.ink) SIPC曾帮助将主页文件挂载于云服务器"
Type="Clickable" />
<local:MyListItem Margin="-2,0,0,0" Info="MFn233"
Logo="pack://application:,,,/images/blocks/GoldBlock.png" Title="关于作者"
EventType="弹出窗口"
EventData="关于作者|我是MFn233,一个妄图写出完美代码的程序员,该主页目前由我独立完成,并在GitHub上开源。欢迎你前往仓库为我的项目提issue\n\n如果你真的很希望更多地了解我,欢迎访问我的网站: mfn233.github.io\n\n©MFn233 2023/7/22"
Type="Clickable" />
</StackPanel>
</local:MyCard>