Skip to content

feat: 提供微软 CDK 兑换跳转通道 #6364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Plain Craft Launcher 2/Pages/PageLaunch/MySkin.xaml.vb
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,8 @@ Retry:
End Sub, "Cape Change")
End Sub

Public Sub BtnSkinRedeem_Click() Handles BtnSkinCape.Click
OpenWebsite("https://www.minecraft.net/zh-hans/redeem")
End Sub

End Class
6 changes: 5 additions & 1 deletion Plain Craft Launcher 2/Pages/PageLaunch/PageLoginMs.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@
<Grid Grid.Row="4" Grid.ColumnSpan="2" Opacity="0.3" Margin="2,30,2,0" HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="30" />
<ColumnDefinition Width="20" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="20" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<local:MyTextButton Text="» 购买正版" EventType="打开网页" EventData="https://www.xbox.com/zh-cn/games/store/minecraft-java-bedrock-edition-for-pc/9nxp44l49shj"
Grid.Column="0" />
<local:MyTextButton Text="» 前往官网" EventType="打开网页" EventData="https://www.minecraft.net/zh-hans"
Grid.Column="2" />
<local:MyTextButton Text="» 兑换 CDK" EventType="打开网页" EventData="https://www.minecraft.net/zh-hans/redeem"
Grid.Column="4" />
</Grid>
</Grid>
</StackPanel>
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<local:MyMenuItem Click="BtnSkinRefresh_Click" Header="刷新头像"/>
<Separator />
<local:MyMenuItem Click="BtnSkinCape_Click" Header="修改披风"/>
<local:MyMenuItem Click="BtnSkinRedeem_Click" Header="兑换披风" />
</ContextMenu>
</local:MyIconButton.ContextMenu>
</local:MyIconButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ Retry:
Skin.BtnSkinCape_Click()
End Sub

'兑换披风
Public Sub BtnSkinRedeem_Click(sender As Object, e As RoutedEventArgs)
Skin.BtnSkinRedeem_Click()
End Sub

#End Region

End Class