Skip to content

Commit 1829498

Browse files
committed
update ui
更新文本提示和超链接,修改热键名称 在 `JsListPage.xaml` 文件中,更新了文本内容,增加了“建议在调度器中使用!”的提示。 在 `MapPathingPage.xaml` 文件中,更新了文本内容,增加了“建议在调度器中使用!”的提示,并添加了一个超链接,指向地图追踪使用教程。 在 `HotKeyPageViewModel.cs` 文件中,将热键设置模型的名称从“添加记录点”更改为“添加路径点”。 在 `MapPathingViewModel.cs` 文件中,新增了一个 `OnGoToPathingUrl` 方法,该方法通过超链接打开地图追踪使用教程的网页。
1 parent cb53c74 commit 1829498

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

BetterGenshinImpact/View/Pages/JsListPage.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<ui:TextBlock Grid.Row="1"
4141
Margin="0,0,0,8"
4242
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
43-
Text="可以通过 Javascript 调用 BetterGI 在原神中的各项能力,右键可以直接执行脚本"
43+
Text="可以通过 Javascript 调用 BetterGI 在原神中的各项能力,右键可以直接执行脚本。建议在调度器中使用!"
4444
TextWrapping="Wrap" />
4545

4646
<StackPanel Grid.Row="2" Orientation="Horizontal">

BetterGenshinImpact/View/Pages/MapPathingPage.xaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@
4040
<ui:TextBlock Grid.Row="1"
4141
Margin="0,0,0,8"
4242
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
43-
Text="可以实现自动采集(尝鲜)、自动挖矿(开发中)、自动锄地(开发中)等功能"
44-
TextWrapping="Wrap" />
43+
TextWrapping="Wrap">
44+
可以实现自动采集(尝鲜)、自动挖矿(开发中)、自动锄地(开发中)等功能。建议在调度器中使用!<Hyperlink Command="{Binding GoToPathingUrlCommand}" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
45+
点击查看地图追踪使用教程
46+
</Hyperlink>
47+
</ui:TextBlock>
4548

4649
<StackPanel Grid.Row="2" Orientation="Horizontal">
4750
<ui:Button Command="{Binding OpenScriptsFolderCommand}"

BetterGenshinImpact/ViewModel/Pages/HotKeyPageViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private void BuildHotKeySettingModelList()
415415
));
416416

417417
HotKeySettingModels.Add(new HotKeySettingModel(
418-
"添加记录点",
418+
"添加路径点",
419419
nameof(Config.HotKeyConfig.AddWaypointHotkey),
420420
Config.HotKeyConfig.AddWaypointHotkey,
421421
Config.HotKeyConfig.AddWaypointHotkeyType,

BetterGenshinImpact/ViewModel/Pages/MapPathingViewModel.cs

+6
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,10 @@ public void OnOpenMapViewer()
117117
_mapViewer ??= new MapViewer();
118118
_mapViewer.Show();
119119
}
120+
121+
[RelayCommand]
122+
public void OnGoToPathingUrl()
123+
{
124+
Process.Start(new ProcessStartInfo("https://bgi.huiyadan.com/autos/pathing.html") { UseShellExecute = true });
125+
}
120126
}

0 commit comments

Comments
 (0)