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-07-01 07:46:08 +00:00
|
|
|
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF" 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-07-05 06:51:18 +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-07-05 06:51:18 +00:00
|
|
|
Visibility="Collapsed" TextElement.FontSize="24" BorderBrush="{DynamicResource DARKPrimaryDarker}"
|
|
|
|
BorderThickness="1" Background="{DynamicResource DARKPrimaryText}" CornerRadius="5"
|
|
|
|
MouseLeave="MenuPanel_MouseLeave" 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" />
|
2023-07-05 03:41:27 +00:00
|
|
|
<Button Grid.Column="2" VerticalAlignment="Center" Background="Transparent"
|
2023-07-05 06:51:18 +00:00
|
|
|
Foreground="{DynamicResource DARKPrimary}" Content="{ll:Str 详细}" Cursor="Hand"
|
|
|
|
Click="MenuPanel_Click" IsEnabled="False" Grid.ColumnSpan="3" HorizontalAlignment="Right">
|
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-07-01 07:46:08 +00:00
|
|
|
Text="{ll:Str 宠物已经生病\, 通过服用药物可以恢复}" />
|
2023-01-24 15:47:16 +00:00
|
|
|
<TextBlock x:Name="tfun" Grid.Row="1" Grid.ColumnSpan="5" Foreground="#4caf50" TextWrapping="Wrap"
|
2023-07-01 07:46:08 +00:00
|
|
|
Text="{ll:Str 已关闭数据计算\, 可放心挂机}" />
|
|
|
|
<TextBlock Grid.Row="2" Text="{ll:Str 金钱}" VerticalAlignment="Center" />
|
2023-01-08 16:57:10 +00:00
|
|
|
<TextBlock x:Name="tMoney" Grid.Row="2" Grid.Column="2" Foreground="{DynamicResource DARKPrimary}"
|
2023-07-01 07:46:08 +00:00
|
|
|
Text="$100,000" />
|
|
|
|
<TextBlock Grid.Row="3" Text="{ll:Str 经验}" 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-07-01 07:46:08 +00:00
|
|
|
<TextBlock Grid.Row="4" Text="{ll:Str 体力}" 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-07-01 07:46:08 +00:00
|
|
|
<TextBlock Grid.Row="5" Text="{ll:Str 心情}" 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-07-01 07:46:08 +00:00
|
|
|
<TextBlock Grid.Row="6" Text="{ll:Str 饱腹度}" 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-07-01 07:46:08 +00:00
|
|
|
<TextBlock Grid.Row="7" Text="{ll:Str 口渴度}" 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-07-01 07:46:08 +00:00
|
|
|
<MenuItem x:Name="MenuFeed" Header="{ll:Str 投喂}" HorizontalContentAlignment="Center" Padding="0"
|
2023-06-01 08:16:45 +00:00
|
|
|
x:FieldModifier="public" />
|
2023-07-05 06:51:18 +00:00
|
|
|
<MenuItem x:Name="MenuPanel" Header="{ll:Str 面板}" MouseEnter="MenuPanel_MouseEnter"
|
|
|
|
MouseLeave="MenuPanel_MouseLeave" HorizontalContentAlignment="Center" Padding="0" />
|
|
|
|
<MenuItem x:Name="MenuInteract" Header="{ll:Str 互动}" HorizontalContentAlignment="Center" Width="99"
|
|
|
|
Padding="0">
|
2023-07-01 07:46:08 +00:00
|
|
|
<MenuItem Header="{ll:Str 睡觉}" HorizontalContentAlignment="Center" Click="Sleep_Click" />
|
2023-07-16 23:58:09 +00:00
|
|
|
<MenuItem x:Name="MenuStudy" Header="{ll:Str 学习}" HorizontalContentAlignment="Center" />
|
|
|
|
<MenuItem x:Name="MenuWork" Header="{ll:Str 工作}" HorizontalContentAlignment="Center" />
|
2023-07-01 07:46:08 +00:00
|
|
|
<!--<MenuItem Header="说话" HorizontalContentAlignment="Center" IsEnabled="False" />-->
|
2023-01-11 13:10:18 +00:00
|
|
|
</MenuItem>
|
2023-07-16 23:58:09 +00:00
|
|
|
<MenuItem x:Name="MenuDIY" Header="{ll:Str 自定}" HorizontalContentAlignment="Center"
|
2023-05-31 17:47:23 +00:00
|
|
|
x:FieldModifier="public" Padding="0" />
|
2023-07-05 06:51:18 +00:00
|
|
|
<MenuItem x:Name="MenuSetting" Header="{ll:Str 系统}" HorizontalContentAlignment="Center"
|
|
|
|
x:FieldModifier="public" Padding="0">
|
2023-07-01 07:46:08 +00:00
|
|
|
<MenuItem x:Name="MenuMODConfig" Header="{ll:Str MOD设置}" HorizontalContentAlignment="Center"
|
|
|
|
Visibility="Collapsed" x:FieldModifier="public" />
|
2023-06-05 09:18:27 +00:00
|
|
|
</MenuItem>
|
2022-12-28 09:22:39 +00:00
|
|
|
</Menu>
|
2022-12-13 07:10:18 +00:00
|
|
|
</Grid>
|
|
|
|
</UserControl>
|