统计列表翻译相应内容

This commit is contained in:
ZouJin 2023-10-27 16:43:20 +08:00
parent a5ac52244b
commit 5622ef495c
6 changed files with 352 additions and 383 deletions

View File

@ -104,7 +104,7 @@ namespace VPet_Simulator.Windows
public void ShowPanel()
{
var panelWindow = new winCharacterPanel(mw);
panelWindow.ShowDialog();
panelWindow.Show();
}
public double ZoomRatio => mw.Set.ZoomLevel;

View File

@ -1,382 +1,203 @@
<pu:WindowX
x:Class="VPet_Simulator.Windows.winCharacterPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
xmlns:local="clr-namespace:VPet_Simulator.Windows"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
Title="{ll:Str 面板}"
Width="500"
Height="500"
Style="{DynamicResource BaseWindowXStyle}"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Window.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</Window.Resources>
<TabControl
x:Name="MainTab"
Grid.Column="1"
Margin="5"
pu:TabControlHelper.CanHeaderPanelScroll="True"
pu:TabControlHelper.ItemsCornerRadius="4"
pu:TabControlHelper.ItemsHeight="NaN"
pu:TabControlHelper.ItemsHoverBackground="{DynamicResource PrimaryLight}"
pu:TabControlHelper.ItemsPadding="10,7"
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource PrimaryDark}"
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}"
Background="Transparent"
BorderThickness="0"
Foreground="{DynamicResource PrimaryText}"
SelectedIndex="0">
<TabControl.ContentTemplate>
<DataTemplate>
<Border
Margin="0,5,0,5"
Background="{DynamicResource DARKPrimaryText}"
CornerRadius="15">
<ContentControl Margin="0,0" Content="{Binding}" />
</Border>
</DataTemplate>
</TabControl.ContentTemplate>
<TabItem Header="{ll:Str 统计面板}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBox
x:Name="TextBox_Search"
pu:TextBoxHelper.Watermark="{ll:Str 搜索统计}"
Style="{DynamicResource StandardTextBoxStyle}"
TextChanged="TextBox_Search_TextChanged" />
<DataGrid
x:Name="DataGridStatic"
Grid.Row="1"
Margin="0,5,0,0"
d:ItemsSource="{d:SampleData ItemCount=5}"
AutoGenerateColumns="False"
CanUserAddRows="False">
<DataGrid.RowStyle>
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
<Setter Property="ToolTip" Value="{Binding StatId}" />
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding StatName}"
ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"
Header="{ll:Str 名称}"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding StatCount}"
ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"
Header="{ll:Str 数量}"
IsReadOnly="True" />
</DataGrid.Columns>
</DataGrid>
</Grid>
<pu:WindowX x:Class="VPet_Simulator.Windows.winCharacterPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
xmlns:local="clr-namespace:VPet_Simulator.Windows"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" Title="{ll:Str 面板}" Width="500" Height="500"
Style="{DynamicResource BaseWindowXStyle}" WindowStartupLocation="CenterScreen" mc:Ignorable="d">
<Window.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style x:Key="DataGridTextColumnLeftSytle" TargetType="{x:Type TextBlock}">
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</Window.Resources>
<TabControl x:Name="MainTab" Grid.Column="1" Margin="5" pu:TabControlHelper.CanHeaderPanelScroll="True"
pu:TabControlHelper.ItemsCornerRadius="4" pu:TabControlHelper.ItemsHeight="NaN"
pu:TabControlHelper.ItemsHoverBackground="{DynamicResource PrimaryLight}"
pu:TabControlHelper.ItemsPadding="10,7"
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource PrimaryDark}"
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}" Background="Transparent"
BorderThickness="0" Foreground="{DynamicResource PrimaryText}" SelectedIndex="0">
<TabControl.ContentTemplate>
<DataTemplate>
<Border Margin="0,5,0,5" Background="{DynamicResource DARKPrimaryText}" CornerRadius="15">
<ContentControl Margin="0,0" Content="{Binding}" />
</Border>
</DataTemplate>
</TabControl.ContentTemplate>
<TabItem Header="{ll:Str 统计面板}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBox x:Name="TextBox_Search" pu:TextBoxHelper.Watermark="{ll:Str 搜索统计}"
Style="{DynamicResource StandardTextBoxStyle}" TextChanged="TextBox_Search_TextChanged" />
<DataGrid x:Name="DataGridStatic" Grid.Row="1" Margin="0,5,0,0"
d:ItemsSource="{d:SampleData ItemCount=5}" AutoGenerateColumns="False" CanUserAddRows="False">
<DataGrid.RowStyle>
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
<Setter Property="ToolTip" Value="{Binding StatId}" />
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding StatName}"
ElementStyle="{StaticResource DataGridTextColumnLeftSytle}" Header="{ll:Str 名称}"
IsReadOnly="True" Width="300">
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding StatCount}"
ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" Header="{ll:Str 数量}"
IsReadOnly="True" Width="160"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
</TabItem>
<TabItem Header="{ll:Str 详情面板}" Visibility="Collapsed">
<ScrollViewer>
<Grid Margin="15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="7" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--<Label Grid.Column="3" Width="14" Height="14" Background="Transparent" Foreground="{DynamicResource PrimaryText}" Padding="0" VerticalContentAlignment="Center" FontSize="10"
</TabItem>
<TabItem Header="{ll:Str 详情面板}" Visibility="Collapsed">
<ScrollViewer>
<Grid Margin="15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="7" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--<Label Grid.Column="3" Width="14" Height="14" Background="Transparent" Foreground="{DynamicResource PrimaryText}" Padding="0" VerticalContentAlignment="Center" FontSize="10"
HorizontalContentAlignment="Center" BorderBrush="{DynamicResource PrimaryText}" BorderThickness="1" pu:LabelHelper.CornerRadius="7" Content="i" />-->
<TextBlock
Margin="0,10,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="金钱:" />
<StackPanel Grid.Column="2">
<TextBlock
FontSize="20"
Foreground="{DynamicResource DARKPrimary}"
Text="$100,000" />
<TextBlock
Margin="5,0,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="钱不是万能的,没钱是万万不能的" />
</StackPanel>
<TextBlock
x:Name="txtHearth"
Grid.Row="1"
Margin="0,13,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="健康值:"
Visibility="Collapsed" />
<StackPanel
x:Name="stkHearth"
Grid.Row="1"
Grid.Column="2"
Margin="0,10,0,0"
Visibility="Collapsed">
<ProgressBar
Height="20"
pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbHearth_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True"
Background="Transparent"
BorderBrush="{DynamicResource DangerProgressBarForeground}"
BorderThickness="1.5"
FontSize="10"
Foreground="{DynamicResource DangerProgressBarForeground}"
Value="50" />
<TextBlock
Margin="0,5,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="宠物已经生病。通过服用药物可以恢复健康状态。"
TextWrapping="Wrap" />
</StackPanel>
<TextBlock
Grid.Row="2"
Margin="0,13,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="等级:" />
<StackPanel
Grid.Row="2"
Grid.Column="2"
Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock
FontSize="16"
Foreground="{DynamicResource PrimaryText}"
Text="Lv 10" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Bottom"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}"
Text="x1 经验速率" />
</Grid>
<ProgressBar
Height="20"
Margin="0,5,0,0"
pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbExperience_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True"
Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}"
BorderThickness="1.5"
FontSize="10"
Foreground="{DynamicResource ProgressBarForeground}"
Value="50" />
<TextBlock
Margin="3,5,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="等级越高, 学习和打工收益更高"
TextWrapping="Wrap" />
</StackPanel>
<TextBlock
Grid.Row="3"
Margin="0,13,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="体力:" />
<StackPanel
Grid.Row="3"
Grid.Column="2"
Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="恢复中(自然恢复)" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Bottom"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}"
Text="+1/tick" />
</Grid>
<ProgressBar
Height="20"
Margin="0,5,0,0"
pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbExperience_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True"
Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}"
BorderThickness="1.5"
FontSize="10"
Foreground="{DynamicResource ProgressBarForeground}"
Value="50" />
<TextBlock
Margin="0,5,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="睡觉可以快速恢复体力。饱腹度低于50时无法自然恢复体力。"
TextWrapping="Wrap" />
</StackPanel>
<TextBlock
Grid.Row="4"
Margin="0,13,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="心情:" />
<StackPanel
Grid.Row="4"
Grid.Column="2"
Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="-" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Bottom"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}"
Text="+1/tick" />
</Grid>
<ProgressBar
Height="20"
Margin="0,5,0,0"
pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbSpirit_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True"
Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}"
BorderThickness="1.5"
FontSize="10"
Foreground="{DynamicResource ProgressBarForeground}"
Value="60" />
<TextBlock
Margin="0,5,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="摸头可以恢复心情。心情低于75时无法获得经验加成。"
TextWrapping="Wrap" />
</StackPanel>
<TextBlock
Grid.Row="5"
Margin="0,13,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="饱腹度:" />
<StackPanel
Grid.Row="5"
Grid.Column="2"
Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="下降中(自然下降)" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Bottom"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}"
Text="+1/tick" />
</Grid>
<ProgressBar
Height="20"
Margin="0,5,0,0"
pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbHunger_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True"
Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}"
BorderThickness="1.5"
FontSize="10"
Foreground="{DynamicResource ProgressBarForeground}"
Value="80" />
<TextBlock
Margin="0,5,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="进食可以快速恢复饱腹度。"
TextWrapping="Wrap" />
</StackPanel>
<TextBlock
Grid.Row="6"
Margin="0,13,0,0"
VerticalAlignment="Top"
FontWeight="Heavy"
Text="口渴度:" />
<StackPanel
Grid.Row="6"
Grid.Column="2"
Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="下降中(自然下降)" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Bottom"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}"
Text="+1/tick" />
</Grid>
<ProgressBar
Height="20"
Margin="0,5,0,0"
pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbThirsty_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True"
Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}"
BorderThickness="1.5"
FontSize="10"
Foreground="{DynamicResource ProgressBarForeground}"
Value="20" />
<TextBlock
Grid.Column="2"
Margin="0,5,0,10"
Foreground="{DynamicResource PrimaryText}"
Opacity="0.5"
Text="喝水可以快速恢复口渴度。口渴度低于25时宠物会生病。"
TextWrapping="Wrap" />
</StackPanel>
</Grid>
</ScrollViewer>
</TabItem>
</TabControl>
<TextBlock Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Heavy" Text="金钱:" />
<StackPanel Grid.Column="2">
<TextBlock FontSize="20" Foreground="{DynamicResource DARKPrimary}" Text="$100,000" />
<TextBlock Margin="5,0,0,10" Foreground="{DynamicResource PrimaryText}" Opacity="0.5"
Text="钱不是万能的,没钱是万万不能的" />
</StackPanel>
<TextBlock x:Name="txtHearth" Grid.Row="1" Margin="0,13,0,0" VerticalAlignment="Top"
FontWeight="Heavy" Text="健康值:" Visibility="Collapsed" />
<StackPanel x:Name="stkHearth" Grid.Row="1" Grid.Column="2" Margin="0,10,0,0" Visibility="Collapsed">
<ProgressBar Height="20" pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbHearth_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True" Background="Transparent"
BorderBrush="{DynamicResource DangerProgressBarForeground}" BorderThickness="1.5"
FontSize="10" Foreground="{DynamicResource DangerProgressBarForeground}" Value="50" />
<TextBlock Margin="0,5,0,10" Foreground="{DynamicResource PrimaryText}" Opacity="0.5"
Text="宠物已经生病。通过服用药物可以恢复健康状态。" TextWrapping="Wrap" />
</StackPanel>
<TextBlock Grid.Row="2" Margin="0,13,0,0" VerticalAlignment="Top" FontWeight="Heavy" Text="等级:" />
<StackPanel Grid.Row="2" Grid.Column="2" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock FontSize="16" Foreground="{DynamicResource PrimaryText}" Text="Lv 10" />
<TextBlock Grid.Column="2" VerticalAlignment="Bottom" FontSize="14" FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}" Text="x1 经验速率" />
</Grid>
<ProgressBar Height="20" Margin="0,5,0,0" pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbExperience_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True" Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}" BorderThickness="1.5"
FontSize="10" Foreground="{DynamicResource ProgressBarForeground}" Value="50" />
<TextBlock Margin="3,5,0,10" Foreground="{DynamicResource PrimaryText}" Opacity="0.5"
Text="等级越高, 学习和打工收益更高" TextWrapping="Wrap" />
</StackPanel>
<TextBlock Grid.Row="3" Margin="0,13,0,0" VerticalAlignment="Top" FontWeight="Heavy" Text="体力:" />
<StackPanel Grid.Row="3" Grid.Column="2" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="恢复中(自然恢复)" />
<TextBlock Grid.Column="2" VerticalAlignment="Bottom" FontSize="14" FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}" Text="+1/tick" />
</Grid>
<ProgressBar Height="20" Margin="0,5,0,0" pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbExperience_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True" Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}" BorderThickness="1.5"
FontSize="10" Foreground="{DynamicResource ProgressBarForeground}" Value="50" />
<TextBlock Margin="0,5,0,10" Foreground="{DynamicResource PrimaryText}" Opacity="0.5"
Text="睡觉可以快速恢复体力。饱腹度低于50时无法自然恢复体力。" TextWrapping="Wrap" />
</StackPanel>
<TextBlock Grid.Row="4" Margin="0,13,0,0" VerticalAlignment="Top" FontWeight="Heavy" Text="心情:" />
<StackPanel Grid.Row="4" Grid.Column="2" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="-" />
<TextBlock Grid.Column="2" VerticalAlignment="Bottom" FontSize="14" FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}" Text="+1/tick" />
</Grid>
<ProgressBar Height="20" Margin="0,5,0,0" pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbSpirit_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True" Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}" BorderThickness="1.5"
FontSize="10" Foreground="{DynamicResource ProgressBarForeground}" Value="60" />
<TextBlock Margin="0,5,0,10" Foreground="{DynamicResource PrimaryText}" Opacity="0.5"
Text="摸头可以恢复心情。心情低于75时无法获得经验加成。" TextWrapping="Wrap" />
</StackPanel>
<TextBlock Grid.Row="5" Margin="0,13,0,0" VerticalAlignment="Top" FontWeight="Heavy" Text="饱腹度:" />
<StackPanel Grid.Row="5" Grid.Column="2" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="下降中(自然下降)" />
<TextBlock Grid.Column="2" VerticalAlignment="Bottom" FontSize="14" FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}" Text="+1/tick" />
</Grid>
<ProgressBar Height="20" Margin="0,5,0,0" pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbHunger_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True" Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}" BorderThickness="1.5"
FontSize="10" Foreground="{DynamicResource ProgressBarForeground}" Value="80" />
<TextBlock Margin="0,5,0,10" Foreground="{DynamicResource PrimaryText}" Opacity="0.5"
Text="进食可以快速恢复饱腹度。" TextWrapping="Wrap" />
</StackPanel>
<TextBlock Grid.Row="6" Margin="0,13,0,0" VerticalAlignment="Top" FontWeight="Heavy" Text="口渴度:" />
<StackPanel Grid.Row="6" Grid.Column="2" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Foreground="{DynamicResource PrimaryText}" Text="下降中(自然下降)" />
<TextBlock Grid.Column="2" VerticalAlignment="Bottom" FontSize="14" FontWeight="Bold"
Foreground="{DynamicResource DARKPrimary}" Text="+1/tick" />
</Grid>
<ProgressBar Height="20" Margin="0,5,0,0" pu:ProgressBarHelper.CornerRadius="4"
pu:ProgressBarHelper.GeneratingPercentText="PgbThirsty_GeneratingPercentText"
pu:ProgressBarHelper.IsPercentVisible="True" Background="Transparent"
BorderBrush="{DynamicResource ProgressBarForeground}" BorderThickness="1.5"
FontSize="10" Foreground="{DynamicResource ProgressBarForeground}" Value="20" />
<TextBlock Grid.Column="2" Margin="0,5,0,10" Foreground="{DynamicResource PrimaryText}"
Opacity="0.5" Text="喝水可以快速恢复口渴度。口渴度低于25时宠物会生病。" TextWrapping="Wrap" />
</StackPanel>
</Grid>
</ScrollViewer>
</TabItem>
</TabControl>
</pu:WindowX>

