2022-12-13 07:10:18 +00:00
|
|
|
<UserControl x:Class="VPet_Simulator.Core.ToolBar" 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" xmlns:local="clr-namespace:VPet_Simulator.Core"
|
2023-05-22 20:18:59 +00:00
|
|
|
mc:Ignorable="d" xmlns:pu="https://opensource.panuon.com/wpf-ui" MouseEnter="UserControl_MouseEnter"
|
2023-05-30 16:51:17 +00:00
|
|
|
MouseLeave="UserControl_MouseLeave" Height="500" Width="500" VerticalAlignment="Top">
|
2022-12-13 07:10:18 +00:00
|
|
|
<UserControl.Resources>
|
2023-01-11 16:46:28 +00:00
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<ResourceDictionary Source="Theme.xaml" />
|
|
|
|
<ResourceDictionary Source="basestyle.xaml" />
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
</ResourceDictionary>
|
2022-12-13 07:10:18 +00:00
|
|
|
</UserControl.Resources>
|
2023-03-01 22:51:07 +00:00
|
|
|
<Grid x:Name="MainGrid" x:FieldModifier="public">
|
2023-01-11 13:10:18 +00:00
|
|
|
<Border x:Name="BdrPanel" VerticalAlignment="Bottom" Margin="0,0,0,55" TextBlock.FontSize="24"
|
2023-05-22 20:18:59 +00:00
|
|
|
TextElement.FontSize="24" BorderBrush="{DynamicResource DARKPrimaryDarker}" BorderThickness="1"
|
|
|
|
Background="{DynamicResource DARKPrimaryText}" CornerRadius="5" MouseLeave="MenuPanel_MouseLeave"
|
|
|
|
Visibility="Collapsed" x:FieldModifier="public">
|
2023-01-08 02:59:54 +00:00
|
|
|
<Grid Margin="15">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="5" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition Width="5" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
</Grid.RowDefinitions>
|
2023-01-08 16:57:10 +00:00
|
|
|
<TextBlock x:Name="Tlv" Text="Lv 14" VerticalAlignment="Center"
|
|
|
|
Foreground="{DynamicResource DARKPrimary}" Grid.ColumnSpan="3" />
|
|
|
|
<Button Grid.Column="4" VerticalAlignment="Center" Background="Transparent"
|
2023-05-22 20:18:59 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" Content="详细" Cursor="Hand" Click="MenuPanel_Click"
|
|
|
|
IsEnabled="False">
|
2023-01-08 02:59:54 +00:00
|
|
|
<Button.ContentTemplate>
|
|
|
|
<DataTemplate>
|
2023-01-08 16:57:10 +00:00
|
|
|
<TextBlock Text="{Binding}" TextDecorations="Underline" />
|
2023-01-08 02:59:54 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</Button.ContentTemplate>
|
|
|
|
</Button>
|
2023-01-08 16:57:10 +00:00
|
|
|
<TextBlock x:Name="till" Grid.Row="1" Grid.ColumnSpan="5" Foreground="#FF4C4C" TextWrapping="Wrap"
|
2023-01-24 15:47:16 +00:00
|
|
|
Text="宠物已经生病, 通过服用药物可以恢复" />
|
|
|
|
<TextBlock x:Name="tfun" Grid.Row="1" Grid.ColumnSpan="5" Foreground="#4caf50" TextWrapping="Wrap"
|
|
|
|
Text="已关闭数据计算, 可放心挂机" />
|
2023-01-08 02:59:54 +00:00
|
|
|
<TextBlock Grid.Row="2" Text="金钱" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<TextBlock x:Name="tMoney" Grid.Row="2" Grid.Column="2" Foreground="{DynamicResource DARKPrimary}"
|
|
|
|
Text="¥100,000" />
|
2023-01-08 02:59:54 +00:00
|
|
|
<TextBlock Grid.Row="3" Text="经验" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<ProgressBar x:Name="pExp" Grid.Row="3" Grid.Column="2" Value="40" FontSize="20" Height="20"
|
|
|
|
VerticalAlignment="Center" pu:ProgressBarHelper.CornerRadius="10"
|
|
|
|
Foreground="{DynamicResource ProgressBarForeground}"
|
|
|
|
pu:ProgressBarHelper.IsPercentVisible="True"
|
|
|
|
pu:ProgressBarHelper.GeneratingPercentText="PgbExperience_GeneratingPercentText" />
|
2023-01-20 12:42:00 +00:00
|
|
|
<TextBlock x:Name="tExp" Grid.Row="3" Grid.Column="4" HorizontalAlignment="Right" Text="x1.0"
|
2023-01-08 16:57:10 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
2023-01-08 02:59:54 +00:00
|
|
|
<TextBlock Grid.Row="4" Text="体力" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<ProgressBar x:Name="pStrength" Grid.Row="4" Grid.Column="2" Value="40" FontSize="20" Height="20"
|
|
|
|
VerticalAlignment="Center" Maximum="100" pu:ProgressBarHelper.CornerRadius="10"
|
|
|
|
Foreground="{DynamicResource ProgressBarForeground}"
|
|
|
|
pu:ProgressBarHelper.IsPercentVisible="True"
|
|
|
|
pu:ProgressBarHelper.GeneratingPercentText="PgbStrength_GeneratingPercentText" />
|
2023-01-20 12:42:00 +00:00
|
|
|
<TextBlock x:Name="tStrength" Grid.Row="4" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
2023-01-08 16:57:10 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
2023-01-08 02:59:54 +00:00
|
|
|
<TextBlock Grid.Row="5" Text="心情" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<ProgressBar x:Name="pFeeling" Grid.Row="5" Grid.Column="2" Value="60" FontSize="20" Height="20"
|
|
|
|
VerticalAlignment="Center" Maximum="100" pu:ProgressBarHelper.CornerRadius="10"
|
|
|
|
Foreground="{DynamicResource ProgressBarForeground}"
|
|
|
|
pu:ProgressBarHelper.IsPercentVisible="True"
|
|
|
|
pu:ProgressBarHelper.GeneratingPercentText="PgbSpirit_GeneratingPercentText" />
|
2023-01-20 12:42:00 +00:00
|
|
|
<TextBlock x:Name="tFeeling" Grid.Row="5" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
2023-01-08 16:57:10 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
2023-01-08 02:59:54 +00:00
|
|
|
<TextBlock Grid.Row="6" Text="饱腹度" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<ProgressBar x:Name="pStrengthFood" Grid.Row="6" Grid.Column="2" Value="80" FontSize="20" Height="20"
|
|
|
|
VerticalAlignment="Center" Maximum="100" pu:ProgressBarHelper.CornerRadius="10"
|
|
|
|
Foreground="{DynamicResource ProgressBarForeground}"
|
|
|
|
pu:ProgressBarHelper.IsPercentVisible="True"
|
|
|
|
pu:ProgressBarHelper.GeneratingPercentText="PgbHunger_GeneratingPercentText" />
|
2023-01-20 12:42:00 +00:00
|
|
|
<TextBlock x:Name="tStrengthFood" Grid.Row="6" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
2023-01-08 16:57:10 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
2023-01-08 02:59:54 +00:00
|
|
|
<TextBlock Grid.Row="7" Text="口渴度" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<ProgressBar x:Name="pStrengthDrink" Grid.Row="7" Grid.Column="2" Value="20" FontSize="20" Height="20"
|
|
|
|
VerticalAlignment="Center" Maximum="100" pu:ProgressBarHelper.CornerRadius="10"
|
|
|
|
Foreground="{DynamicResource ProgressBarForeground}"
|
|
|
|
pu:ProgressBarHelper.IsPercentVisible="True"
|
|
|
|
pu:ProgressBarHelper.GeneratingPercentText="PgbThirsty_GeneratingPercentText" />
|
2023-01-20 12:42:00 +00:00
|
|
|
<TextBlock x:Name="tStrengthDrink" Grid.Row="7" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
2023-01-08 16:57:10 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
2023-01-08 02:59:54 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
2023-05-19 08:17:51 +00:00
|
|
|
<Menu VerticalAlignment="Bottom" Style="{DynamicResource ToolBarMenuStyle}" Width="500">
|
2022-12-28 09:22:39 +00:00
|
|
|
<Menu.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
2023-01-08 16:57:10 +00:00
|
|
|
<UniformGrid Columns="5" />
|
2022-12-28 09:22:39 +00:00
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</Menu.ItemsPanel>
|
2023-06-01 08:16:45 +00:00
|
|
|
<MenuItem x:Name="MenuFeed" Header="投喂" HorizontalContentAlignment="Center" Padding="0"
|
|
|
|
x:FieldModifier="public" />
|
2023-01-11 13:10:18 +00:00
|
|
|
<MenuItem x:Name="MenuPanel" Header="面板" MouseEnter="MenuPanel_MouseEnter" MouseLeave="MenuPanel_MouseLeave"
|
2023-05-31 17:47:23 +00:00
|
|
|
HorizontalContentAlignment="Center" Padding="0" />
|
2023-05-19 08:17:51 +00:00
|
|
|
<MenuItem x:Name="MenuInteract" Header="互动" HorizontalContentAlignment="Center" Width="99" Padding="0">
|
2023-01-25 04:49:18 +00:00
|
|
|
<MenuItem Header="睡觉" HorizontalContentAlignment="Center" Click="Sleep_Click" />
|
2023-05-19 08:17:51 +00:00
|
|
|
<MenuItem Header="学习" HorizontalContentAlignment="Center" Click="Study_Click" />
|
2023-05-22 20:18:59 +00:00
|
|
|
<MenuItem x:Name="MenuWork1" Header="工作1" HorizontalContentAlignment="Center" Click="Work1_Click"
|
|
|
|
ToolTip="工作" />
|
|
|
|
<MenuItem x:Name="MenuWork2" Header="工作2" HorizontalContentAlignment="Center" Click="Work2_Click"
|
|
|
|
ToolTip="工作" />
|
2023-05-19 08:17:51 +00:00
|
|
|
<MenuItem Header="说话" HorizontalContentAlignment="Center" IsEnabled="False" />
|
2023-01-11 13:10:18 +00:00
|
|
|
</MenuItem>
|
2023-01-28 06:12:01 +00:00
|
|
|
<MenuItem x:Name="MenuDIY" Header="自定" HorizontalContentAlignment="Center" Click="MenuDIY_Click"
|
2023-05-31 17:47:23 +00:00
|
|
|
x:FieldModifier="public" Padding="0" />
|
2023-05-19 08:17:51 +00:00
|
|
|
<MenuItem x:Name="MenuSetting" Header="系统" HorizontalContentAlignment="Center" x:FieldModifier="public"
|
2023-06-01 08:16:45 +00:00
|
|
|
Padding="0" />
|
2022-12-28 09:22:39 +00:00
|
|
|
</Menu>
|
2022-12-13 07:10:18 +00:00
|
|
|
</Grid>
|
|
|
|
</UserControl>
|