Skip to content

Commit

Permalink
edit text
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed May 2, 2024
1 parent 8bf6a39 commit a553dc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BetterGenshinImpact/View/Pages/MacroSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@
<ui:TextBlock Grid.Row="1"
Grid.Column="0"
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
Text="配置每个角色执行的宏,修改需重启软件生效,比如:胡桃A重跳"
TextWrapping="Wrap" />
TextWrapping="Wrap">
配置每个角色执行的宏,比如:胡桃A重跳,<Hyperlink Command="{Binding GoToOneKeyMacroUrlCommand}" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
点击查看说明
</Hyperlink>
</ui:TextBlock>
<ui:Button Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using BetterGenshinImpact.View.Windows;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Diagnostics;
using System.Windows.Input;
using Wpf.Ui;
using Wpf.Ui.Controls;
Expand Down Expand Up @@ -45,4 +46,10 @@ public void OnEditAvatarMacro()
{
JsonMonoDialog.Show(@"User\avatar_macro.json");
}

[RelayCommand]
public void OnGoToOneKeyMacroUrl()
{
Process.Start(new ProcessStartInfo("https://bgi.huiyadan.com/feats/onem.html") { UseShellExecute = true });
}
}

0 comments on commit a553dc2

Please sign in to comment.