mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
WinModMaker界面规划
This commit is contained in:
parent
273083686c
commit
9ebcb40a1b
13
VPet.Plugin.ModMaker/App.xaml
Normal file
13
VPet.Plugin.ModMaker/App.xaml
Normal file
@ -0,0 +1,13 @@
|
||||
<Application
|
||||
x:Class="VPet.Plugin.ModMaker.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="winModMaker.xaml">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
15
VPet.Plugin.ModMaker/App.xaml.cs
Normal file
15
VPet.Plugin.ModMaker/App.xaml.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace VPet.Plugin.ModMaker
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application { }
|
||||
}
|
@ -13,10 +13,11 @@ namespace VPet.Plugin.ModMaker
|
||||
{
|
||||
public class ModMaker : MainPlugin
|
||||
{
|
||||
public ModMaker(IMainWindow mainwin) : base(mainwin)
|
||||
{
|
||||
}
|
||||
public ModMaker(IMainWindow mainwin)
|
||||
: base(mainwin) { }
|
||||
|
||||
public ILine Set;
|
||||
|
||||
public override void LoadPlugin()
|
||||
{
|
||||
Set = MW.Set.FindLine("ModMaker");
|
||||
@ -27,17 +28,22 @@ namespace VPet.Plugin.ModMaker
|
||||
Header = "Mod制作器".Translate(),
|
||||
HorizontalContentAlignment = HorizontalAlignment.Center,
|
||||
};
|
||||
menuset.Click += (s, e) => { Setting(); };
|
||||
menuset.Click += (s, e) =>
|
||||
{
|
||||
Setting();
|
||||
};
|
||||
modset.Items.Add(menuset);
|
||||
}
|
||||
|
||||
public override string PluginName => "ModMaker";
|
||||
public winModMaker Maker;
|
||||
public WinModMaker Maker;
|
||||
|
||||
public override void Setting()
|
||||
{
|
||||
if (Maker == null)
|
||||
{
|
||||
Maker = new winModMaker(this);
|
||||
Maker = new WinModMaker();
|
||||
Maker.ModMaker = this;
|
||||
Maker.Show();
|
||||
}
|
||||
else
|
||||
|
@ -5,14 +5,30 @@
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{8F804A27-A57E-4799-801C-4DE96BA153BC}</ProjectGuid>
|
||||
<OutputType>library</OutputType>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>VPet.Plugin.ModMaker</RootNamespace>
|
||||
<AssemblyName>VPet.Plugin.ModMaker</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<LangVersion>6</LangVersion>
|
||||
<Deterministic>true</Deterministic>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@ -31,6 +47,9 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>VPet.Plugin.ModMaker.App</StartupObject>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="LinePutScript, Version=1.5.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.1.9.2\lib\net462\LinePutScript.dll</HintPath>
|
||||
@ -66,6 +85,9 @@
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ModMaker.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
@ -80,11 +102,11 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<Compile Include="winModInfo.xaml.cs">
|
||||
<DependentUpon>winModInfo.xaml</DependentUpon>
|
||||
<Compile Include="WinModInfo.xaml.cs">
|
||||
<DependentUpon>WinModInfo.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="winModMaker.xaml.cs">
|
||||
<DependentUpon>winModMaker.xaml</DependentUpon>
|
||||
<Compile Include="WinModMaker.xaml.cs">
|
||||
<DependentUpon>WinModMaker.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
@ -97,14 +119,30 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="winModInfo.xaml">
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="WinModInfo.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="winModMaker.xaml">
|
||||
<Page Include="WinModMaker.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.6.2">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.6.2 %28x86 和 x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
@ -1,16 +1,92 @@
|
||||
<Window x:Class="VPet.Plugin.ModMaker.winModInfo"
|
||||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:VPet.Plugin.ModMaker"
|
||||
mc:Ignorable="d"
|
||||
Title="winModInfo" Height="450" Width="800">
|
||||
<Window
|
||||
x:Class="VPet.Plugin.ModMaker.WinModInfo"
|
||||
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:local="clr-namespace:VPet.Plugin.ModMaker"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
||||
Title="WinModInfo"
|
||||
Width="800"
|
||||
Height="450"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Image
|
||||
d:Height="256"
|
||||
d:Resources=""
|
||||
d:Width="256" />
|
||||
<ScrollViewer Grid.Row="1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Content="模组名称:" />
|
||||
<Label Grid.Row="1" Content="作者:" />
|
||||
<Label Grid.Row="2" Content="游戏版本:" />
|
||||
<Label Grid.Row="3" Content="模组版本:" />
|
||||
<Label Grid.Row="4" Content="模组介绍:" />
|
||||
<Label Grid.Column="1" Content="模组名称" />
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Content="作者" />
|
||||
<Label
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Content="游戏版本" />
|
||||
<Label
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Content="模组版本" />
|
||||
<Label
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Content="模组介绍" />
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Content="功能列表" />
|
||||
<TextBox Grid.Row="1" pu:TextBoxHelper.Watermark="搜索功能" />
|
||||
<ListBox Grid.Row="2" d:ItemsSource="{d:SampleData ItemCount=5}" />
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Content="功能列表" />
|
||||
<TextBox Grid.Row="1" pu:TextBoxHelper.Watermark="搜索功能" />
|
||||
<ListBox Grid.Row="2" d:ItemsSource="{d:SampleData ItemCount=5}" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -17,9 +17,9 @@ namespace VPet.Plugin.ModMaker
|
||||
/// <summary>
|
||||
/// winModInfo.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class winModInfo : Window
|
||||
public partial class WinModInfo : Window
|
||||
{
|
||||
public winModInfo()
|
||||
public WinModInfo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
@ -1,38 +1,101 @@
|
||||
<Window x:Class="VPet.Plugin.ModMaker.winModMaker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" FontSize="16"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:VPet.Plugin.ModMaker" mc:Ignorable="d"
|
||||
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
|
||||
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
|
||||
Title="{ll:Str Mod制作器}" Height="450" Width="600">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Window.Resources>
|
||||
<Window
|
||||
x:Class="VPet.Plugin.ModMaker.WinModMaker"
|
||||
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.Plugin.ModMaker"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
|
||||
Title="{ll:Str Mod制作器}"
|
||||
Width="600"
|
||||
Height="450"
|
||||
FontSize="16"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Background="{x:Null}" Content="打开最近的内容" />
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="4*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*" />
|
||||
<RowDefinition Height="1*" />
|
||||
<RowDefinition Height="8*" />
|
||||
<RowDefinition Height="1*" />
|
||||
<RowDefinition Height="1*" />
|
||||
<RowDefinition Height="1*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Content="{ll:Str Mod制作器}" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="24"
|
||||
Grid.Column="1" Background="{x:Null}" />
|
||||
<Label Content="{ll:Str 打开最近制作的MOD}" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1"
|
||||
Grid.Row="1" Background="{x:Null}" />
|
||||
<ListBox FontSize="20" Grid.Row="2" Grid.Column="1" Background="{DynamicResource PrimaryLighter}"
|
||||
Grid.ColumnSpan="2" Grid.RowSpan="1" />
|
||||
<Button Content="{ll:Str 创建新MOD}" Style="{DynamicResource ThemedButtonStyle}" Grid.Row="4" Grid.Column="2"
|
||||
VerticalAlignment="Center" Grid.ColumnSpan="1" />
|
||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 'MOD名称(英文)'}" Grid.Row="4" Grid.Column="1"
|
||||
Style="{DynamicResource StandardTextBoxStyle}"/>
|
||||
<TextBox pu:TextBoxHelper.Watermark="最近的内容" />
|
||||
<Button Grid.Column="1" Content="🔍" />
|
||||
</Grid>
|
||||
<ListBox
|
||||
Grid.Row="2"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
Style="{StaticResource SideMenuListBoxStyle}" />
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Background="{x:Null}" Content="开始使用" />
|
||||
<StackPanel Grid.Row="1">
|
||||
|
||||
<Button Content="创建新的模组" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<!--<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="4*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*" />
|
||||
<RowDefinition Height="1*" />
|
||||
<RowDefinition Height="8*" />
|
||||
<RowDefinition Height="1*" />
|
||||
<RowDefinition Height="1*" />
|
||||
<RowDefinition Height="1*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Background="{x:Null}"
|
||||
Content="{ll:Str Mod制作器}"
|
||||
FontSize="24" />
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Background="{x:Null}"
|
||||
Content="{ll:Str 打开最近制作的MOD}" />
|
||||
<ListBox
|
||||
Grid.Row="2"
|
||||
Grid.RowSpan="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Background="{DynamicResource PrimaryLighter}"
|
||||
FontSize="20" />
|
||||
<Button
|
||||
Grid.Row="4"
|
||||
Grid.Column="2"
|
||||
Grid.ColumnSpan="1"
|
||||
VerticalAlignment="Center"
|
||||
Content="{ll:Str 创建新MOD}"
|
||||
Style="{DynamicResource ThemedButtonStyle}" />
|
||||
<TextBox
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
pu:TextBoxHelper.Watermark="{ll:Str 'MOD名称(英文)'}"
|
||||
Style="{DynamicResource StandardTextBoxStyle}" />
|
||||
</Grid>-->
|
||||
</Window>
|
||||
|
@ -18,13 +18,13 @@ namespace VPet.Plugin.ModMaker
|
||||
/// <summary>
|
||||
/// winModMaker.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class winModMaker : Window
|
||||
public partial class WinModMaker : Window
|
||||
{
|
||||
ModMaker mm;
|
||||
public winModMaker(ModMaker mm)
|
||||
public ModMaker ModMaker { get; set; }
|
||||
|
||||
public WinModMaker()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.mm = mm;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user