This commit is contained in:
Isaac Marovitz 2023-05-19 17:45:35 -04:00 committed by Isaac Marovitz
parent 9bbee3041e
commit 71fa81017b
2 changed files with 62 additions and 54 deletions

View file

@ -25,6 +25,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
{ {
_isLeft = value; _isLeft = value;
OnPropertyChanged(); OnPropertyChanged();
OnPropertyChanged(nameof(HasSides));
} }
} }
@ -36,9 +37,12 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
{ {
_isRight = value; _isRight = value;
OnPropertyChanged(); OnPropertyChanged();
OnPropertyChanged(nameof(HasSides));
} }
} }
public bool HasSides => IsLeft ^ IsRight;
private SvgImage _image; private SvgImage _image;
public SvgImage Image public SvgImage Image
{ {

View file

@ -349,6 +349,9 @@
Width="25" Width="25"
Text="{Binding Config.TriggerThreshold, StringFormat=\{0:0.00\}}" /> Text="{Binding Config.TriggerThreshold, StringFormat=\{0:0.00\}}" />
</StackPanel> </StackPanel>
<StackPanel
Orientation="Vertical"
IsVisible="{Binding HasSides}">
<StackPanel <StackPanel
Margin="0,4,0,0" Margin="0,4,0,0"
HorizontalAlignment="Center" HorizontalAlignment="Center"
@ -422,6 +425,7 @@
</ToggleButton> </ToggleButton>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</StackPanel>
</Border> </Border>
<!-- Motion + Rumble --> <!-- Motion + Rumble -->
<StackPanel <StackPanel