统计列表翻译相应内容

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() public void ShowPanel()
{ {
var panelWindow = new winCharacterPanel(mw); var panelWindow = new winCharacterPanel(mw);
panelWindow.ShowDialog(); panelWindow.Show();
} }
public double ZoomRatio => mw.Set.ZoomLevel; public double ZoomRatio => mw.Set.ZoomLevel;

View File

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

View File

@ -24,7 +24,7 @@ namespace VPet_Simulator.Windows
foreach (var v in mw.GameSavesData.Statistics.Data) 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; DataGridStatic.ItemsSource = StatList;
} }
@ -33,13 +33,17 @@ namespace VPet_Simulator.Windows
private class StatInfo private class StatInfo
{ {
public StatInfo(string statId, string statCount) public StatInfo(string statId, double statCount)
{ {
StatId = statId; StatId = statId;
StatCount = statCount; StatCount = statCount;
if (statId.StartsWith("buy_")) 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 else
{ {
@ -60,7 +64,7 @@ namespace VPet_Simulator.Windows
/// <summary> /// <summary>
/// 统计内容 /// 统计内容
/// </summary> /// </summary>
public string StatCount { get; set; } public double StatCount { get; set; }
} }
private void PgbExperience_GeneratingPercentText( private void PgbExperience_GeneratingPercentText(
@ -156,6 +160,9 @@ namespace VPet_Simulator.Windows
i.StatName.IndexOf( i.StatName.IndexOf(
textBox.Text, textBox.Text,
StringComparison.InvariantCultureIgnoreCase StringComparison.InvariantCultureIgnoreCase
) >= 0 || i.StatId.IndexOf(
textBox.Text,
StringComparison.InvariantCultureIgnoreCase
) >= 0 ) >= 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#工作時間(秒):|