winBetterBuy

This commit is contained in:
ZouJin 2023-06-02 00:50:40 +10:00
parent 04ba45dba3
commit 24e79cbc3e
12 changed files with 76 additions and 32 deletions

View File

@ -1,6 +0,0 @@
namespace VPet_Simulator.Core
{
internal class Drink
{
}
}

View File

@ -1,6 +0,0 @@
namespace VPet_Simulator.Core
{
internal class Food
{
}
}

View File

@ -1,6 +0,0 @@
namespace VPet_Simulator.Core
{
internal class Item
{
}
}

View File

@ -43,7 +43,6 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
@ -52,7 +51,6 @@
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
@ -61,7 +59,6 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
@ -70,7 +67,6 @@
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
@ -159,9 +155,6 @@
<Compile Include="Handle\IController.cs" />
<Compile Include="Handle\PetLoader.cs" />
<Compile Include="Handle\GameSave.cs" />
<Compile Include="Item\Drink.cs" />
<Compile Include="Item\Food.cs" />
<Compile Include="Item\Item.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>

View File

@ -44,7 +44,10 @@ namespace VPet_Simulator.Windows.Interface
/// 所有三方插件
/// </summary>
List<MainPlugin> Plugins { get; }
/// <summary>
/// 所有食物
/// </summary>
List<Item> Items { get; }
/// <summary>
/// 设置游戏缩放倍率
/// </summary>

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VPet_Simulator.Windows.Interface
{
public class Item
{
}
}

View File

@ -112,6 +112,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="IMainWindow.cs" />
<Compile Include="Item.cs" />
<Compile Include="MainPlugin.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Setting.cs" />

View File

@ -27,6 +27,7 @@ namespace VPet_Simulator.Windows
/// 所有三方插件
/// </summary>
public List<MainPlugin> Plugins { get; } = new List<MainPlugin>();
public List<Item> Items { get; } = new List<Item>();
/// <summary>
/// 版本号
/// </summary>

View File

@ -273,13 +273,18 @@ namespace VPet_Simulator.Windows
//this.Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Res/TopLogo2019.PNG")));
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "喂食测试", () =>
{
Main.ToolBar.Visibility = Visibility.Collapsed;
IRunImage eat = (IRunImage)Core.Graph.FindGraph(GraphType.Eat, GameSave.ModeType.Nomal);
var b = Main.FindDisplayBorder(eat);
eat.Run(b, new BitmapImage(new Uri("pack://application:,,,/Res/tony.bmp")), Main.DisplayToNomal);
}
{
Main.ToolBar.Visibility = Visibility.Collapsed;
IRunImage eat = (IRunImage)Core.Graph.FindGraph(GraphType.Eat, GameSave.ModeType.Nomal);
var b = Main.FindDisplayBorder(eat);
eat.Run(b, new BitmapImage(new Uri("pack://application:,,,/Res/tony.bmp")), Main.DisplayToNomal);
}
);
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "给不二一测试用的窗口", () =>
{
new winBetterBuy(this).Show();
}
);
Main.SetMoveMode(Set.AllowMove, Set.SmartMove, Set.SmartMoveInterval * 1000);
Main.SetLogicInterval((int)(Set.LogicInterval * 1000));

View File

@ -113,6 +113,9 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="WinDesign\winBetterBuy.xaml.cs">
<DependentUpon>winBetterBuy.xaml</DependentUpon>
</Compile>
<Compile Include="WinDesign\TalkBoxAPI.xaml.cs">
<DependentUpon>TalkBoxAPI.xaml</DependentUpon>
</Compile>
@ -139,6 +142,10 @@
<Compile Include="WinDesign\winReport.xaml.cs">
<DependentUpon>winReport.xaml</DependentUpon>
</Compile>
<Page Include="WinDesign\winBetterBuy.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="WinDesign\TalkBoxAPI.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>

View File

@ -0,0 +1,12 @@
<Window x:Class="VPet_Simulator.Windows.winBetterBuy"
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_Simulator.Windows"
mc:Ignorable="d"
Title="winBetterBuy" Height="450" Width="800">
<Grid>
</Grid>
</Window>

View File

@ -0,0 +1,27 @@
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.Shapes;
namespace VPet_Simulator.Windows
{
/// <summary>
/// winBetterBuy.xaml 的交互逻辑
/// </summary>
public partial class winBetterBuy : Window
{
public winBetterBuy(MainWindow mw)
{
InitializeComponent();
}
}
}