0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2025-01-08 06:01:58 +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

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

View file

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