-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
120 lines (112 loc) · 5.75 KB
/
Copy pathMainWindow.xaml
File metadata and controls
120 lines (112 loc) · 5.75 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
<Window x:Class="GamingOverlay.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="GamingOverlay" Height="1080" Width="1920"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
Topmost="True" ResizeMode="NoResize">
<Grid>
<!-- Partial Screen Overlay -->
<Rectangle x:Name="PartialScreenOverlay"
Fill="Black" Opacity="0.5"
Visibility="Collapsed"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Margin="0,0,0,120" /> <!-- Leaves space for navigation buttons -->
<!-- Main Overlay Background -->
<Grid Background="Transparent">
<!-- Debug Rectangle for Background Image -->
<Rectangle x:Name="BackgroundImageRectangle" Height="150"
VerticalAlignment="Bottom"
Margin="0,0,0,44"
Stroke="Red" StrokeThickness="0"
Fill="Transparent" />
<!-- Dynamic Content Area -->
<Frame x:Name="FrameContent"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="800"
Height="600"
Visibility="Visible"
NavigationUIVisibility="Hidden"/>
<!-- Navigation Row Content -->
<Border Height="120"
VerticalAlignment="Bottom"
Margin="0,0,0,44"
Background="Transparent">
<StackPanel x:Name="NavigationButtonsPanel" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<!-- Left Controller Button (LB) -->
<Image Source="Images/ctrl_bttn_LB.png"
VerticalAlignment="Center"
Height="20"
Margin="0,0,20,0" />
<!-- Navigation Buttons -->
<Button Content="Game Options" Margin="20,0,20,0"
Background="Transparent" BorderBrush="Transparent"
Foreground="White" FontSize="16" FontWeight="Bold" />
<Button Content="Performance Profile" Margin="20,0,20,0"
Background="Transparent" BorderBrush="Transparent"
Foreground="White" FontSize="16" FontWeight="Bold" />
<Button Content="Game Recording" Margin="20,0,20,0"
Background="Transparent" BorderBrush="Transparent"
Foreground="White" FontSize="16" FontWeight="Bold" />
<Button Content="Achievements" Margin="20,0,20,0"
Background="Transparent" BorderBrush="Transparent"
Foreground="White" FontSize="16" FontWeight="Bold" />
<Button Content="Discord" Margin="20,0,20,0"
Background="Transparent" BorderBrush="Transparent"
Foreground="White" FontSize="16" FontWeight="Bold" />
<!-- Right Controller Button (RB) -->
<Image Source="Images/ctrl_bttn_RB.png"
VerticalAlignment="Center"
Height="20"
Margin="20,0,0,0" />
</StackPanel>
</Border>
<!-- Taskbar Right Section Overlay -->
<Border Height="50"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Width="300"
Background="#1C1C1C">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0">
<!-- Back Button -->
<Image Source="Images/ctrl_bttn_B.png"
VerticalAlignment="Center"
Height="20"
Margin="10,0,5,0" />
<TextBlock Text="Back" Foreground="White" FontSize="14" VerticalAlignment="Center" Margin="5,0,10,0" />
<!-- Select Button -->
<Image Source="Images/ctrl_bttn_A.png"
VerticalAlignment="Center"
Height="20"
Margin="10,0,5,0" />
<TextBlock Text="Select" Foreground="White" FontSize="14" VerticalAlignment="Center" Margin="5,0,10,0" />
</StackPanel>
</Border>
<!-- Taskbar Left Section Overlay -->
<Border Height="50"
VerticalAlignment="Bottom"
HorizontalAlignment="Left"
Width="150"
Background="Transparent">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0">
<!-- Guide Button -->
<Image Source="Images/ctrl_bttn_guide.png"
VerticalAlignment="Center"
Height="20"
Margin="10,0,5,0" />
<TextBlock Text="Close" Foreground="White" FontSize="14" VerticalAlignment="Center" Margin="5,0,0,0" />
<Button x:Name="GuideButton"
Content="Guide"
Width="0" Height="0" Visibility="Collapsed"
Click="GuideButton_Click" />
</StackPanel>
</Border>
<!-- Transparent Taskbar Cutout -->
<Rectangle Height="50"
VerticalAlignment="Bottom"
Fill="Transparent"
IsHitTestVisible="False" />
</Grid>
</Grid>
</Window>