-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
147 lines (144 loc) · 6.52 KB
/
Copy pathMainWindow.axaml
File metadata and controls
147 lines (144 loc) · 6.52 KB
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
<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"
x:Class="Nue.MainWindow"
Title="Nue"
Width="600"
Height="400"
WindowStartupLocation="CenterScreen"
TransparencyLevelHint="Transparent"
Background="Transparent"
SystemDecorations="None"
Loaded="Control_OnLoaded"
Closing="Window_OnClosing">
<Border Name="MainBorder"
CornerRadius="12"
Background="#151515"
BorderBrush="Black"
BorderThickness="1">
<DockPanel>
<Border CornerRadius="12,12,0,0"
Background="#202020"
DockPanel.Dock="Top">
<Grid Height="36"
ColumnDefinitions="*, Auto">
<TextBlock Text="Nue"
VerticalAlignment="Center"
Margin="12,0"
Foreground="White"
FontWeight="Medium" />
<StackPanel Grid.Column="1"
Orientation="Horizontal"
HorizontalAlignment="Right"
Margin="0, 0, 5, 0">
<Button Name="MinimizeButton"
Content=""
FontFamily="Segoe MDL2 Assets"
Width="40"
HorizontalContentAlignment="Center"
Background="Transparent"
Foreground="White"
Cursor="Hand"
Click="MinimizeButton_Click" />
<Button Name="CloseButton"
Content=""
FontFamily="Segoe MDL2 Assets"
Width="40"
HorizontalContentAlignment="Center"
HorizontalAlignment="Right"
Background="Transparent"
Foreground="White"
Cursor="Hand"
Click="CloseButton_Click" />
</StackPanel>
</Grid>
</Border>
<Panel Margin="10">
<Grid x:Name="MainGrid"
HorizontalAlignment="Center"
VerticalAlignment="Center"
RowDefinitions="Auto, Auto, Auto, Auto, *">
<WrapPanel Grid.Row="0"
HorizontalAlignment="Center">
<TextBox x:Name="ScoreTextBox"
Width="150"
Margin="6"
Watermark="Score"
TextChanged="ValidateInput" />
<TextBox x:Name="HighScoreTextBox"
Width="150"
Margin="6"
Watermark="High Score"
TextChanged="ValidateInput" />
<TextBox x:Name="LivesTextBox"
Width="150"
Margin="6"
Watermark="Lives"
TextChanged="ValidateInput" />
</WrapPanel>
<WrapPanel Grid.Row="1"
HorizontalAlignment="Center">
<TextBox x:Name="SpellcardsTextBox"
Width="150"
Margin="6"
Watermark="Spell cards"
TextChanged="ValidateInput" />
<TextBox x:Name="PowerTextBox"
Width="150"
Margin="6"
Watermark="Power"
TextChanged="ValidateInput" />
</WrapPanel>
<WrapPanel Grid.Row="2"
HorizontalAlignment="Center"
Cursor="Hand">
<CheckBox x:Name="InvincibilityCheckBox"
Margin="6"
Foreground="White">
Invincibility
</CheckBox>
<CheckBox x:Name="AutodeathbombCheckBox"
Margin="6"
Foreground="White">
Auto deathbomb
</CheckBox>
<CheckBox x:Name="AutocollectCardsCheckBox"
Margin="6"
Foreground="White">
Autocollect cards
</CheckBox>
<CheckBox x:Name="GrazeAllBulletsCheckBox"
Margin="6"
Foreground="White">
Graze all bullets
</CheckBox>
</WrapPanel>
<Button Grid.Row="3"
x:Name="ApplyButton"
HorizontalAlignment="Center"
Background="#353535"
Foreground="White"
Cursor="Hand"
Click="ApplyButton_OnClick">
Apply
</Button>
</Grid>
<Grid>
<Label x:Name="StatusLabel"
Content="Status: Idle"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Margin="15"
Foreground="White" />
<Label Content="Made by Samuel Olagunju"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Margin="15"
Foreground="White" />
</Grid>
</Panel>
</DockPanel>
</Border>
</Window>