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
|
static class CursorTypeEx
|
||||||
{
|
{
|
||||||
public static IReadOnlyDictionary<string, CursorType> Selections => new Dictionary<string, CursorType>
|
public static IReadOnlyCollection<CursorType> Selections => new CursorType[]
|
||||||
{
|
{
|
||||||
{ "Default", CursorType.Default },
|
CursorType.Default,
|
||||||
{ "2013 (Angular)", CursorType.From2013 },
|
CursorType.From2013,
|
||||||
{ "2006 (Cartoony)", CursorType.From2006 },
|
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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Catmoji.
|
/// Looks up a localized string similar to Catmoji.
|
||||||
/// </summary>
|
/// </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">
|
<data name="Enums.ChannelChangeMode.Prompt" xml:space="preserve">
|
||||||
<value>Always prompt</value>
|
<value>Always prompt</value>
|
||||||
</data>
|
</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">
|
<data name="Enums.EmojiType.Catmoji" xml:space="preserve">
|
||||||
<value>Catmoji</value>
|
<value>Catmoji</value>
|
||||||
</data>
|
</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}" />
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="{x:Static resources:Strings.Menu_Mods_Presets_MouseCursor_Description}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:CardControl.Header>
|
</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>
|
||||||
|
|
||||||
<ui:CardControl Margin="0,8,0,0">
|
<ui:CardControl Margin="0,8,0,0">
|
||||||
|
@ -62,12 +62,12 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
|||||||
set => App.Settings.Prop.UseOldCharacterSounds = value;
|
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;
|
get => App.Settings.Prop.CursorType;
|
||||||
set => App.Settings.Prop.CursorType = CursorTypes[value];
|
set => App.Settings.Prop.CursorType = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool OldAvatarBackground
|
public bool OldAvatarBackground
|
||||||
|
Loading…
Reference in New Issue
Block a user