-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainWindow.xaml
149 lines (137 loc) · 9.83 KB
/
MainWindow.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
<mah:MetroWindow x:Class="HarbourLauncher_Reloaded.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:iconPacks="clr-namespace:MahApps.Metro.IconPacks;assembly=MahApps.Metro.IconPacks.FontAwesome"
xmlns:converters="clr-namespace:MahApps.Metro.IconPacks.Converter;assembly=MahApps.Metro.IconPacks.Core"
xmlns:local="clr-namespace:HarbourLauncher_Reloaded"
WindowStartupLocation="CenterScreen"
GlowBrush="{DynamicResource MahApps.Brushes.Accent}"
ResizeMode="CanMinimize"
TitleCharacterCasing="Normal"
Title="Harbour Launcher"
mc:Ignorable="d"
Height="450" Width="800">
<Grid>
<!--<Grid.Background>
<ImageBrush ImageSource="images/index.png" Opacity="0.45"></ImageBrush>
</Grid.Background>
<mah:FlipView x:Name="IndexFlips"
Height="151"
Width="504"
Margin="50 50 0 0"
Foreground="{DynamicResource MahApps.Brushes.ThemeBackground}"
SelectionChanged="FlipView_SelectionChanged" HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="0.9">
<mah:FlipView.Items>
<Grid>
<Grid.Background>
<ImageBrush ImageSource="images/flips1.png"></ImageBrush>
</Grid.Background>
</Grid>
<Grid>
<Grid.Background>
<ImageBrush ImageSource="images/flips2.png"></ImageBrush>
</Grid.Background>
</Grid>
<Grid>
<Grid.Background>
<ImageBrush ImageSource="images/flips3.png"></ImageBrush>
</Grid.Background>
</Grid>
</mah:FlipView.Items>
</mah:FlipView>
<mah:FlyoutsControl Panel.ZIndex="10">
<mah:Flyout x:Name="GameSettingsFlyOuts" Header="启动设置" Position="Right" Width="330" IsOpen="{Binding IsAboutFlyoutOpen}">
<Grid>
<TextBlock Text="Java环境" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,3,0,0" Width="80" Height="30" FontSize="18"/>
<ComboBox x:Name="JavaCombo" Width="200" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" MaxDropDownHeight="300" Margin="110,0,0,0"/>
<Button x:Name="JavaRefresh" FontSize="12"
Content="重新搜索" Width="60" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="250,40,0,20" Click="JavaRefresh_Click"/>
<TextBlock Text="启动版本" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,83,0,0" Width="80" Height="30" FontSize="18"/>
<ComboBox x:Name="verCombo" Width="200" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" MaxDropDownHeight="300" Margin="110,80,0,0" DisplayMemberPath="Name" SelectedValuePath="Id"/>
<TextBlock Text="启动内存" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,123,0,0" Width="80" Height="30" FontSize="18"/>
<TextBox x:Name="maxMem" Text="1024" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Width="160" Height="30" FontSize="15" Margin="110,120,0,0" InputMethod.IsInputMethodEnabled="False" PreviewTextInput="MaxMem_PreviewTextInput" />
<TextBlock Text="MB" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="280,123,0,0" Width="30" Height="30" FontSize="18"/>
<TextBlock Text="正版验证" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,165,0,0" Width="80" Height="25" FontSize="18"/>
<Controls:ToggleSwitch x:Name="IsAuth" OffContent=" 停用" OnContent=" 启用" Toggled="IsAuth_Toggled" VerticalAlignment="Top" Margin="200,160,0,0" FontSize="18" FontFamily="Microsoft YaHei UI" Width="150" Height="30" MinWidth="0" />
<Grid x:Name="OfflineLoginSettings" Visibility="Visible" Margin="0,210,0,0">
<TextBlock Text="离线模式下,您无法游玩开启了正版验证的服务器。" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,0,0,0" Width="400" Height="15" FontSize="13" Foreground="Gray"/>
<TextBlock Text="玩家名称" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,33,0,0" Width="80" Height="30" FontSize="18"/>
<TextBox x:Name="playerName" Text="Steve" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Width="200" Height="30" FontSize="15" Margin="110,30,0,0"/>
<TextBlock Text="您可以随时访问 minecraft.net 以购买正版 Minecraft" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,70,0,0" Width="400" Height="15" FontSize="11" Foreground="LightGray"/>
</Grid>
<Grid x:Name="OnlineLoginSettings" Visibility="Hidden" Margin="0,210,0,0">
<TextBlock Text="HarbourLauncher 仅提供微软登录入口" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,0,0,0" Width="400" Height="15" FontSize="13" Foreground="Gray"/>
<Controls:Tile Title="使用微软登录到Minecraft"
TitleFontSize="14"
x:Name="MicrosoftLogin"
Margin="20,20,0,0"
Controls:ControlsHelper.MouseOverBorderBrush="{DynamicResource MahApps.Brushes.ThemeForeground}"
Background="#009900"
HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalTitleAlignment="Bottom"
Click="MicrosoftLogin_Click" Width="290" Height="100">
<iconPacks:PackIconFontAwesome Width="30"
Height="30"
Kind="MicrosoftBrands" />
</Controls:Tile>
</Grid>
</Grid>
</mah:Flyout>
</mah:FlyoutsControl>
<Controls:Tile Title="启动游戏"
x:Name="StartGame"
Margin="50,210,0,0"
Controls:ControlsHelper.MouseOverBorderBrush="{DynamicResource MahApps.Brushes.ThemeForeground}"
Background="#3399ff"
HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalTitleAlignment="Bottom"
Click="StartGame_Click" Width="160" Height="120" Opacity="0.9">
<iconPacks:PackIconFontAwesome Width="40"
Height="40"
Kind="PlaySolid" />
</Controls:Tile>
<Controls:Tile Title="启动器设置"
x:Name="LauncherSettings"
Margin="220,210,0,0"
Controls:ControlsHelper.MouseOverBorderBrush="{DynamicResource MahApps.Brushes.ThemeForeground}"
Background="#ff9966"
HorizontalAlignment="Left"
Click="LauncherSettings_Click"
VerticalAlignment="Top" VerticalTitleAlignment="Bottom" Width="160" Height="120" Opacity="0.9">
<iconPacks:PackIconFontAwesome Width="40"
Height="40"
Kind="WrenchSolid" />
</Controls:Tile>
<Controls:Tile Title="码头市场"
x:Name="HarbourMarket"
Margin="390,210,0,0"
Controls:ControlsHelper.MouseOverBorderBrush="{DynamicResource MahApps.Brushes.ThemeForeground}"
Background="#ff8080"
HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalTitleAlignment="Bottom"
Click="HarbourMarket_Click"
Width="160" Height="120" Opacity="0.9">
<iconPacks:PackIconFontAwesome Width="40"
Height="40"
Kind="StoreSolid" />
</Controls:Tile>
<Controls:Tile Title="游戏设置"
x:Name="GameSettings"
Margin="600,53,0,0"
Controls:ControlsHelper.MouseOverBorderBrush="{DynamicResource MahApps.Brushes.ThemeForeground}"
Background="Teal"
HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalTitleAlignment="Bottom"
Click="GameSettings_Click" Width="160" Height="277" Opacity="0.9">
<iconPacks:PackIconFontAwesome Width="40"
Height="40"
Kind="GamepadSolid" />
</Controls:Tile>-->
<ContentControl x:Name="CC">
</ContentControl>
</Grid>
</mah:MetroWindow>