-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayerPanel.xaml
43 lines (42 loc) · 2.54 KB
/
PlayerPanel.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
<UserControl x:Class="Jackal.PlayerPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Jackal"
mc:Ignorable="d">
<StackPanel Orientation="Horizontal">
<StackPanel x:Name="Teams" VerticalAlignment="Center" Margin="5" IsEnabled="False">
<RadioButton x:Name="t0" Content="Чёрные" IsChecked="True"/>
<RadioButton x:Name="t1" Content="Красные"/>
<RadioButton x:Name="t2" Content="Белые"/>
<RadioButton x:Name="t3" Content="Жёлтые"/>
</StackPanel>
<StackPanel VerticalAlignment="Center" Margin="5">
<RadioButton x:Name="firstp" Content="Первый пират" IsChecked="True" Checked="firstp_Checked"/>
<RadioButton x:Name="secondp" Content="Второй пират" Checked="secondp_Checked"/>
<RadioButton x:Name="thirdp" Content="Третий пират" Checked="thirdp_Checked"/>
</StackPanel>
<Grid HorizontalAlignment="Right" Margin="15" Height="90" Width="90" VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Button Name="ul" Content="↖" Grid.Row="0" Grid.Column="0" Click="ul_Click" />
<Button Name="u" Content="↑" Grid.Row="0" Grid.Column="1" Click="u_Click"/>
<Button Name="ur" Content="↗" Grid.Row="0" Grid.Column="2" Click="ur_Click"/>
<Button Name="l" Content="←" Grid.Row="1" Grid.Column="0" Click="l_Click"/>
<Button Name="coin" Content="М" Grid.Row="1" Grid.Column="1" Click="coin_Click"/>
<Button Name="r" Content="→" Grid.Row="1" Grid.Column="2" Click="r_Click"/>
<Button Name="dl" Content="↙" Grid.Row="2" Grid.Column="0" Click="dl_Click"/>
<Button Name="d" Content="↓" Grid.Row="2" Grid.Column="1" Click="d_Click"/>
<Button Name="dr" Content="↘" Grid.Row="2" Grid.Column="2" Click="dr_Click"/>
</Grid>
</StackPanel>
</UserControl>