@@ -2109,9 +2109,21 @@ Retry:
2109
2109
.Logo = PathImage & "Blocks/Fabric.png"
2110
2110
}
2111
2111
AddHandler NewItem.Click, OnClick
2112
+ NewItem.ContentHandler = AddressOf FabricContMenuBuild
2112
2113
'结束
2113
2114
Return NewItem
2114
2115
End Function
2116
+ Private Sub FabricContMenuBuild(sender As Object , e As EventArgs)
2117
+ Dim btnInfo As New MyIconButton With {.LogoScale = 1.05 , .Logo = Logo.IconButtonInfo, .ToolTip = "更新日志" }
2118
+ ToolTipService.SetPlacement(btnInfo, Primitives.PlacementMode.Center)
2119
+ ToolTipService.SetVerticalOffset(btnInfo, 30 )
2120
+ ToolTipService.SetHorizontalOffset(btnInfo, 2 )
2121
+ AddHandler btnInfo.Click, AddressOf FabricLog_Click
2122
+ sender.Buttons = {btnInfo}
2123
+ End Sub
2124
+ Private Sub FabricLog_Click(sender As Object , e As RoutedEventArgs)
2125
+ OpenWebsite( "https://fabricmc.net/blog" )
2126
+ End Sub
2115
2127
Public Function FabricApiDownloadListItem(Entry As CompFile, OnClick As MyListItem.ClickEventHandler) As MyListItem
2116
2128
'建立控件
2117
2129
Dim NewItem As New MyListItem With {
@@ -2252,9 +2264,21 @@ Retry:
2252
2264
.Logo = PathImage & "Blocks/Quilt.png"
2253
2265
}
2254
2266
AddHandler NewItem.Click, OnClick
2267
+ NewItem.ContentHandler = AddressOf QuiltContMenuBuild
2255
2268
'结束
2256
2269
Return NewItem
2257
2270
End Function
2271
+ Private Sub QuiltContMenuBuild(sender As Object , e As EventArgs)
2272
+ Dim btnInfo As New MyIconButton With {.LogoScale = 1.05 , .Logo = Logo.IconButtonInfo, .ToolTip = "更新日志" }
2273
+ ToolTipService.SetPlacement(btnInfo, Primitives.PlacementMode.Center)
2274
+ ToolTipService.SetVerticalOffset(btnInfo, 30 )
2275
+ ToolTipService.SetHorizontalOffset(btnInfo, 2 )
2276
+ AddHandler btnInfo.Click, AddressOf QuiltLog_Click
2277
+ sender.Buttons = {btnInfo}
2278
+ End Sub
2279
+ Private Sub QuiltLog_Click(sender As Object , e As RoutedEventArgs)
2280
+ OpenWebsite( "https://quiltmc.org/en/blog/1/" )
2281
+ End Sub
2258
2282
Public Function QSLDownloadListItem(Entry As CompFile, OnClick As MyListItem.ClickEventHandler) As MyListItem
2259
2283
'建立控件
2260
2284
Dim NewItem As New MyListItem With {
@@ -2433,9 +2457,41 @@ Retry:
2433
2457
.Logo = PathImage & "Blocks/LabyMod.png"
2434
2458
}
2435
2459
AddHandler NewItem.Click, OnClick
2460
+ NewItem.ContentHandler = AddressOf LabyModContMenuBuild
2436
2461
'结束
2437
2462
Return NewItem
2438
2463
End Function
2464
+ Private Sub LabyModContMenuBuild(sender As Object , e As EventArgs)
2465
+ Dim btnSave As New MyIconButton With {.Logo = Logo.IconButtonSave, .ToolTip = "另存为" }
2466
+ ToolTipService.SetPlacement(btnSave, Primitives.PlacementMode.Center)
2467
+ ToolTipService.SetVerticalOffset(btnSave, 30 )
2468
+ ToolTipService.SetHorizontalOffset(btnSave, 2 )
2469
+ AddHandler btnSave.Click, AddressOf LabyModSave_Click
2470
+ Dim btnInfo As New MyIconButton With {.LogoScale = 1.05 , .Logo = Logo.IconButtonInfo, .ToolTip = "更新日志" }
2471
+ ToolTipService.SetPlacement(btnInfo, Primitives.PlacementMode.Center)
2472
+ ToolTipService.SetVerticalOffset(btnInfo, 30 )
2473
+ ToolTipService.SetHorizontalOffset(btnInfo, 2 )
2474
+ AddHandler btnInfo.Click, AddressOf LabyModLog_Click
2475
+ sender.Buttons = {btnSave, btnInfo}
2476
+ End Sub
2477
+ Private Sub LabyModLog_Click(sender As Object , e As RoutedEventArgs)
2478
+ OpenWebsite( "https://www.labymod.net/zh_Hans/download" )
2479
+ End Sub
2480
+ Private Sub LabyModSave_Click(sender As Object , e As RoutedEventArgs)
2481
+ Dim version As JObject
2482
+ If sender.Tag IsNot Nothing Then
2483
+ version = sender.Tag
2484
+ ElseIf sender.Parent.Tag IsNot Nothing Then
2485
+ version = sender.Parent.Tag
2486
+ Else
2487
+ version = sender.Parent.Parent.Tag
2488
+ End If
2489
+ If version( "channel" ) = "snapshot" Then
2490
+ McDownloadLabyModSnapshotLoaderSave()
2491
+ Else
2492
+ McDownloadLabyModProductionLoaderSave()
2493
+ End If
2494
+ End Sub
2439
2495
# End Region
2440
2496
2441
2497
# Region "合并安装"
0 commit comments