mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
204 lines
15 KiB
XML
204 lines
15 KiB
XML
<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="面板" Width="500" Height="500"
|
||
Style="{DynamicResource BaseWindowXStyle}" WindowStartupLocation="CenterScreen" mc:Ignorable="d"
|
||
Closed="WindowX_Closed">
|
||
<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"
|
||
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>
|
||
|
||
</pu:WindowX> |