mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
winBetterBuy
This commit is contained in:
parent
04ba45dba3
commit
24e79cbc3e
@ -1,6 +0,0 @@
|
|||||||
namespace VPet_Simulator.Core
|
|
||||||
{
|
|
||||||
internal class Drink
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
namespace VPet_Simulator.Core
|
|
||||||
{
|
|
||||||
internal class Food
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
namespace VPet_Simulator.Core
|
|
||||||
{
|
|
||||||
internal class Item
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -43,7 +43,6 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
@ -52,7 +51,6 @@
|
|||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
@ -61,7 +59,6 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
@ -70,7 +67,6 @@
|
|||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -159,9 +155,6 @@
|
|||||||
<Compile Include="Handle\IController.cs" />
|
<Compile Include="Handle\IController.cs" />
|
||||||
<Compile Include="Handle\PetLoader.cs" />
|
<Compile Include="Handle\PetLoader.cs" />
|
||||||
<Compile Include="Handle\GameSave.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">
|
<Compile Include="Properties\AssemblyInfo.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -44,7 +44,10 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
/// 所有三方插件
|
/// 所有三方插件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
List<MainPlugin> Plugins { get; }
|
List<MainPlugin> Plugins { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// 所有食物
|
||||||
|
/// </summary>
|
||||||
|
List<Item> Items { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 设置游戏缩放倍率
|
/// 设置游戏缩放倍率
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
13
VPet-Simulator.Windows.Interface/Item.cs
Normal file
13
VPet-Simulator.Windows.Interface/Item.cs
Normal 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
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -112,6 +112,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="IMainWindow.cs" />
|
<Compile Include="IMainWindow.cs" />
|
||||||
|
<Compile Include="Item.cs" />
|
||||||
<Compile Include="MainPlugin.cs" />
|
<Compile Include="MainPlugin.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Setting.cs" />
|
<Compile Include="Setting.cs" />
|
||||||
|
@ -27,6 +27,7 @@ namespace VPet_Simulator.Windows
|
|||||||
/// 所有三方插件
|
/// 所有三方插件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<MainPlugin> Plugins { get; } = new List<MainPlugin>();
|
public List<MainPlugin> Plugins { get; } = new List<MainPlugin>();
|
||||||
|
public List<Item> Items { get; } = new List<Item>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本号
|
/// 版本号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -273,13 +273,18 @@ namespace VPet_Simulator.Windows
|
|||||||
//this.Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Res/TopLogo2019.PNG")));
|
//this.Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Res/TopLogo2019.PNG")));
|
||||||
|
|
||||||
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "喂食测试", () =>
|
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "喂食测试", () =>
|
||||||
{
|
{
|
||||||
Main.ToolBar.Visibility = Visibility.Collapsed;
|
Main.ToolBar.Visibility = Visibility.Collapsed;
|
||||||
IRunImage eat = (IRunImage)Core.Graph.FindGraph(GraphType.Eat, GameSave.ModeType.Nomal);
|
IRunImage eat = (IRunImage)Core.Graph.FindGraph(GraphType.Eat, GameSave.ModeType.Nomal);
|
||||||
var b = Main.FindDisplayBorder(eat);
|
var b = Main.FindDisplayBorder(eat);
|
||||||
eat.Run(b, new BitmapImage(new Uri("pack://application:,,,/Res/tony.bmp")), Main.DisplayToNomal);
|
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.SetMoveMode(Set.AllowMove, Set.SmartMove, Set.SmartMoveInterval * 1000);
|
||||||
Main.SetLogicInterval((int)(Set.LogicInterval * 1000));
|
Main.SetLogicInterval((int)(Set.LogicInterval * 1000));
|
||||||
|
@ -113,6 +113,9 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
|
<Compile Include="WinDesign\winBetterBuy.xaml.cs">
|
||||||
|
<DependentUpon>winBetterBuy.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="WinDesign\TalkBoxAPI.xaml.cs">
|
<Compile Include="WinDesign\TalkBoxAPI.xaml.cs">
|
||||||
<DependentUpon>TalkBoxAPI.xaml</DependentUpon>
|
<DependentUpon>TalkBoxAPI.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -139,6 +142,10 @@
|
|||||||
<Compile Include="WinDesign\winReport.xaml.cs">
|
<Compile Include="WinDesign\winReport.xaml.cs">
|
||||||
<DependentUpon>winReport.xaml</DependentUpon>
|
<DependentUpon>winReport.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Page Include="WinDesign\winBetterBuy.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="WinDesign\TalkBoxAPI.xaml">
|
<Page Include="WinDesign\TalkBoxAPI.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
12
VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml
Normal file
12
VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml
Normal 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>
|
27
VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
Normal file
27
VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user