show button
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||
[ObservableProperty] private GamepadInputConfig _config;
|
||||
|
||||
private bool _isLeft;
|
||||
|
||||
public bool IsLeft
|
||||
{
|
||||
get => _isLeft;
|
||||
@@ -22,6 +23,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||
}
|
||||
|
||||
private bool _isRight;
|
||||
|
||||
public bool IsRight
|
||||
{
|
||||
get => _isRight;
|
||||
@@ -38,7 +40,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||
[ObservableProperty] private SvgImage _image;
|
||||
|
||||
public readonly InputViewModel ParentModel;
|
||||
|
||||
|
||||
[ObservableProperty] private string _leftStickPosition;
|
||||
|
||||
[ObservableProperty] private string _rightStickPosition;
|
||||
@@ -67,5 +69,10 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||
IsRight = ParentModel.IsRight;
|
||||
Image = ParentModel.Image;
|
||||
}
|
||||
|
||||
public void UpdateImage(string css)
|
||||
{
|
||||
Image = new SvgImage { Source = ParentModel.Image.Source, Css = css };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||
|
||||
image.Source = source;
|
||||
}
|
||||
|
||||
return image;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user