Skip to content

Commit

Permalink
update ui
Browse files Browse the repository at this point in the history
更新文本提示和超链接,修改热键名称

在 `JsListPage.xaml` 文件中,更新了文本内容,增加了“建议在调度器中使用!”的提示。
在 `MapPathingPage.xaml` 文件中,更新了文本内容,增加了“建议在调度器中使用!”的提示,并添加了一个超链接,指向地图追踪使用教程。
在 `HotKeyPageViewModel.cs` 文件中,将热键设置模型的名称从“添加记录点”更改为“添加路径点”。
在 `MapPathingViewModel.cs` 文件中,新增了一个 `OnGoToPathingUrl` 方法,该方法通过超链接打开地图追踪使用教程的网页。
  • Loading branch information
huiyadanli committed Sep 9, 2024
1 parent cb53c74 commit 1829498
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BetterGenshinImpact/View/Pages/JsListPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<ui:TextBlock Grid.Row="1"
Margin="0,0,0,8"
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
Text="可以通过 Javascript 调用 BetterGI 在原神中的各项能力,右键可以直接执行脚本"
Text="可以通过 Javascript 调用 BetterGI 在原神中的各项能力,右键可以直接执行脚本。建议在调度器中使用!"
TextWrapping="Wrap" />

<StackPanel Grid.Row="2" Orientation="Horizontal">
Expand Down
7 changes: 5 additions & 2 deletions BetterGenshinImpact/View/Pages/MapPathingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@
<ui:TextBlock Grid.Row="1"
Margin="0,0,0,8"
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
Text="可以实现自动采集(尝鲜)、自动挖矿(开发中)、自动锄地(开发中)等功能"
TextWrapping="Wrap" />
TextWrapping="Wrap">
可以实现自动采集(尝鲜)、自动挖矿(开发中)、自动锄地(开发中)等功能。建议在调度器中使用!<Hyperlink Command="{Binding GoToPathingUrlCommand}" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
点击查看地图追踪使用教程
</Hyperlink>
</ui:TextBlock>

<StackPanel Grid.Row="2" Orientation="Horizontal">
<ui:Button Command="{Binding OpenScriptsFolderCommand}"
Expand Down
2 changes: 1 addition & 1 deletion BetterGenshinImpact/ViewModel/Pages/HotKeyPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private void BuildHotKeySettingModelList()
));

HotKeySettingModels.Add(new HotKeySettingModel(
"添加记录点",
"添加路径点",
nameof(Config.HotKeyConfig.AddWaypointHotkey),
Config.HotKeyConfig.AddWaypointHotkey,
Config.HotKeyConfig.AddWaypointHotkeyType,
Expand Down
6 changes: 6 additions & 0 deletions BetterGenshinImpact/ViewModel/Pages/MapPathingViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,10 @@ public void OnOpenMapViewer()
_mapViewer ??= new MapViewer();
_mapViewer.Show();
}

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

0 comments on commit 1829498

Please sign in to comment.