diff --git a/BetterGenshinImpact/App.xaml b/BetterGenshinImpact/App.xaml index 96b05cc2..b447b472 100644 --- a/BetterGenshinImpact/App.xaml +++ b/BetterGenshinImpact/App.xaml @@ -16,6 +16,7 @@ /Assets/Fonts/deluge-led.ttf#Deluge LED + diff --git a/BetterGenshinImpact/View/Converters/BooleanToEnableTextConverter.cs b/BetterGenshinImpact/View/Converters/BooleanToEnableTextConverter.cs new file mode 100644 index 00000000..cc959437 --- /dev/null +++ b/BetterGenshinImpact/View/Converters/BooleanToEnableTextConverter.cs @@ -0,0 +1,22 @@ +using System; +using System.Windows; +using System.Windows.Data; + +namespace BetterGenshinImpact.View.Converters; + +/// +/// ScriptGroupProjectExtensions +/// +[ValueConversion(typeof(bool), typeof(Visibility))] +public sealed class BooleanToEnableTextConverter : IValueConverter +{ + public object Convert(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture) + { + return value is "Enabled"; + } + + public object ConvertBack(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture) + { + return value is false ? "Disabled" : "Enabled"; + } +} diff --git a/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml b/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml index cfcc722a..e45fa0d4 100644 --- a/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml +++ b/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml @@ -100,10 +100,16 @@ - 左侧配置组栏目右键可以新增配置组,然后可以添加并配置软件内的 Javascript 脚本、键鼠脚本等,并能够控制执行次数、顺序等, + 在左侧栏目右键可以新增/修改配置组,拖拽进行配置组排序。配置组内可以添加并配置软件内的 Javascript 脚本、键鼠脚本等,并能够控制执行次数、顺序等, 点击查看调度器使用教程 + + - + + + + + + + - + @@ -238,12 +248,23 @@ Header="修改通用配置" /> + Header="修改JS脚本自定义配置"> + + + + - +