Skip to content

Commit

Permalink
update: UI/UX
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Nov 23, 2024
1 parent 2a2acb5 commit 93640f0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BetterGenshinImpact/View/Pages/MapPathingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<ui:TextBlock Grid.Row="0"
Margin="0,0,0,8"
FontTypography="BodyStrong"
Text="地图追踪(实验功能)" />
Text="路径追踪(实验功能)" />
<ui:TextBlock Grid.Row="1"
Margin="0,0,0,8"
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
Expand Down
28 changes: 23 additions & 5 deletions BetterGenshinImpact/View/Pages/ScriptControlPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@
<Style TargetType="Border">
<Setter Property="Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Binding="{Binding SelectedScriptGroup, Converter={StaticResource NotNullConverter}}" Value="True">
<DataTrigger
Binding="{Binding SelectedScriptGroup, Converter={StaticResource NotNullConverter}}"
Value="True">
<Setter Property="Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
Expand All @@ -111,7 +113,9 @@
<ui:TextBlock Margin="0,0,0,8"
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
TextWrapping="Wrap">
在左侧栏目右键可以新增/修改配置组,拖拽进行配置组排序。配置组内可以添加并配置软件内的 Javascript 脚本、键鼠脚本等,并能够控制执行次数、顺序等,<Hyperlink Command="{Binding GoToScriptGroupUrlCommand}" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
在左侧栏目右键可以新增/修改配置组,拖拽进行配置组排序。配置组内可以添加并配置软件内的 Javascript 脚本、键鼠脚本等,并能够控制执行次数、顺序等,
<Hyperlink Command="{Binding GoToScriptGroupUrlCommand}"
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
点击查看调度器使用教程
</Hyperlink>
</ui:TextBlock>
Expand Down Expand Up @@ -190,6 +194,17 @@
<Separator Width="10" Opacity="0" />


<ui:DropDownButton Content="添加" Icon="{ui:SymbolIcon Add24}">
<ui:DropDownButton.Flyout>
<ContextMenu>
<MenuItem Header="JS脚本" Command="{Binding AddJsScriptCommand}" />
<MenuItem Header="路径追踪任务" Command="{Binding AddPathingCommand}" />
<MenuItem Header="键鼠脚本" Command="{Binding AddKmScriptCommand}" />
</ContextMenu>
</ui:DropDownButton.Flyout>
</ui:DropDownButton>
<Separator Width="10" Opacity="0" />

<ui:Button Command="{Binding OpenScriptGroupSettingsCommand}"
Content="设置"
Icon="{ui:SymbolIcon Settings24}" />
Expand Down Expand Up @@ -240,7 +255,8 @@
<GridViewColumn Width="{Binding ElementName=Col4, Path=ActualWidth}" Header="启用状态">
<GridViewColumn.CellTemplate>
<DataTemplate>
<ui:ToggleSwitch IsChecked="{Binding Status, Converter={StaticResource BooleanToEnableTextConverter}, Mode=TwoWay}" />
<ui:ToggleSwitch
IsChecked="{Binding Status, Converter={StaticResource BooleanToEnableTextConverter}, Mode=TwoWay}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
Expand All @@ -249,8 +265,8 @@
<ListView.ContextMenu>
<ContextMenu>
<MenuItem Command="{Binding AddJsScriptCommand}" Header="添加JS脚本" />
<MenuItem Command="{Binding AddKmScriptCommand}" Header="添加键鼠脚本" />
<MenuItem Command="{Binding AddPathingCommand}" Header="添加路径追踪任务" />
<MenuItem Command="{Binding AddKmScriptCommand}" Header="添加键鼠脚本" />
<MenuItem Command="{Binding EditScriptCommonCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.SelectedItem}"
Header="修改通用配置" />
Expand All @@ -261,7 +277,9 @@
<Style TargetType="MenuItem">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.SelectedItem.Type}" Value="Javascript">
<DataTrigger
Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.SelectedItem.Type}"
Value="Javascript">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
Expand Down
2 changes: 1 addition & 1 deletion BetterGenshinImpact/View/Pages/TriggerSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<ui:TextBlock Grid.Row="0"
Grid.Column="0"
FontTypography="Body"
Text="启用后台模式"
Text="启用后台模式(会只用交互键进行剧情)"
TextWrapping="Wrap" />
<ui:TextBlock Grid.Row="1"
Grid.Column="0"
Expand Down

0 comments on commit 93640f0

Please sign in to comment.