mirror of
https://e.coding.net/circlecloud/CTZLauncher.git
synced 2024-11-14 00:48:48 +00:00
更新界面...
This commit is contained in:
parent
6ced318c18
commit
d7738a282e
@ -181,9 +181,7 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="IZ.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="image\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
|
||||
<Visible>False</Visible>
|
||||
@ -225,6 +223,9 @@
|
||||
<Resource Include="bg\bg8.jpg" />
|
||||
<Resource Include="bg\bg9.jpg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="image\logo.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
@ -4,7 +4,8 @@
|
||||
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="CTZLauncher.MainWindow"
|
||||
ResizeMode = "NoResize"
|
||||
Title="MainWindow" Height="600" Width="800" Background="#FF3A3A3A" AllowsTransparency="True" WindowStyle="None" Visibility="Visible" HorizontalContentAlignment="Center" HorizontalAlignment="Center" Icon="ico.ico" VerticalAlignment="Center" VerticalContentAlignment="Center" WindowStartupLocation="CenterScreen" Initialized="Window_Initialized" FontFamily="Microsoft YaHei">
|
||||
Title="MainWindow" Height="600" Width="1000
|
||||
" Background="#FF3A3A3A" AllowsTransparency="True" WindowStyle="None" Visibility="Visible" HorizontalContentAlignment="Center" HorizontalAlignment="Center" Icon="ico.ico" VerticalAlignment="Center" VerticalContentAlignment="Center" WindowStartupLocation="CenterScreen" Initialized="Window_Initialized" FontFamily="Microsoft YaHei">
|
||||
|
||||
<Window.Resources>
|
||||
<!-- s:Double表示了变量类型 x:key表示了变量名 -->
|
||||
@ -23,8 +24,8 @@
|
||||
</ControlTemplate>
|
||||
-->
|
||||
<ControlTemplate x:Key="CornerButton" TargetType="{x:Type Button}">
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="0" Background="{TemplateBinding Background}">
|
||||
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="5" Background="{TemplateBinding Background}">
|
||||
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
<ControlTemplate x:Key="CornerTextBox" TargetType="{x:Type TextBox}">
|
||||
@ -33,18 +34,18 @@
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Window.Resources>
|
||||
<Grid x:Name="outline" Background="#FF3299CC" Height="600" VerticalAlignment="Top" MouseLeftButtonDown="outline_MouseLeftButtonDown" Margin="-213,0,0,0">
|
||||
<Grid Margin="20,0" Background="#FF3299CC" Height="60" VerticalAlignment="Top" d:IsLocked="True" >
|
||||
<Grid x:Name="outline" Background="#FF3299CC" Height="600" VerticalAlignment="Top" MouseLeftButtonDown="outline_MouseLeftButtonDown" Margin="0,0,0,0">
|
||||
<Grid Margin="20,0" Background="#FF3299CC" Height="60" VerticalAlignment="Top" >
|
||||
<Label x:Name="barl1" Content="论坛" HorizontalAlignment="Left" Margin="245,15,0,0" VerticalAlignment="Top" Width="100" Height="30" FontSize="15" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" MouseDown="barclick_MouseDown"/>
|
||||
<Label x:Name="barl2" Content="资源下载" HorizontalAlignment="Left" Margin="350,15,0,0" VerticalAlignment="Top" Width="100" Height="30" FontSize="15" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" MouseDown="barclick_MouseDown"/>
|
||||
<Label x:Name="barl3" Content="新手指南" HorizontalAlignment="Left" Margin="455,15,0,0" VerticalAlignment="Top" Width="100" Height="30" FontSize="15" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" MouseDown="barclick_MouseDown"/>
|
||||
<Label x:Name="barl4" Content="赞助我们" HorizontalAlignment="Left" Margin="560,15,0,0" VerticalAlignment="Top" Width="100" Height="30" FontSize="15" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" MouseDown="barclick_MouseDown"/>
|
||||
<Image HorizontalAlignment="Left" Height="50" Margin="15,5,0,0" VerticalAlignment="Top" Width="50" Source="ico.ico" RenderTransformOrigin="0.56,0.24"/>
|
||||
<Label Content="魔方" HorizontalAlignment="Left" Height="50" Margin="90,5,0,0" VerticalAlignment="Top" Width="74" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="STXingkai" Foreground="White" FontSize="35" />
|
||||
<Image HorizontalAlignment="Left" Height="50" Margin="15,5,0,0" VerticalAlignment="Top" Width="50" Source="image/logo.png" RenderTransformOrigin="0.56,0.24"/>
|
||||
<Label Content="MC 魔方" HorizontalAlignment="Left" Height="50" Margin="80,5,0,0" VerticalAlignment="Top" Width="150" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Impact" Foreground="White" FontSize="35" />
|
||||
</Grid>
|
||||
<Grid Name="LoginWindow" Margin="20,60,20,20" Background="White">
|
||||
<Grid Height="320" VerticalAlignment="Top">
|
||||
<Grid Margin="20,20,20,20" HorizontalAlignment="Left" Width="600" >
|
||||
<Grid Height="280" VerticalAlignment="Top">
|
||||
<Grid Margin="20,20,20,10" HorizontalAlignment="Left" Width="600" >
|
||||
<Border BorderThickness="1" BorderBrush="#FF3299CC">
|
||||
<WebBrowser x:Name="banner" Margin="0"/>
|
||||
</Border>
|
||||
@ -52,24 +53,24 @@
|
||||
<Grid Margin="0,20,20,0" HorizontalAlignment="Right" Width="300">
|
||||
<!--760*520-->
|
||||
<Grid>
|
||||
<Grid Margin="10,10,10,0" Height="151" VerticalAlignment="Top">
|
||||
<Label Content="————— 游 戏 帐 号 —————" VerticalAlignment="Top" Margin="10,0" HorizontalContentAlignment="Center" FontSize="15"/>
|
||||
<TextBox x:Name="username" Template="{StaticResource CornerTextBox}" Height="34" TextWrapping="Wrap" Text="" VerticalAlignment="Top" HorizontalContentAlignment="Center" FontFamily="微软雅黑" FontSize="20" Margin="30,30,30,0" KeyDown="username_KeyDown" />
|
||||
<Label Content="————— 游 戏 密 码 —————" VerticalAlignment="Top" Margin="10,69,10,0" HorizontalContentAlignment="Center" FontSize="15"/>
|
||||
<TextBox x:Name="password" Template="{StaticResource CornerTextBox}" TextWrapping="Wrap" HorizontalContentAlignment="Center" FontFamily="微软雅黑" FontSize="20" Margin="30,104,30,0" Height="34" VerticalAlignment="Top" Tag="{}{"areas":[{"name":"\u7eaf\u51c0\u5927\u533a","servers":[{"name":"\u5149\u677f\u5c0f\u9547","address":"CityCraft.cn","port":25565,"info":"\u7eaf\u51c0\u670d\u52a1\u5668","version":"1.8-Forge","url":"CityCraft.cn"}]},{"name":"\u6a21\u7ec4\u5927\u533a","servers":[{"name":"\u5149\u677f\u5c0f\u9547","address":"CityCraft.cn","port":25573,"info":"MOD\u670d\u52a1\u5668: \u8c46\u8150 \u5bb6\u5177 ","version":"1.7.10-Forge","url":"CityCraft.cn"}]}]}" KeyDown="password_KeyDown" />
|
||||
<Button x:Name="forget" Margin="217,106,33,0" Template="{StaticResource CornerButton}" Height="30" Content="?" VerticalAlignment="Top" />
|
||||
<Grid Margin="10,10,10,0" Height="160" VerticalAlignment="Top">
|
||||
<Label Content="————— 游 戏 帐 号 —————" VerticalAlignment="Top" Margin="10,5,10,0" HorizontalContentAlignment="Center" FontSize="15"/>
|
||||
<TextBox x:Name="username" Template="{StaticResource CornerTextBox}" Height="34" TextWrapping="Wrap" Text="" VerticalAlignment="Top" HorizontalContentAlignment="Center" FontFamily="微软雅黑" FontSize="20" Margin="30,40,30,0" KeyDown="username_KeyDown" />
|
||||
<Label Content="————— 游 戏 密 码 —————" VerticalAlignment="Top" Margin="10,79,10,0" HorizontalContentAlignment="Center" FontSize="15"/>
|
||||
<TextBox x:Name="password" Template="{StaticResource CornerTextBox}" TextWrapping="Wrap" HorizontalContentAlignment="Center" FontFamily="微软雅黑" FontSize="20" Margin="30,114,30,0" Height="34" VerticalAlignment="Top" Tag="{}{"areas":[{"name":"\u7eaf\u51c0\u5927\u533a","servers":[{"name":"\u5149\u677f\u5c0f\u9547","address":"CityCraft.cn","port":25565,"info":"\u7eaf\u51c0\u670d\u52a1\u5668","version":"1.8-Forge","url":"CityCraft.cn"}]},{"name":"\u6a21\u7ec4\u5927\u533a","servers":[{"name":"\u5149\u677f\u5c0f\u9547","address":"CityCraft.cn","port":25573,"info":"MOD\u670d\u52a1\u5668: \u8c46\u8150 \u5bb6\u5177 ","version":"1.7.10-Forge","url":"CityCraft.cn"}]}]}" KeyDown="password_KeyDown" />
|
||||
<Button x:Name="forget" Margin="218,116,32,0" Template="{StaticResource CornerButton}" Height="30" Content="?" VerticalAlignment="Top" />
|
||||
</Grid>
|
||||
<Grid Margin="10,0,10,10" Height="50" VerticalAlignment="Bottom">
|
||||
<Button x:Name="Login" Margin="30,10,160,10" Template="{StaticResource CornerButton}" BorderBrush="#FF3299CC" Content="登录" Click="Login_Click"/>
|
||||
<Button x:Name="register" Margin="160,10,30,10" Template="{StaticResource CornerButton}" BorderBrush="#FF3299CC" Content="注册" Click="register_Click" />
|
||||
<Button x:Name="Login" Margin="30,10,160,10" Template="{StaticResource CornerButton}" BorderBrush="#FF3299CC" Content="+ 注册账号" Click="Login_Click" Foreground="White" Background="#FF45AB34"/>
|
||||
<Button x:Name="register" Margin="160,10,30,10" Template="{StaticResource CornerButton}" BorderBrush="#FF3299CC" Content="√ 进入游戏" Click="register_Click" Background="#FFAB3434" Foreground="White" FontSize="13" />
|
||||
</Grid>
|
||||
<CheckBox x:Name="remzh" Content="记住帐号" HorizontalAlignment="Left" Margin="45,170,0,0" VerticalAlignment="Top"/>
|
||||
<CheckBox x:Name="remmm" Content="记住密码" HorizontalAlignment="Right" Margin="0,170,45,0" VerticalAlignment="Top"/>
|
||||
<CheckBox x:Name="remzh" Content="记住帐号" HorizontalAlignment="Left" Margin="40,185,0,0" VerticalAlignment="Top"/>
|
||||
<CheckBox x:Name="remmm" Content="记住密码" HorizontalAlignment="Right" Margin="0,185,41,0" VerticalAlignment="Top"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid Height="200" VerticalAlignment="Bottom">
|
||||
<Grid Margin="20,20,0,20" HorizontalAlignment="Left" Width="600" >
|
||||
<Grid Height="235" VerticalAlignment="Bottom">
|
||||
<Grid Margin="20,10,0,20" HorizontalAlignment="Left" Width="600" >
|
||||
<Border BorderThickness="1" BorderBrush="#FF3299CC">
|
||||
<WebBrowser x:Name="news" Margin="0"/>
|
||||
</Border>
|
||||
@ -98,7 +99,7 @@
|
||||
</TabControl>-->
|
||||
|
||||
</Grid>
|
||||
<Grid Margin="0,20,20,20" HorizontalAlignment="Right" Width="300" ShowGridLines="True">
|
||||
<Grid Margin="0,10,20,20" HorizontalAlignment="Right" Width="300" ShowGridLines="True">
|
||||
<Border BorderBrush="#FF3299CC" BorderThickness="1">
|
||||
<WebBrowser x:Name="other" Margin="0"/>
|
||||
|
||||
|
BIN
CTZLauncher/image/logo.png
Normal file
BIN
CTZLauncher/image/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
Loading…
Reference in New Issue
Block a user