0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2025-01-09 15:51:59 +00:00

UI: Text in the shader translation slider tooltip

This commit is contained in:
Evan Husted 2024-12-30 00:09:19 -06:00
parent 8fd8a776c9
commit 8e4a77aba0
2 changed files with 4 additions and 2 deletions

View file

@ -301,6 +301,8 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
public string ShaderTranslationDelayTooltipText => $"Current value: {ShaderTranslationDelay}";
public int ShaderTranslationDelay public int ShaderTranslationDelay
{ {
get => _shaderTranslationSleepDelay; get => _shaderTranslationSleepDelay;
@ -308,7 +310,7 @@ namespace Ryujinx.Ava.UI.ViewModels
{ {
_shaderTranslationSleepDelay = value; _shaderTranslationSleepDelay = value;
OnPropertyChanged(); OnPropertiesChanged(nameof(ShaderTranslationDelay), nameof(ShaderTranslationDelayTooltipText));
} }
} }

View file

@ -56,7 +56,7 @@
</StackPanel> </StackPanel>
<Slider HorizontalAlignment="Center" <Slider HorizontalAlignment="Center"
Value="{Binding ShaderTranslationDelay}" Value="{Binding ShaderTranslationDelay}"
ToolTip.Tip="{Binding ShaderTranslationDelay}" ToolTip.Tip="{Binding ShaderTranslationDelayTooltipText}"
Width="175" Width="175"
Margin="0,-3,0,0" Margin="0,-3,0,0"
Height="32" Height="32"