322 lines
19 KiB
XML
322 lines
19 KiB
XML
<Window x:Class="MafiaGame.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
Title="RMafia" Height="450" Width="800">
|
|
<Grid>
|
|
<Grid x:Name="MainMenu" Visibility="Visible">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="30*"></ColumnDefinition>
|
|
<ColumnDefinition Width="20*"></ColumnDefinition>
|
|
<ColumnDefinition Width="30*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="15*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="20*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center">
|
|
<Viewbox>
|
|
<TextBlock Text="RMafia" FontSize="45"></TextBlock>
|
|
</Viewbox>
|
|
</TextBlock>
|
|
<Button Grid.Row="3" Grid.Column="2" Click="Play_OnClick" FontSize="25">
|
|
<Viewbox>
|
|
<TextBlock Text="Играть"></TextBlock>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Grid.Row="5" Grid.Column="2" FontSize="25" Click="Settings_OnClick">
|
|
<Viewbox>
|
|
<TextBlock Text="Параметры"></TextBlock>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Grid.Row="7" Grid.Column="2" Click="Exit_OnClick" FontSize="25">
|
|
<Viewbox>
|
|
<TextBlock Text="Выход"></TextBlock>
|
|
</Viewbox>
|
|
</Button>
|
|
</Grid>
|
|
|
|
<Grid x:Name="IpInput" Visibility="Hidden">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="30*"></ColumnDefinition>
|
|
<ColumnDefinition Width="40*"></ColumnDefinition>
|
|
<ColumnDefinition Width="30*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="30*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="15*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center">
|
|
<Viewbox>
|
|
<TextBlock Text="Введите IP" FontSize="35"></TextBlock>
|
|
</Viewbox>
|
|
</TextBlock>
|
|
<TextBox Grid.Column="1" Grid.Row="3" x:Name="IpBox" FontSize="30"></TextBox>
|
|
<Button Grid.Column="1" Grid.Row="5" Click="ConnectToServer_OnClick" x:Name="IpInputGUIConnect">
|
|
<Viewbox>
|
|
<TextBlock Text="Подключится" FontSize="25"></TextBlock>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Grid.Column="1" Grid.Row="7" Click="Back_OnClick" x:Name="IpInputGUIBack">
|
|
<Viewbox>
|
|
<TextBlock Text="Назад" FontSize="25"></TextBlock>
|
|
</Viewbox>
|
|
</Button>
|
|
</Grid>
|
|
|
|
<Grid x:Name="SettingsGUI" Visibility="Hidden">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right">
|
|
<Viewbox>
|
|
<TextBlock Text="Ник:" FontSize="25"></TextBlock>
|
|
</Viewbox>
|
|
</TextBlock>
|
|
<TextBox Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" FontSize="25" x:Name="NickBox" TextChanged="NickBox_OnTextInput"></TextBox>
|
|
<Button Grid.Column="4" Grid.ColumnSpan="3" Grid.Row="11" Click="SettingsBack_OnClick">
|
|
<Viewbox>
|
|
<TextBlock Text="Назад" FontSize="25"></TextBlock>
|
|
</Viewbox>
|
|
</Button>
|
|
</Grid>
|
|
|
|
<Grid x:Name="GameQueue" Visibility="Hidden" KeyUp="GameQueue_OnKeyUp">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="1" Text="Ожидаем старта" FontSize="30" HorizontalAlignment="Center"></TextBlock>
|
|
<TextBlock Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="3" FontSize="40" HorizontalAlignment="Center" x:Name="QueueOnline"></TextBlock>
|
|
<ListBox Grid.Column="5" Grid.ColumnSpan="5" Grid.Row="1" Grid.RowSpan="8" x:Name="QueueChat"></ListBox>
|
|
<TextBox Grid.Column="5" Grid.ColumnSpan="4" Grid.Row="9" TextWrapping="Wrap" x:Name="QueueChatInput"></TextBox>
|
|
<Button Grid.Column="9" Grid.Row="9" Content="Отправить!" Click="GameQueueChatSend_OnClick"></Button>
|
|
<Button Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="9" Content="Выйти" Click="GameQueueLeave_OnClick"></Button>
|
|
</Grid>
|
|
|
|
<Grid x:Name="DisconnectScreen" Visibility="Hidden">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="25*"></ColumnDefinition>
|
|
<ColumnDefinition Width="40*"></ColumnDefinition>
|
|
<ColumnDefinition Width="25*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="35*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Column="2" Grid.Row="1" Text="Отключён от сервера" FontSize="30" HorizontalAlignment="Center"></TextBlock>
|
|
<TextBlock Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="3" HorizontalAlignment="Center" x:Name="ReasonText" FontSize="25" TextWrapping="Wrap"></TextBlock>
|
|
<Button Grid.Column="2" Grid.Row="6" Click="Back_OnClick" Content="Назад" FontSize="25"></Button>
|
|
</Grid>
|
|
|
|
<Grid x:Name="GameVotingPassive" Visibility="Hidden">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="7" HorizontalAlignment="Center" FontSize="30" x:Name="GameVotingPassiveRole"></TextBlock>
|
|
<TextBlock Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="7" Text="Спи спокойно, пока можешь" HorizontalAlignment="Center" FontSize="30"></TextBlock>
|
|
</Grid>
|
|
|
|
<Grid x:Name="GameVotingActive" Visibility="Hidden" KeyUp="GameVotingActive_OnKeyUp">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="7" HorizontalAlignment="Center" FontSize="30" x:Name="GameVotingActiveRole"></TextBlock>
|
|
<ListBox Grid.Column="5" Grid.ColumnSpan="5" Grid.Row="2" Grid.RowSpan="8" x:Name="GameVotingActiveChat"></ListBox>
|
|
<TextBox Grid.Column="5" Grid.ColumnSpan="4" Grid.Row="10" TextWrapping="Wrap" x:Name="GameVotingActiveChatInput"></TextBox>
|
|
<Button Grid.Column="9" Grid.Row="10" Content="Отправить!" Click="GameVotingActiveChatSend_OnClick"></Button>
|
|
<ListBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="8" x:Name="GameVotingActiveSelect" MouseDoubleClick="GameVotingActiveSelect_OnMouseDoubleClick" SelectionMode="Single"></ListBox>
|
|
</Grid>
|
|
|
|
<Grid x:Name="GameEndScreen" Visibility="Hidden">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="25*"></ColumnDefinition>
|
|
<ColumnDefinition Width="40*"></ColumnDefinition>
|
|
<ColumnDefinition Width="25*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="35*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Column="2" Grid.Row="1" FontSize="30" HorizontalAlignment="Center" x:Name="GameEndScreenWon"></TextBlock>
|
|
<TextBlock Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="3" HorizontalAlignment="Center" x:Name="GameEndScreenRoles" FontSize="25" TextWrapping="Wrap"></TextBlock>
|
|
<Button Grid.Column="2" Grid.Row="6" Click="GameEndScreenBack_OnClick" Content="Назад" FontSize="25"></Button>
|
|
</Grid>
|
|
<Grid x:Name="GameDay" Visibility="Hidden" KeyUp="GameDayWait_OnKeyUp">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10*"></ColumnDefinition>
|
|
<ColumnDefinition Width="5*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="7" HorizontalAlignment="Center" FontSize="30" x:Name="GameDayHotBar" Text="Обсуждай и думай" TextAlignment="Center"></TextBlock>
|
|
<ListBox Grid.Column="5" Grid.ColumnSpan="5" Grid.Row="2" Grid.RowSpan="8" x:Name="GameDayChat"></ListBox>
|
|
<TextBox Grid.Column="5" Grid.ColumnSpan="4" Grid.Row="10" TextWrapping="Wrap" x:Name="GameDayChatInput"></TextBox>
|
|
<Button Grid.Column="9" Grid.Row="10" Content="Отправить!" Click="GameDayChatSend_OnClick"></Button>
|
|
<ListBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="8" x:Name="GameDaySelect" MouseDoubleClick="GameDaySelect_OnMouseDoubleClick" SelectionMode="Single"></ListBox>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|