mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-27 16:47:11 +02:00
Controller overlay showing which player is bound to which controller
This commit is contained in:
parent
74a9b94227
commit
8765dc9901
3 changed files with 243 additions and 0 deletions
50
src/Ryujinx/UI/Windows/ControllerOverlayWindow.axaml
Normal file
50
src/Ryujinx/UI/Windows/ControllerOverlayWindow.axaml
Normal file
|
@ -0,0 +1,50 @@
|
|||
<window:StyleableAppWindow
|
||||
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"
|
||||
xmlns:window="clr-namespace:Ryujinx.Ava.UI.Windows"
|
||||
mc:Ignorable="d"
|
||||
d:DesignWidth="400"
|
||||
d:DesignHeight="300"
|
||||
x:Class="Ryujinx.Ava.UI.Windows.ControllerOverlayWindow"
|
||||
Title="Controller Overlay"
|
||||
Focusable="False"
|
||||
Topmost="True"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Width="400"
|
||||
Height="250"
|
||||
SizeToContent="Height">
|
||||
|
||||
<Border Background="#E0000000"
|
||||
CornerRadius="12"
|
||||
Padding="24"
|
||||
BorderBrush="#40FFFFFF"
|
||||
BorderThickness="1">
|
||||
<StackPanel Spacing="16">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Spacing="8">
|
||||
<TextBlock Text="🎮"
|
||||
FontSize="18"
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBlock Text="Controller Bindings"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Name="PlayerBindings" Spacing="10">
|
||||
<!-- Player bindings will be added programmatically -->
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Text="This overlay will disappear in a few seconds"
|
||||
FontSize="11"
|
||||
Foreground="#AAAAAA"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,8,0,0"
|
||||
FontStyle="Italic"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</window:StyleableAppWindow>
|
Loading…
Add table
Add a link
Reference in a new issue