mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-06-23 23:00:23 -07:00
add cursor types to locale
This commit is contained in:
parent
f93ee425c2
commit
39e762253e
@ -2,11 +2,11 @@
|
||||
{
|
||||
static class CursorTypeEx
|
||||
{
|
||||
public static IReadOnlyDictionary<string, CursorType> Selections => new Dictionary<string, CursorType>
|
||||
public static IReadOnlyCollection<CursorType> Selections => new CursorType[]
|
||||
{
|
||||
{ "Default", CursorType.Default },
|
||||
{ "2013 (Angular)", CursorType.From2013 },
|
||||
{ "2006 (Cartoony)", CursorType.From2006 },
|
||||
CursorType.Default,
|
||||
CursorType.From2013,
|
||||
CursorType.From2006
|
||||
};
|
||||
}
|
||||
}
|
||||
|
27
Bloxstrap/Resources/Strings.Designer.cs
generated
27
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -864,6 +864,33 @@ namespace Bloxstrap.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Default.
|
||||
/// </summary>
|
||||
public static string Enums_CursorType_Default {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.CursorType.Default", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 2006 (Cartoony).
|
||||
/// </summary>
|
||||
public static string Enums_CursorType_From2006 {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.CursorType.From2006", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 2013 (Angular).
|
||||
/// </summary>
|
||||
public static string Enums_CursorType_From2013 {
|
||||
get {
|
||||
return ResourceManager.GetString("Enums.CursorType.From2013", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Catmoji.
|
||||
/// </summary>
|
||||
|
@ -387,6 +387,15 @@ 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.CursorType.Default" xml:space="preserve">
|
||||
<value>Default</value>
|
||||
</data>
|
||||
<data name="Enums.CursorType.From2006" xml:space="preserve">
|
||||
<value>2006 (Cartoony)</value>
|
||||
</data>
|
||||
<data name="Enums.CursorType.From2013" xml:space="preserve">
|
||||
<value>2013 (Angular)</value>
|
||||
</data>
|
||||
<data name="Enums.EmojiType.Catmoji" xml:space="preserve">
|
||||
<value>Catmoji</value>
|
||||
</data>
|
||||
|
@ -80,7 +80,13 @@
|
||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="{x:Static resources:Strings.Menu_Mods_Presets_MouseCursor_Description}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||
</StackPanel>
|
||||
</ui:CardControl.Header>
|
||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding CursorTypes.Keys, Mode=OneTime}" Text="{Binding SelectedCursorType, Mode=TwoWay}" />
|
||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding CursorTypes, Mode=OneTime}" Text="{Binding SelectedCursorType, Mode=TwoWay}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=., Converter={StaticResource ResourceConverter}, ConverterParameter='Enums.CursorType.'}" />
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
</ui:CardControl>
|
||||
|
||||
<ui:CardControl Margin="0,8,0,0">
|
||||
|
@ -62,12 +62,12 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
set => App.Settings.Prop.UseOldCharacterSounds = value;
|
||||
}
|
||||
|
||||
public IReadOnlyDictionary<string, Enums.CursorType> CursorTypes => CursorTypeEx.Selections;
|
||||
public IReadOnlyCollection<Enums.CursorType> CursorTypes => CursorTypeEx.Selections;
|
||||
|
||||
public string SelectedCursorType
|
||||
public Enums.CursorType SelectedCursorType
|
||||
{
|
||||
get => CursorTypes.FirstOrDefault(x => x.Value == App.Settings.Prop.CursorType).Key;
|
||||
set => App.Settings.Prop.CursorType = CursorTypes[value];
|
||||
get => App.Settings.Prop.CursorType;
|
||||
set => App.Settings.Prop.CursorType = value;
|
||||
}
|
||||
|
||||
public bool OldAvatarBackground
|
||||
|
Loading…
Reference in New Issue
Block a user