mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 02:26:23 +02:00
Extended hotkeys to player1-8 + h, localized the overlay
This commit is contained in:
parent
ef0dac5533
commit
3ec079855d
16 changed files with 338 additions and 79 deletions
|
@ -1,3 +1,4 @@
|
|||
using Avalonia.Data.Converters;
|
||||
using Avalonia.Markup.Xaml.MarkupExtensions;
|
||||
using Projektanker.Icons.Avalonia;
|
||||
using Ryujinx.Ava.Common.Locale;
|
||||
|
@ -18,11 +19,19 @@ namespace Ryujinx.Ava.Common.Markup
|
|||
|
||||
internal class LocaleExtension(LocaleKeys key) : BasicMarkupExtension<string>
|
||||
{
|
||||
public IValueConverter Converter { get; set; }
|
||||
|
||||
public override string Name => "Translation";
|
||||
protected override string Value => LocaleManager.Instance[key];
|
||||
|
||||
protected override void ConfigureBindingExtension(CompiledBindingExtension bindingExtension)
|
||||
=> bindingExtension.Source = LocaleManager.Instance;
|
||||
{
|
||||
bindingExtension.Source = LocaleManager.Instance;
|
||||
if (Converter != null)
|
||||
{
|
||||
bindingExtension.Converter = Converter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal class WindowTitleExtension(LocaleKeys key, bool includeVersion) : BasicMarkupExtension<string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue