mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add emoji types to locale
This commit is contained in:
parent
5edd0db80b
commit
f93ee425c2
@ -2,13 +2,13 @@
|
||||
{
|
||||
static class EmojiTypeEx
|
||||
{
|
||||
public static IReadOnlyDictionary<string, EmojiType> Selections => new Dictionary<string, EmojiType>
|
||||
public static IReadOnlyCollection<EmojiType> Selections => new EmojiType[]
|
||||
{
|
||||
{ "Default (Twemoji)", EmojiType.Default },
|
||||
{ "Catmoji", EmojiType.Catmoji },
|
||||
{ "Windows 11", EmojiType.Windows11 },
|
||||
{ "Windows 10", EmojiType.Windows10 },
|
||||
{ "Windows 8", EmojiType.Windows8 },
|
||||
EmojiType.Default,
|
||||
EmojiType.Catmoji,
|
||||
EmojiType.Windows11,
|
||||
EmojiType.Windows10,
|
||||
EmojiType.Windows8
|
||||
};
|
||||
|
||||
public static IReadOnlyDictionary<EmojiType, string> Filenames => new Dictionary<EmojiType, string>
|
||||
|
45
Bloxstrap/Resources/Strings.Designer.cs
generated
45
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -864,6 +864,51 @@ namespace Bloxstrap.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Catmoji.
|
||||
/// </summary>
|
||||
public static string Enums_EmojiType_Catmoji {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.EmojiType.Catmoji", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Default (Twemoji).
|
||||
/// </summary>
|
||||
public static string Enums_EmojiType_Default {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.EmojiType.Default", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Windows 10.
|
||||
/// </summary>
|
||||
public static string Enums_EmojiType_Windows10 {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.EmojiType.Windows10", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Windows 11.
|
||||
/// </summary>
|
||||
public static string Enums_EmojiType_Windows11 {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.EmojiType.Windows11", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Windows 8.
|
||||
/// </summary>
|
||||
public static string Enums_EmojiType_Windows8 {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.EmojiType.Windows8", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Default.
|
||||
/// </summary>
|
||||
|
@ -387,6 +387,21 @@ Your ReShade configuration files will still be saved, and you can locate them by
|
||||
<data name="Enums.ChannelChangeMode.Prompt" xml:space="preserve">
|
||||
<value>Always prompt</value>
|
||||
</data>
|
||||
<data name="Enums.EmojiType.Catmoji" xml:space="preserve">
|
||||
<value>Catmoji</value>
|
||||
</data>
|
||||
<data name="Enums.EmojiType.Default" xml:space="preserve">
|
||||
<value>Default (Twemoji)</value>
|
||||
</data>
|
||||
<data name="Enums.EmojiType.Windows10" xml:space="preserve">
|
||||
<value>Windows 10</value>
|
||||
</data>
|
||||
<data name="Enums.EmojiType.Windows11" xml:space="preserve">
|
||||
<value>Windows 11</value>
|
||||
</data>
|
||||
<data name="Enums.EmojiType.Windows8" xml:space="preserve">
|
||||
<value>Windows 8</value>
|
||||
</data>
|
||||
<data name="Enums.FlagPresets.InGameMenuVersion.Default" xml:space="preserve">
|
||||
<value>Default</value>
|
||||
</data>
|
||||
|
@ -120,7 +120,13 @@
|
||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="{x:Static resources:Strings.Menu_Mods_Presets_EmojiType_Description}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||
</StackPanel>
|
||||
</ui:CardControl.Header>
|
||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding EmojiTypes.Keys, Mode=OneTime}" Text="{Binding SelectedEmojiType, Mode=TwoWay}" />
|
||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding EmojiTypes, Mode=OneTime}" Text="{Binding SelectedEmojiType, Mode=TwoWay}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=., Converter={StaticResource ResourceConverter}, ConverterParameter='Enums.EmojiType.'}" />
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
</ui:CardControl>
|
||||
|
||||
<TextBlock Text="{x:Static resources:Strings.Common_Miscellaneous}" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
||||
|
@ -82,12 +82,12 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
set => App.Settings.Prop.UseDisableAppPatch = value;
|
||||
}
|
||||
|
||||
public IReadOnlyDictionary<string, EmojiType> EmojiTypes => EmojiTypeEx.Selections;
|
||||
public IReadOnlyCollection<EmojiType> EmojiTypes => EmojiTypeEx.Selections;
|
||||
|
||||
public string SelectedEmojiType
|
||||
public EmojiType SelectedEmojiType
|
||||
{
|
||||
get => EmojiTypes.FirstOrDefault(x => x.Value == App.Settings.Prop.EmojiType).Key;
|
||||
set => App.Settings.Prop.EmojiType = EmojiTypes[value];
|
||||
get => App.Settings.Prop.EmojiType;
|
||||
set => App.Settings.Prop.EmojiType = value;
|
||||
}
|
||||
|
||||
public Visibility ChooseCustomFontVisibility => _usingCustomFont ? Visibility.Collapsed : Visibility.Visible;
|
||||
|
Loading…
Reference in New Issue
Block a user