RumbleInputView.axaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <UserControl
  2. xmlns="https://github.com/avaloniaui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:controls="clr-namespace:Ryujinx.Ava.UI.Controls"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  8. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels.Input"
  9. mc:Ignorable="d"
  10. x:Class="Ryujinx.Ava.UI.Views.Input.RumbleInputView"
  11. x:DataType="viewModels:RumbleInputViewModel"
  12. Focusable="True">
  13. <Grid Margin="10">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition />
  17. </Grid.RowDefinitions>
  18. <StackPanel Orientation="Vertical">
  19. <StackPanel Orientation="Horizontal">
  20. <TextBlock
  21. Width="100"
  22. TextWrapping="WrapWithOverflow"
  23. HorizontalAlignment="Center"
  24. Text="{locale:Locale ControllerSettingsRumbleStrongMultiplier}" />
  25. <controls:SliderScroll
  26. Margin="0,-5,0,-5"
  27. Width="200"
  28. TickFrequency="0.01"
  29. IsSnapToTickEnabled="True"
  30. SmallChange="0.01"
  31. Maximum="10"
  32. Minimum="0"
  33. Value="{Binding StrongRumble, Mode=TwoWay}" />
  34. <TextBlock
  35. VerticalAlignment="Center"
  36. Margin="5,0"
  37. Text="{Binding StrongRumble, StringFormat=\{0:0.00\}}" />
  38. </StackPanel>
  39. <StackPanel Orientation="Horizontal">
  40. <TextBlock
  41. Width="100"
  42. TextWrapping="WrapWithOverflow"
  43. HorizontalAlignment="Center"
  44. Text="{locale:Locale ControllerSettingsRumbleWeakMultiplier}" />
  45. <controls:SliderScroll
  46. Margin="0,-5,0,-5"
  47. Width="200"
  48. MaxWidth="200"
  49. Maximum="10"
  50. TickFrequency="0.01"
  51. IsSnapToTickEnabled="True"
  52. SmallChange="0.01"
  53. Minimum="0"
  54. Value="{Binding WeakRumble, Mode=TwoWay}" />
  55. <TextBlock
  56. VerticalAlignment="Center"
  57. Margin="5,0"
  58. Text="{Binding WeakRumble, StringFormat=\{0:0.00\}}" />
  59. </StackPanel>
  60. </StackPanel>
  61. </Grid>
  62. </UserControl>