mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
135 lines
9.7 KiB
XML
135 lines
9.7 KiB
XML
<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"
|
|
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"
|
|
MouseLeave="UserControl_MouseLeave" Height="500" Width="500" VerticalAlignment="Top">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="Theme.xaml" />
|
|
<ResourceDictionary Source="basestyle.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid x:Name="MainGrid" x:FieldModifier="public">
|
|
<Border x:Name="BdrPanel" VerticalAlignment="Bottom" Margin="0,0,0,55" TextBlock.FontSize="24"
|
|
TextElement.FontSize="24" BorderBrush="{DynamicResource DARKPrimaryDarker}" BorderThickness="1"
|
|
Background="{DynamicResource DARKPrimaryText}" CornerRadius="5" MouseLeave="MenuPanel_MouseLeave"
|
|
x:FieldModifier="public" Visibility="Collapsed">
|
|
<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>
|
|
<TextBlock x:Name="Tlv" Text="Lv 14" VerticalAlignment="Center"
|
|
Foreground="{DynamicResource DARKPrimary}" Grid.ColumnSpan="3" />
|
|
<Button Grid.Column="2" VerticalAlignment="Center" Background="Transparent"
|
|
Foreground="{DynamicResource DARKPrimary}" Content="{ll:Str 详细}" Cursor="Hand"
|
|
Click="MenuPanel_Click" Visibility="Collapsed" Grid.ColumnSpan="3" HorizontalAlignment="Right">
|
|
<Button.ContentTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding}" TextDecorations="Underline" />
|
|
</DataTemplate>
|
|
</Button.ContentTemplate>
|
|
</Button>
|
|
<TextBlock x:Name="till" Grid.Row="1" Grid.ColumnSpan="5" Foreground="#FF4C4C" TextWrapping="Wrap"
|
|
Text="{ll:Str 宠物已经生病\, 通过服用药物可以恢复}" />
|
|
<TextBlock x:Name="tfun" Grid.Row="1" Grid.ColumnSpan="5" Foreground="#4caf50" TextWrapping="Wrap"
|
|
Text="{ll:Str 已关闭数据计算\, 可放心挂机}" />
|
|
<TextBlock Grid.Row="2" Text="{ll:Str 金钱}" VerticalAlignment="Center" />
|
|
<TextBlock x:Name="tMoney" Grid.Row="2" Grid.Column="2" Foreground="{DynamicResource DARKPrimary}"
|
|
Text="$100,000" />
|
|
<TextBlock Grid.Row="3" Text="{ll:Str 经验}" VerticalAlignment="Center" />
|
|
<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" />
|
|
<TextBlock x:Name="tExp" Grid.Row="3" Grid.Column="4" HorizontalAlignment="Right" Text="x1.0"
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
|
<TextBlock Grid.Row="4" Text="{ll:Str 体力}" VerticalAlignment="Center" />
|
|
<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" />
|
|
<TextBlock x:Name="tStrength" Grid.Row="4" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
|
<TextBlock Grid.Row="5" Text="{ll:Str 心情}" VerticalAlignment="Center" />
|
|
<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" />
|
|
<TextBlock x:Name="tFeeling" Grid.Row="5" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
|
<TextBlock Grid.Row="6" Text="{ll:Str 饱腹度}" VerticalAlignment="Center" />
|
|
<ProgressBar x:Name="pStrengthFoodMax" Grid.Row="6" Grid.Column="2" Value="90" FontSize="20" Height="20"
|
|
VerticalAlignment="Center" Maximum="100" pu:ProgressBarHelper.CornerRadius="10" Opacity="0.5"
|
|
Foreground="{DynamicResource ProgressBarForeground}" Background="#FFDDDDDD" />
|
|
<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"
|
|
Background="{x:Null}" />
|
|
|
|
<TextBlock x:Name="tStrengthFood" Grid.Row="6" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
|
<TextBlock Grid.Row="7" Text="{ll:Str 口渴度}" VerticalAlignment="Center" />
|
|
<ProgressBar x:Name="pStrengthDrinkMax" Grid.Row="7" Grid.Column="2" Value="90" FontSize="20"
|
|
Height="20" VerticalAlignment="Center" Maximum="100" pu:ProgressBarHelper.CornerRadius="10"
|
|
Opacity="0.5" Foreground="{DynamicResource ProgressBarForeground}" Background="#FFDDDDDD" />
|
|
<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"
|
|
Background="{x:Null}" />
|
|
<TextBlock x:Name="tStrengthDrink" Grid.Row="7" Grid.Column="4" HorizontalAlignment="Right" Text="+1/t"
|
|
Foreground="{DynamicResource DARKPrimary}" />
|
|
</Grid>
|
|
</Border>
|
|
<Menu VerticalAlignment="Bottom" Style="{DynamicResource ToolBarMenuStyle}" Width="500" pu:MenuHelper.SubmenuItemsHorizontalContentAlignment="Center" pu:MenuHelper.TopLevelItemsHorizontalContentAlignment="Center">
|
|
<Menu.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Columns="5" />
|
|
</ItemsPanelTemplate>
|
|
</Menu.ItemsPanel>
|
|
<MenuItem x:Name="MenuFeed" Header="{ll:Str 投喂}" Padding="0"
|
|
x:FieldModifier="public" />
|
|
<MenuItem x:Name="MenuPanel" Header="{ll:Str 面板}" MouseEnter="MenuPanel_MouseEnter"
|
|
MouseLeave="MenuPanel_MouseLeave" Padding="0" />
|
|
<MenuItem x:Name="MenuInteract" Header="{ll:Str 互动}" Width="99"
|
|
Padding="0">
|
|
<MenuItem Header="{ll:Str 睡觉}" Click="Sleep_Click" />
|
|
<MenuItem x:Name="MenuStudy" Header="{ll:Str 学习}" />
|
|
<MenuItem x:Name="MenuWork" Header="{ll:Str 工作}" />
|
|
<!--<MenuItem Header="说话" IsEnabled="False" />-->
|
|
</MenuItem>
|
|
<MenuItem x:Name="MenuDIY" Header="{ll:Str 自定}" x:FieldModifier="public"
|
|
Padding="0" />
|
|
<MenuItem x:Name="MenuSetting" Header="{ll:Str 系统}"
|
|
x:FieldModifier="public" Padding="0">
|
|
<MenuItem x:Name="MenuMODConfig" Header="{ll:Str MOD设置}"
|
|
Visibility="Collapsed" x:FieldModifier="public" />
|
|
</MenuItem>
|
|
</Menu>
|
|
</Grid>
|
|
</UserControl>
|