View File

@ -24,7 +24,7 @@ namespace VPet_Simulator.Windows
foreach (var v in mw.GameSavesData.Statistics.Data)
{
StatList.Add(new StatInfo(v.Key, v.Value));
StatList.Add(new StatInfo(v.Key, v.Value.GetDouble()));
}
DataGridStatic.ItemsSource = StatList;
}
@ -33,13 +33,17 @@ namespace VPet_Simulator.Windows
private class StatInfo
{
public StatInfo(string statId, string statCount)
public StatInfo(string statId, double statCount)
{
StatId = statId;
StatCount = statCount;
if (statId.StartsWith("buy_"))
{
StatName = "购买次数".Translate() + statId.Substring(3);
StatName = "购买次数".Translate() + '_' + statId.Substring(4).Translate();
}
else if (statId.StartsWith("stat_"))
{
StatName = "统计".Translate() + '_' + statId.Substring(5).Translate();
}
else
{
@ -60,7 +64,7 @@ namespace VPet_Simulator.Windows
/// <summary>
/// 统计内容
/// </summary>
public string StatCount { get; set; }
public double StatCount { get; set; }
}
private void PgbExperience_GeneratingPercentText(
@ -156,6 +160,9 @@ namespace VPet_Simulator.Windows
i.StatName.IndexOf(
textBox.Text,
StringComparison.InvariantCultureIgnoreCase
) >= 0 || i.StatId.IndexOf(
textBox.Text,
StringComparison.InvariantCultureIgnoreCase
) >= 0
);
}

View File

@ -0,0 +1,47 @@
统计面板#Statistics Panel:|
搜索统计#Search Statistics:|
数量#Quantity:|
详情面板#Details Panel:|
购买次数#Purchase:|
统计#Statistics:|
0_feel#Mood is 0:|
0_sd_sf#Hungry and thirsty at the same time is 0:|
0_strengthdrink#Thirst 0:|
0_strengthfood#Hunger is 0:|
100_all#Number of full states:|
ill_nomoney#Sick with no money:|
sleep_time#Sleeping time:|
autobuy#Number of automatic purchases:|
bb_drink#Drinks total cost:|
bb_drug_exp#Drugs total experience:|
bb_drug#Drugs Total Spend:|
bb_functional#Functionality Total Spend:|
bb_gift#Gift Total Cost:|
bb_gift_like#Gift Total Favor:|
bb_meal#Meal Totals:|
bb_snack#Snacks Total:|
betterbuy#Better Buys Total:|
buytimes#Better Buys Purchase Count:|
level#Level:|
level_g_money#Rank is greater than money:|
likability#Favorability:|
menu_pop#Number of times the taskbar has been opened:|
money#Money:|
move_length#Movement distance (px):|
music#Number of times music is danced to:|
open_times#Game startup times:|
say_exp_p#Talking experience value increase:|
say_exp_d#Decrease in talk experience:|
say_like_p#Talking favor increase:|
say_like_d#Talking favor decreases:|
say_money_p#Talking money increased:|
say_money_d#Talking money decreases:|
say_times#Speaking times:|
single_profit_exp#Experience gained per job:|
single_profit_money#Money gained in a single session of work:|
sleep_time#Sleeping time (sec):|
study_time#Study time (sec):|
total_time#Total time (sec):|
touch_body#Number of times you touch your body:|
touch_head#Number of times you touch your head:|
work_time#Working time (sec):|

View File

@ -0,0 +1,47 @@
统计面板#统计面板:|
搜索统计#搜索统计:|
数量#数量:|
详情面板#详情面板:|
购买次数#购买次数:|
统计#统计:|
0_feel#心情为0:|
0_sd_sf#饥饿同时口渴为0:|
0_strengthdrink#口渴为0:|
0_strengthfood#饥饿为0:|
100_all#满状态次数:|
ill_nomoney#生病且没钱:|
sleep_time#睡觉时间:|
autobuy#自动购买次数:|
bb_drink#饮料总计花费:|
bb_drug_exp#药品总计经验:|
bb_drug#药品总计花费:|
bb_functional#功能性总计花费:|
bb_gift#礼物总计花费:|
bb_gift_like#礼物总计好感:|
bb_meal#正餐总计花费:|
bb_snack#零食总计花费:|
betterbuy#更好买总计花费:|
buytimes#更好买购买次数:|
level#等级:|
level_g_money#等级大于金钱:|
likability#好感度:|
menu_pop#任务栏打开次数:|
money#金钱:|
move_length#移动距离(px):|
music#音乐跳舞次数:|
open_times#游戏启动次数:|
say_exp_p#说话经验值增加次数:|
say_exp_d#说话经验值减少次数:|
say_like_p#说话好感增加次数:|
say_like_d#说话好感减少次数:|
say_money_p#说话金钱增加次数:|
say_money_d#说话金钱减少次数:|
say_times#说话次数:|
single_profit_exp#工作单次获得经验值:|
single_profit_money#工作单次获得金钱:|
sleep_time#睡觉时间(秒):|
study_time#学习时间(秒):|
total_time#总计时间(秒):|
touch_body#摸身体次数:|
touch_head#摸头次数:|
work_time#工作时间(秒):|

View File

@ -0,0 +1,47 @@
统计面板#統計面板:|
搜索统计#蒐索統計:|
数量#數量:|
详情面板#詳情面板:|
购买次数#購買次數:|
统计#統計:|
0_feel#心情為0:|
0_sd_sf#饑餓同時口渴為0:|
0_strengthdrink#口渴為0:|
0_strengthfood#饑餓為0:|
100_all#滿狀態次數:|
ill_nomoney#生病且沒錢:|
sleep_time#睡覺時間:|
autobuy#自動購買次數:|
bb_drink#飲料總計花費:|
bb_drug_exp#藥品總計經驗:|
bb_drug#藥品總計花費:|
bb_functional#功能性總計花費:|
bb_gift#禮物總計花費:|
bb_gift_like#禮物總計好感:|
bb_meal#正餐總計花費:|
bb_snack#零食總計花費:|
betterbuy#更好買總計花費:|
buytimes#更好買購買次數:|
level#等級:|
level_g_money#等級大於金錢:|
likability#好感度:|
menu_pop#工作列打開次數:|
money#金錢:|
move_length#移動距離px:|
music#音樂跳舞次數:|
open_times#遊戲啟動次數:|
say_exp_p#說話經驗值新增次數:|
say_exp_d#說話經驗值减少次數:|
say_like_p#說話好感新增次數:|
say_like_d#說話好感减少次數:|
say_money_p#說話金錢新增次數:|
say_money_d#說話金錢减少次數:|
say_times#說話次數:|
single_profit_exp#工作單次獲得經驗值:|
single_profit_money#工作單次獲得金錢:|
sleep_time#睡覺時間(秒):|
study_time#學習時間(秒):|
total_time#總計時間(秒):|
touch_body#摸身體次數:|
touch_head#摸頭次數:|
work_time#工作時間(秒):|