This repository was archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.axaml
165 lines (111 loc) · 5.16 KB
/
MainWindow.axaml
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<Window xmlns="https://github.com/avaloniaui"
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"
d:DesignWidth="360"
d:DesignHeight="480"
x:Class="Minesweeper.MainWindow"
Title="Minesweeper"
SizeToContent="WidthAndHeight"
CanResize="False">
<Grid RowDefinitions="Auto, Auto, *">
<Menu Grid.Row="0">
<MenuItem Header="Игра">
<MenuItem Name="NewGame"
Header="Новая игра"/>
<Separator/>
<MenuItem Name="Beginner"
Header="Новичок"/>
<MenuItem Name="Amateur"
Header="Любитель"/>
<MenuItem Name="Professional"
Header="Профессионал"/>
<MenuItem Name="Custom"
Header="Особые..."/>
<Separator/>
<MenuItem Name="Tags"
Header="Метки (?)">
<MenuItem.Icon>
<CheckBox Name="TagsEnabled"
IsEnabled="False"
IsChecked="True"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="Sound"
Header="Звук"
ToolTip.Tip="звуков нет">
<MenuItem.Icon>
<CheckBox Name="SoundEnabled"
IsEnabled="False"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem Name="AutoFlags"
Header="Флажки"
ToolTip.Tip="По нажатию на СКМ автоматически ставить флажки на соседние клетки, если количество мин рядом с нажатой клеткой такое же, как и количество неоткрытых клеток рядом с нажатой клеткой"
ToolTip.ShowDelay="100">
<MenuItem.Icon>
<CheckBox Name="AutoFlagsEnabled"
IsEnabled="False"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="AutoOpen"
Header="Открытие"
ToolTip.Tip="По нажатию на СКМ автоматически открывать соседние клетки, если количество мин рядом с нажатой клеткой такое же, как и количество флажков рядом с нажатой клеткой"
ToolTip.ShowDelay="100">
<MenuItem.Icon>
<CheckBox Name="AutoOpenEnabled"
IsEnabled="False"
IsChecked="True"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem Header="Чемпионы..."/>
<Separator/>
<MenuItem Name="Exit"
Header="Выход"
HotKey="Alt+F4"
InputGesture="Alt+F4"/>
</MenuItem>
<MenuItem Header="Справка">
<MenuItem Name="FAQ"
Header="Вызов справки"
HotKey="F1"
InputGesture="F1"/>
<Separator/>
<MenuItem Name="About"
Header="О программе..."/>
</MenuItem>
</Menu>
<Separator Grid.Row="0"
VerticalAlignment="Bottom"
Height="1"
Background="#505050"/>
<StackPanel Grid.Row="1"
Orientation="Horizontal"
Spacing="7"
HorizontalAlignment="Center">
<TextBlock Text="Mines:"
FontSize="32"/>
<TextBlock Name="Mines"
FontSize="32"/>
<Separator Background="#505050"
Width="1"/>
<TextBlock Text="Time:"
FontSize="32"/>
<TextBlock Name="Time"
FontSize="32"
Text="00:00"/>
</StackPanel>
<Separator Grid.Row="1"
Background="#505050"
Height="1"
VerticalAlignment="Bottom"/>
<StackPanel Grid.Row="2"
Name="MinesField"
Orientation="Horizontal"
HorizontalAlignment="Center"
Margin="0, 10"/>
</Grid>
</Window>