-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add speech info window to see the speech recognition result in game.
- Loading branch information
Tinyfish
committed
Jun 26, 2024
1 parent
114bfd3
commit 45ca993
Showing
4 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<Window x:Class="HellDivers2OneKeyStratagem.InfoWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
mc:Ignorable="d" | ||
|
||
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" | ||
ui:WindowHelper.UseModernWindowStyle="True" | ||
ui:WindowHelper.SystemBackdropType="Mica" | ||
|
||
WindowStartupLocation="CenterScreen" | ||
SizeToContent="WidthAndHeight" | ||
Topmost="True" | ||
ResizeMode="NoResize" | ||
|
||
Title="HellDivers2 一键战略信息" | ||
|
||
Closed="InfoWindow_OnClosed"> | ||
|
||
<StackPanel Margin="20,10,20,10"> | ||
<Label Name="InfoLabel" Content="暂无信息" /> | ||
</StackPanel> | ||
|
||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace HellDivers2OneKeyStratagem; | ||
|
||
public partial class InfoWindow() | ||
{ | ||
private readonly MainWindow _mainWindow = null!; | ||
|
||
public InfoWindow(MainWindow mainWindow): this() | ||
{ | ||
_mainWindow = mainWindow; | ||
|
||
InitializeComponent(); | ||
} | ||
|
||
public void SetInfo(string info) | ||
{ | ||
InfoLabel.Content = info; | ||
} | ||
|
||
private void InfoWindow_OnClosed(object? sender, EventArgs e) | ||
{ | ||
_mainWindow.NotifyInfoWindowClosed(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters