mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
设置界面
This commit is contained in:
parent
c9d9ec72d6
commit
d67c591e00
@ -24,7 +24,8 @@
|
||||
<MenuItem Header="面板" />
|
||||
<MenuItem Header="打工" />
|
||||
<MenuItem Header="睡觉" />
|
||||
<MenuItem Header="设置" />
|
||||
<MenuItem Header="设置"
|
||||
Click="MenuSetting_Click"/>
|
||||
</Menu>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
@ -67,5 +67,10 @@ namespace VPet_Simulator.Core
|
||||
{
|
||||
closetimer.Start();
|
||||
}
|
||||
|
||||
private void MenuSetting_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,121 @@
|
||||
<pucore:SharedResourceDictionary Source="/Panuon.WPF.UI;component/Control.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style x:Key="StandardComboBoxStyle"
|
||||
TargetType="{x:Type ComboBox}"
|
||||
BasedOn="{StaticResource {x:Type ComboBox}}">
|
||||
<Setter Property="FontSize"
|
||||
Value="14" />
|
||||
<Setter Property="Height"
|
||||
Value="30" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource DARKPrimaryText}" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="1.5" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="Padding"
|
||||
Value="7,0,15,0" />
|
||||
<Setter Property="pu:ComboBoxHelper.CornerRadius"
|
||||
Value="5" />
|
||||
<Setter Property="pu:ComboBoxHelper.WatermarkForeground"
|
||||
Value="#DCDCDC" />
|
||||
<Setter Property="pu:ComboBoxHelper.ItemsSelectedBackground"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:ComboBoxHelper.ItemsSelectedForeground"
|
||||
Value="{DynamicResource DARKPrimaryText}" />
|
||||
<Setter Property="pu:ComboBoxHelper.ItemsHoverBackground"
|
||||
Value="{DynamicResource DARKPrimaryTrans4}" />
|
||||
<Setter Property="pu:ComboBoxHelper.ItemsPadding"
|
||||
Value="22,0" />
|
||||
<Setter Property="pu:DropDownHelper.BorderThickness"
|
||||
Value="1" />
|
||||
<Setter Property="pu:DropDownHelper.Background"
|
||||
Value="{DynamicResource DARKPrimaryText}" />
|
||||
<Setter Property="pu:DropDownHelper.ShadowColor"
|
||||
Value="{DynamicResource ShadowColor}" />
|
||||
<Setter Property="pu:DropDownHelper.CornerRadius"
|
||||
Value="5" />
|
||||
<Setter Property="pu:DropDownHelper.MinHeight"
|
||||
Value="100" />
|
||||
<Setter Property="pu:DropDownHelper.ClipDockSideShadow"
|
||||
Value="False" />
|
||||
<Setter Property="pu:DropDownHelper.BorderBrush"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:ShadowHelper.BlurRadius"
|
||||
Value="15" />
|
||||
<Setter Property="pu:ShadowHelper.Opacity"
|
||||
Value="0.5" />
|
||||
<Setter Property="pu:ComboBoxHelper.ToggleArrowTransformControlStyle">
|
||||
<Setter.Value>
|
||||
<Style TargetType="pu:TransformControl"
|
||||
BasedOn="{StaticResource {x:Static pu:ComboBoxHelper.ToggleArrowTransformControlStyle}}">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource PrimaryText}" />
|
||||
<Setter Property="FontSize"
|
||||
Value="10" />
|
||||
<Setter Property="Content"
|
||||
Value="" />
|
||||
</Style>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="StandardSliderStyle"
|
||||
TargetType="Slider"
|
||||
BasedOn="{StaticResource {x:Type Slider}}">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource DARKPrimaryTrans4}" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource DARKPrimaryDark}" />
|
||||
<Setter Property="pu:SliderHelper.ThumbShadowColor"
|
||||
Value="{DynamicResource ShadowColor}" />
|
||||
<Setter Property="pu:SliderHelper.TrackThickness"
|
||||
Value="2.5" />
|
||||
<Setter Property="pu:SliderHelper.ThumbBorderBrush"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:SliderHelper.ThumbBorderThickness"
|
||||
Value="2.5" />
|
||||
<Setter Property="pu:SliderHelper.CoveredBackground"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:ShadowHelper.ShadowDepth"
|
||||
Value="3" />
|
||||
<Setter Property="pu:ShadowHelper.Direction"
|
||||
Value="270" />
|
||||
<Setter Property="pu:ShadowHelper.Opacity"
|
||||
Value="0.5" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="StandardRadioButtonStyle"
|
||||
TargetType="RadioButton"
|
||||
BasedOn="{StaticResource {x:Type RadioButton}}">
|
||||
<Setter Property="pu:RadioButtonHelper.CheckedToggleBrush"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:RadioButtonHelper.CheckedBorderBrush"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SideMenuListBoxStyle"
|
||||
TargetType="ListBox"
|
||||
BasedOn="{StaticResource {x:Type ListBox}}">
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0" />
|
||||
<Setter Property="Background"
|
||||
Value="Transparent" />
|
||||
<Setter Property="pu:ListBoxHelper.ItemsHeight"
|
||||
Value="30" />
|
||||
<Setter Property="pu:ListBoxHelper.ItemsPadding"
|
||||
Value="15,0" />
|
||||
<Setter Property="pu:ListBoxHelper.ItemsCornerRadius"
|
||||
Value="5" />
|
||||
<Setter Property="pu:ListBoxHelper.ItemsHoverBackground"
|
||||
Value="{x:Null}" />
|
||||
<Setter Property="pu:ListBoxHelper.ItemsSelectedBackground"
|
||||
Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:ListBoxHelper.ItemsSelectedForeground"
|
||||
Value="{DynamicResource DARKPrimaryText}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ToolBarMenuStyle"
|
||||
TargetType="Menu"
|
||||
BasedOn="{StaticResource {x:Type Menu}}">
|
||||
|
@ -71,7 +71,7 @@ namespace VPet_Simulator.Windows
|
||||
core.Graph = new GraphCore();
|
||||
core.Save = new Save();
|
||||
LoadGraph(core.Graph, modpath, "");
|
||||
DisplayGrid.Children.Add(new Main(core));
|
||||
DisplayGrid.Children.Add(new Main(core));
|
||||
}
|
||||
//public void DEBUGValue()
|
||||
//{
|
||||
|
@ -104,6 +104,9 @@
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="WinDesign\winGameSetting.xaml.cs">
|
||||
<DependentUpon>winGameSetting.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Page Include="Design\Theme\basestyle.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
@ -125,6 +128,10 @@
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Page Include="WinDesign\winGameSetting.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(Platform)' == 'x86'">
|
||||
<Reference Include="Facepunch.Steamworks.Win32, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
|
349
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml
Normal file
349
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml
Normal file
@ -0,0 +1,349 @@
|
||||
<Grid x:Class="VPet_Simulator.Windows.WinDesign.winGameSetting"
|
||||
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.Windows.WinDesign"
|
||||
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800">
|
||||
<TabControl Margin="5" BorderThickness="0" pu:TabControlHelper.ItemsHeight="NaN"
|
||||
pu:TabControlHelper.ItemsFontSize="14" Background="Transparent" pu:TabControlHelper.ItemsPadding="10,7"
|
||||
pu:TabControlHelper.ItemsCornerRadius="4"
|
||||
pu:TabControlHelper.ItemsHoverBackground="{DynamicResource PrimaryLight}"
|
||||
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource PrimaryDark}"
|
||||
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}"
|
||||
Foreground="{DynamicResource PrimaryText}">
|
||||
<TabControl.ContentTemplate>
|
||||
<DataTemplate>
|
||||
<Border Margin="5,10,5,20" CornerRadius="15" Background="{DynamicResource DARKPrimaryText}">
|
||||
<ContentControl Content="{Binding}" Margin="15"/>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</TabControl.ContentTemplate>
|
||||
<TabItem Header="图形" Foreground="{DynamicResource PrimaryText}" BorderBrush="{DynamicResource PrimaryDarker}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="15" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="169*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="分辨率" VerticalAlignment="Center" FontSize="14" />
|
||||
<ComboBox x:Name="ResolutionBox" Grid.Column="2" Style="{DynamicResource StandardComboBoxStyle}" SelectedIndex="0"
|
||||
SelectionChanged="ResolutionBox_SelectionChanged" Margin="0,2,0,3">
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="1280x720" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="1280x800" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="1280x960" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="1440x810" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="1440x900" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="1440x1080" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="1600x900" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="1600x1000" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="1600x1200" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="1680x945" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="1680x1050" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="1680x1260" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="1920x1080" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="1920x1200" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="1920x1440" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="2048x1152" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="2048x1260" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="2048x1536" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="2056x1440" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="2056x1600" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="2056x1920" />
|
||||
<!--1.77-->
|
||||
<ComboBoxItem Content="3840x2160" />
|
||||
<!--1.6-->
|
||||
<ComboBoxItem Content="3840x2400" />
|
||||
<!--1.33-->
|
||||
<ComboBoxItem Content="3840x2880" />
|
||||
</ComboBox>
|
||||
<TextBlock Grid.Row="1" Text="全屏幕" VerticalAlignment="Center" FontSize="14" />
|
||||
|
||||
<pu:Switch x:Name="FullScreenBox" Grid.Row="1" Grid.Column="2"
|
||||
BorderBrush="{DynamicResource PrimaryDark}" CheckedBackground="{DynamicResource Primary}"
|
||||
CheckedBorderBrush="{DynamicResource Primary}" Background="Transparent" BoxWidth="35"
|
||||
BoxHeight="18" ToggleSize="14" ToggleShadowColor="{x:Null}"
|
||||
ToggleBrush="{DynamicResource PrimaryDark}"
|
||||
CheckedToggleBrush="{DynamicResource DARKPrimaryText}" Checked="FullScreenBox_Check"
|
||||
Unchecked="FullScreenBox_Check" />
|
||||
<TextBlock Grid.Row="2" Text="缩放等级" VerticalAlignment="Center" FontSize="14" />
|
||||
|
||||
<Grid Grid.Column="2" Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Slider Thumb.DragCompleted="ZoomSlider_DragCompleted" TickFrequency="1" IsSnapToTickEnabled="True"
|
||||
x:Name="ZoomSlider" Style="{DynamicResource StandardSliderStyle}"
|
||||
VerticalAlignment="Center" Maximum="100" SmallChange="1"
|
||||
PreviewMouseLeftButtonUp="ZoomSlider_MouseLeftButtonUp" Minimum="50" LargeChange="10"
|
||||
Value="75" />
|
||||
<TextBlock Grid.Column="1" Margin="15,0,0,0" VerticalAlignment="Center"
|
||||
Text="{Binding ElementName=ZoomSlider,Path=Value}" FontSize="16"
|
||||
Foreground="{DynamicResource DARKPrimaryDarker}" FontWeight="Bold" Background="{x:Null}" />
|
||||
</Grid>
|
||||
<TextBlock Grid.Row="3" Text="主题" VerticalAlignment="Center" FontSize="14" />
|
||||
<ComboBox x:Name="ThemeBox" Grid.Row="3" Grid.Column="2" SelectionChanged="ThemeBox_SelectionChanged" Style="{DynamicResource StandardComboBoxStyle}" Margin="0,3,0,2" />
|
||||
|
||||
<TextBlock Grid.Row="4" Text="字体" VerticalAlignment="Center" FontSize="14" />
|
||||
<ComboBox x:Name="FontBox" Grid.Row="4" Grid.Column="2" SelectionChanged="FontBox_SelectionChanged" Style="{DynamicResource StandardComboBoxStyle}" Margin="0,3,0,2" />
|
||||
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="系统" BorderBrush="{DynamicResource PrimaryDarker}">
|
||||
<StackPanel>
|
||||
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Background="{x:Null}"
|
||||
TextWrapping="Wrap">
|
||||
<Run FontWeight="Bold" FontSize="16">自动保存频率</Run><LineBreak />
|
||||
<Run>在指定时间后自动保存游戏数据,频繁的自动保存可能会导致卡顿</Run>
|
||||
</TextBlock>
|
||||
<ComboBox x:Name="CBAutoSave" SelectedIndex="3" VerticalAlignment="Top" Margin="10,5,0,0"
|
||||
HorizontalAlignment="Left" Style="{DynamicResource StandardComboBoxStyle}" Width="200"
|
||||
SelectionChanged="CBAutoSave_SelectionChanged">
|
||||
<ComboBoxItem>关闭自动保存</ComboBoxItem>
|
||||
<ComboBoxItem>每天一次</ComboBoxItem>
|
||||
<ComboBoxItem>每3天一次</ComboBoxItem>
|
||||
<ComboBoxItem>每周一次</ComboBoxItem>
|
||||
<ComboBoxItem>每2周一次</ComboBoxItem>
|
||||
<ComboBoxItem>每月一次</ComboBoxItem>
|
||||
<ComboBoxItem>每2个月一次</ComboBoxItem>
|
||||
<ComboBoxItem>每3个月一次</ComboBoxItem>
|
||||
</ComboBox>
|
||||
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Background="{x:Null}" TextWrapping="Wrap"
|
||||
Margin="0,10,0,0">
|
||||
<Run FontWeight="Bold" FontSize="16">桌面</Run><LineBreak />
|
||||
<Run>系统桌面相关设置</Run>
|
||||
</TextBlock>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="15" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="169*" />
|
||||
</Grid.RowDefinitions>
|
||||
<pu:Switch x:Name="sDesktopAlignment" BorderBrush="{DynamicResource PrimaryDark}"
|
||||
Grid.Column="2" CheckedBackground="{DynamicResource Primary}" CheckedBorderBrush="{DynamicResource Primary}"
|
||||
Background="Transparent" BoxWidth="35" BoxHeight="18" ToggleSize="14"
|
||||
ToggleShadowColor="{x:Null}" ToggleBrush="{DynamicResource PrimaryDark}"
|
||||
CheckedToggleBrush="{DynamicResource DARKPrimaryText}" Margin="10,0,0,0"
|
||||
ToolTip="桌面图标是否自动对齐网格" Checked="sDesktopAlignment_Checked" />
|
||||
<TextBlock Grid.Row="0" Text="图标对齐" VerticalAlignment="Center" FontSize="14" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
<TabItem Header="诊断" BorderBrush="{DynamicResource PrimaryDarker}">
|
||||
<StackPanel>
|
||||
<TextBlock HorizontalAlignment="Left" FontSize="11" VerticalAlignment="Top" Background="{x:Null}"
|
||||
TextWrapping="Wrap">
|
||||
<Run FontWeight="Bold" FontSize="16">诊断与反馈</Run><LineBreak />
|
||||
<Run>选择要发送给 LBGame 的诊断数据,诊断数据用于保护和及时更新 VOS, 解决问题并改进产品.</Run><LineBreak />
|
||||
<Run>无论选择哪个选项,设备都可以安全正常地运行.</Run> <Hyperlink Click="hyper_moreInfo">获取有关这些设置的更多信息</Hyperlink>
|
||||
</TextBlock>
|
||||
<RadioButton x:Name="RBDiagnosisYES" Style="{DynamicResource StandardRadioButtonStyle}"
|
||||
Content="发送诊断数据: 发送有关该设备的存档, 包括购买的游戏,盈 利,饱腹,状态等各种系统内数据"
|
||||
HorizontalAlignment="Left" Margin="10,10,10,0" VerticalAlignment="Top" GroupName="diagnosis"
|
||||
Checked="RBDiagnosisYES_Checked" />
|
||||
<RadioButton x:Name="RBDiagnosisNO" Style="{DynamicResource StandardRadioButtonStyle}"
|
||||
Content="不发送诊断数据: 适用于启用修改器,修改过游戏数据等不 符合分析数据条件. 或不希望提供游戏数据的玩家"
|
||||
HorizontalAlignment="Left" Margin="10,10,10,0" VerticalAlignment="Top" GroupName="diagnosis"
|
||||
Checked="RBDiagnosisNO_Checked" />
|
||||
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,15,0,0" Background="{x:Null}"
|
||||
TextWrapping="Wrap">
|
||||
<Run FontWeight="Bold" FontSize="14">反馈频率</Run><LineBreak />
|
||||
<Run>VOS 应寻求我反馈按以下频率</Run>
|
||||
</TextBlock>
|
||||
<ComboBox x:Name="CBDiagnosis" SelectedIndex="1" VerticalAlignment="Top" Margin="10,5,0,0"
|
||||
HorizontalAlignment="Left" Style="{DynamicResource StandardComboBoxStyle}" Width="200"
|
||||
SelectionChanged="CBDiagnosis_SelectionChanged">
|
||||
<ComboBoxItem>每周一次</ComboBoxItem>
|
||||
<ComboBoxItem>每2周一次</ComboBoxItem>
|
||||
<ComboBoxItem>每月一次</ComboBoxItem>
|
||||
<ComboBoxItem>每2个月一次</ComboBoxItem>
|
||||
<ComboBoxItem>每3个月一次</ComboBoxItem>
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
<TabItem Header="MOD管理" BorderBrush="{DynamicResource PrimaryDarker}">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="120" />
|
||||
<ColumnDefinition Width="15" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ListBox x:Name="ListMod" BorderThickness="0" Background="Transparent"
|
||||
Style="{DynamicResource SideMenuListBoxStyle}" VerticalAlignment="Top" FontSize="12" SelectionChanged="ListMod_SelectionChanged"
|
||||
SelectionMode="Single" />
|
||||
<StackPanel Grid.Column="2">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="7" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image x:Name="ImageMOD" HorizontalAlignment="Right" Height="85" Margin="0,5,0,0"
|
||||
VerticalAlignment="Top" Width="85" Stretch="Fill" />
|
||||
<StackPanel Grid.Column="2">
|
||||
<Label x:Name="LabelModName" Content="Core" HorizontalAlignment="Left" Margin="-5,2,0,0"
|
||||
VerticalAlignment="Top" FontWeight="Bold" FontSize="18" Background="{x:Null}"
|
||||
Foreground="{DynamicResource PrimaryText}" />
|
||||
<TextBlock Margin="0,0,0,0" TextWrapping="Wrap" FontSize="12">
|
||||
<Run Text="模组作者: " /><LineBreak />
|
||||
<Run x:Name="runMODAuthor" Text="LorisYounger" />
|
||||
<LineBreak /><Run Text="模组版本: " /><Run x:Name="runMODVer" Text="1.0" />
|
||||
<LineBreak /><Run Text="游戏版本: " /><Run x:Name="runMODGameVer" Text="1.0" />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" Height="60" Margin="0,7,0,0"
|
||||
pu:ScrollViewerHelper.ScrollBarThickness="10" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top">
|
||||
<TextBlock x:Name="GameInfo" FontSize="12" TextWrapping="Wrap"
|
||||
Text="这里是MOD的介绍内容,你的介绍就是你的介绍
" VerticalAlignment="Top" />
|
||||
</ScrollViewer>
|
||||
<Grid Height="140">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel>
|
||||
<Label Content="MOD介绍" HorizontalAlignment="Left" Margin="-5,0,0,0"
|
||||
VerticalAlignment="Center" FontSize="18" FontWeight="Bold" Background="{x:Null}" />
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" Height="140" Margin="0,0,0,0"
|
||||
pu:ScrollViewerHelper.ScrollBarThickness="10" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top">
|
||||
<TextBlock x:Name="GameHave" FontSize="12" TextWrapping="Wrap"
|
||||
Text="该mod有许多功能
比如说功能1
比如说功能1
比如说功能1
比如说功能1
比如说功能1"
|
||||
HorizontalAlignment="Left" VerticalAlignment="Top" />
|
||||
</ScrollViewer>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<Label Content="内容" HorizontalAlignment="Left" Margin="-5,0,0,0" VerticalAlignment="Top"
|
||||
FontSize="18" FontWeight="Bold" Background="{x:Null}" />
|
||||
<TextBlock x:Name="ButtonOpenModFolder" Cursor="Hand" HorizontalAlignment="Left"
|
||||
Margin="0,0,0,0" TextWrapping="Wrap" Text="所在文件夹" VerticalAlignment="Top"
|
||||
FontSize="12" Foreground="{DynamicResource DARKPrimaryDarker}"
|
||||
TextDecorations="Underline" MouseDown="ButtonOpenModFolder_MouseDown" />
|
||||
<TextBlock x:Name="ButtonEnable" HorizontalAlignment="Left" Margin="0,2,0,0"
|
||||
TextWrapping="Wrap" Text="启用该模组" VerticalAlignment="Top" FontSize="12" Width="62"
|
||||
Foreground="{DynamicResource DARKPrimaryDarker}" TextDecorations="Underline"
|
||||
Cursor="Hand" MouseDown="ButtonEnable_MouseDown" />
|
||||
<TextBlock x:Name="ButtonDisEnable" HorizontalAlignment="Left" Margin="0,2,0,0"
|
||||
TextWrapping="Wrap" Text="停用该模组" VerticalAlignment="Top" FontSize="12" Width="62"
|
||||
Foreground="{DynamicResource DARKPrimaryDarker}" TextDecorations="Underline"
|
||||
Cursor="Hand" MouseDown="ButtonDisEnable_MouseDown" />
|
||||
<TextBlock x:Name="ButtonPublish" HorizontalAlignment="Left" Margin="0,2,0,0"
|
||||
TextWrapping="Wrap" Text="更新至Steam" VerticalAlignment="Top" FontSize="12" Width="74"
|
||||
Foreground="DimGray" TextDecorations="Underline" Cursor="Hand" IsEnabled="False"
|
||||
MouseDown="ButtonPublish_MouseDown" />
|
||||
<TextBlock x:Name="ButtonSteam" HorizontalAlignment="Left" Margin="0,2,0,0"
|
||||
TextWrapping="Wrap" Text="创意工坊页面" VerticalAlignment="Top" FontSize="12" Width="72"
|
||||
Foreground="DimGray" TextDecorations="Underline" Cursor="Hand" IsEnabled="False"
|
||||
MouseDown="ButtonSteam_MouseDown" />
|
||||
<ProgressBar x:Name="ProgressBarUpload" Margin="0,2,0,0" Visibility="Collapsed"
|
||||
pu:ProgressBarHelper.CornerRadius="2" VerticalAlignment="Top" Height="30" Value="60"
|
||||
Background="{DynamicResource Primary}" BorderBrush="{DynamicResource PrimaryDarker}"
|
||||
pu:ProgressBarHelper.IsPercentVisible="True"
|
||||
Foreground="{DynamicResource DARKPrimary}" BorderThickness="2" />
|
||||
<Button x:Name="ButtonAllow" Content="启用代码插件" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top" Background="#FFFF2C2C" Foreground="White" FontSize="10"
|
||||
ToolTip="启用该模组的代码内容,不能保证系统安全性" Click="ButtonAllow_Click" />
|
||||
</StackPanel>
|
||||
<Button x:Name="ButtonRestart" Content="重启软件以应用更改" Margin="0,2,0,0" VerticalAlignment="Bottom"
|
||||
Background="{DynamicResource DARKPrimary}" Visibility="Collapsed"
|
||||
Foreground="{DynamicResource DARKPrimaryText}" Click="ButtonRestart_Click"
|
||||
Grid.ColumnSpan="2" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="关于" BorderBrush="{DynamicResource PrimaryDarker}" Foreground="{DynamicResource PrimaryText}">
|
||||
<Grid HorizontalAlignment="Left" VerticalAlignment="Top">
|
||||
<TextBlock Margin="0,0,0,0" Text="虚拟主播模拟器 规格" FontSize="20" FontWeight="Bold" />
|
||||
<TextBlock Margin="0,30,0,0" FontWeight="Bold">
|
||||
<Run>用户名</Run><LineBreak />
|
||||
<Run>版本</Run><LineBreak />
|
||||
<Run>激活</Run><LineBreak />
|
||||
</TextBlock>
|
||||
<TextBlock VerticalAlignment="Top" Margin="100,30,0,0">
|
||||
<Run x:Name="runUserName">杨远洛里斯</Run><LineBreak />
|
||||
<Run x:Name="runabVer">v1.0 (100)</Run><LineBreak />
|
||||
<Run x:Name="runActivate">已通过Steam[uid]激活服务注册</Run><LineBreak />
|
||||
</TextBlock>
|
||||
<TextBlock Margin="0,100,0,0" Text="制作组名单" FontSize="20" FontWeight="Bold" />
|
||||
<TextBlock Margin="0,130,0,0" FontWeight="Bold">
|
||||
<Run>游戏策划</Run><LineBreak />
|
||||
<Run>UI&程序</Run><LineBreak />
|
||||
<Run>音效音乐</Run><LineBreak />
|
||||
<Run>立绘绘制</Run><LineBreak />
|
||||
<Run>L2D建模</Run><LineBreak />
|
||||
<Run>开源项目</Run><LineBreak />
|
||||
<LineBreak /><LineBreak />
|
||||
<LineBreak /><Run xml:space="preserve">Power By </Run>
|
||||
<Run TextDecorations="Underline">exLB.net</Run>
|
||||
<Run> </Run>
|
||||
<Run TextDecorations="Underline">LBGame</Run>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="100,130,0,0">
|
||||
<Run>杨远洛里斯, 广大MOD作者</Run><LineBreak />
|
||||
<Run>洛里斯杨远, トニーちゃん, HKW雨辉</Run><LineBreak />
|
||||
<Run>莫皖</Run><LineBreak />
|
||||
<Run>见老画师中画家昵称</Run>
|
||||
<Hyperlink>查看画家名单</Hyperlink>
|
||||
<LineBreak />
|
||||
<Run>见老画师中建模师昵称</Run>
|
||||
<Hyperlink>查看建模师名单</Hyperlink><LineBreak />
|
||||
<Hyperlink>Panuon.WPF.UI</Hyperlink>
|
||||
<Hyperlink>LinePutScript</Hyperlink><LineBreak />
|
||||
<Hyperlink>Facepunch.Steamworks</Hyperlink>
|
||||
<Hyperlink>查看引用名单</Hyperlink>
|
||||
<LineBreak />
|
||||
<Run FontStyle="Italic" FontSize="8">由于游戏暂未开发完毕,该名单并非完整名单.将在正式版完成前修改</Run><LineBreak />
|
||||
</TextBlock>
|
||||
<Image Source="/VUPSimulator;component/Res/Image/system/TopLogo2018.PNG" Width="38" Margin="99,334,0,0"
|
||||
HorizontalAlignment="Left" VerticalAlignment="Top" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
<Label x:Name="GameVerison" Content="版本v1.0 (655366666)" HorizontalAlignment="Left" Margin="0,398,0,-1"
|
||||
VerticalAlignment="Top" FontSize="10" Foreground="Green" Background="{x:Null}" />
|
||||
|
||||
</Grid>
|
128
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
Normal file
128
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
Normal file
@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace VPet_Simulator.Windows.WinDesign
|
||||
{
|
||||
/// <summary>
|
||||
/// winGameSetting.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class winGameSetting : Grid
|
||||
{
|
||||
public winGameSetting()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void ResolutionBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void FullScreenBox_Check(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ZoomSlider_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ThemeBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void FontBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void CBAutoSave_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void sDesktopAlignment_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void RBDiagnosisYES_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void RBDiagnosisNO_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void CBDiagnosis_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ListMod_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonOpenModFolder_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonEnable_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonDisEnable_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonPublish_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonSteam_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonAllow_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ButtonRestart_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ZoomSlider_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void hyper_moreInfo(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user