diff --git a/VPet-Simulator.Core/Handle/Function.cs b/VPet-Simulator.Core/Handle/Function.cs
index 2faf131..affa849 100644
--- a/VPet-Simulator.Core/Handle/Function.cs
+++ b/VPet-Simulator.Core/Handle/Function.cs
@@ -14,7 +14,7 @@ namespace VPet_Simulator.Core
///
public static Brush ResourcesBrush(BrushType name)
{
- return (Brush)Application.Current.Resources.MergedDictionaries[0][name.ToString()];
+ return (Brush)Application.Current.Resources.MergedDictionaries[0].MergedDictionaries[0][name.ToString()];
}
public enum BrushType
{
diff --git a/VPet-Simulator.Core/Handle/GameSave.cs b/VPet-Simulator.Core/Handle/GameSave.cs
index 182e496..ffbc174 100644
--- a/VPet-Simulator.Core/Handle/GameSave.cs
+++ b/VPet-Simulator.Core/Handle/GameSave.cs
@@ -174,7 +174,10 @@ namespace VPet_Simulator.Core
else
StrengthChange(StoreStrengthFood);
}
-
+ ///
+ /// 吃食物
+ ///
+ /// 食物类
public void EatFood(IFood food)
{
Exp += food.Exp;
diff --git a/VPet-Simulator.Core/VPet-Simulator.Core.csproj b/VPet-Simulator.Core/VPet-Simulator.Core.csproj
index b63860f..9e4c973 100644
--- a/VPet-Simulator.Core/VPet-Simulator.Core.csproj
+++ b/VPet-Simulator.Core/VPet-Simulator.Core.csproj
@@ -71,7 +71,7 @@
- ..\packages\LinePutScript.1.8.1\lib\net462\LinePutScript.dll
+ ..\packages\LinePutScript.1.8.2\lib\net462\LinePutScript.dll
..\packages\Panuon.WPF.1.0.1\lib\net462\Panuon.WPF.dll
diff --git a/VPet-Simulator.Core/packages.config b/VPet-Simulator.Core/packages.config
index 01cdc92..ea43eed 100644
--- a/VPet-Simulator.Core/packages.config
+++ b/VPet-Simulator.Core/packages.config
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/VPet-Simulator.Windows.Interface/Food.cs b/VPet-Simulator.Windows.Interface/Food.cs
index 55a658b..a1e3eb5 100644
--- a/VPet-Simulator.Windows.Interface/Food.cs
+++ b/VPet-Simulator.Windows.Interface/Food.cs
@@ -1,33 +1,118 @@
using LinePutScript.Converter;
+using Panuon.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Windows.Media;
using VPet_Simulator.Core;
+using static LinePutScript.Converter.LPSConvert;
namespace VPet_Simulator.Windows.Interface
{
- public class Food : IFood
+ public class Food : NotifyPropertyChangedBase, IFood
{
- [Line]
+
+ ///
+ /// 食物类型
+ ///
+ public enum FoodType
+ {
+ ///
+ /// 食物 (默认)
+ ///
+ Food,
+ ///
+ /// 收藏 (自定义)
+ ///
+ Star,
+ ///
+ /// 正餐
+ ///
+ Meal,
+ ///
+ /// 零食
+ ///
+ Snack,
+ ///
+ /// 饮料
+ ///
+ Drink,
+ ///
+ /// 功能性
+ ///
+ Functional,
+ ///
+ /// 药品
+ ///
+ Drug,
+ }
+ ///
+ /// 食物类型
+ ///
+ [Line(type: ConvertType.ToEnum, ignoreCase: true)]
+ public FoodType Type { get; set; } = FoodType.Food;
+ ///
+ /// 食物名字
+ ///
+ [Line(name: "name")]
+ public string Name { get; set; }
+ [Line(ignoreCase: true)]
public int Exp { get; set; }
- [Line]
+ [Line(ignoreCase: true)]
public double Strength { get; set; }
- [Line]
+ [Line(ignoreCase: true)]
public double StrengthFood { get; set; }
- [Line]
+ [Line(ignoreCase: true)]
public double StrengthDrink { get; set; }
- [Line]
+ [Line(ignoreCase: true)]
public double Feeling { get; set; }
- [Line]
+ [Line(ignoreCase: true)]
public double Health { get; set; }
- [Line]
+ [Line(ignoreCase: true)]
public double Likability { get; set; }
///
/// 食物价格
///
- [Line]
+ [Line(ignoreCase: true)]
public double Price { get; set; }
+ ///
+ /// 描述
+ ///
+ [Line(ignoreCase: true)]
+ public string Desc { get; set; }
+ ///
+ /// 描述(ToBetterBuy)
+ ///
+ public string Description
+ {
+ get
+ {
+ StringBuilder sb = new StringBuilder(Desc);
+ return sb.ToString();
+ }
+ }
+ ///
+ /// 显示的图片
+ ///
+ public ImageSource ImageSource { get; set; }
+ ///
+ /// 是否已收藏
+ ///
+ public bool Star { get; set; }
+ ///
+ /// 物品图片
+ ///
+ [Line(ignoreCase: true)]
+ public string Image;
+ ///
+ /// 加载物品图片
+ ///
+ public void LoadImageSource(IMainWindow imw)
+ {
+ ImageSource = imw.ImageSources.FindImage(Image ?? Name, "food");
+ Star = imw.Set["betterbuy"]["star"].GetInfos().Contains(Name);
+ }
}
}
diff --git a/VPet-Simulator.Windows.Interface/IMainWindow.cs b/VPet-Simulator.Windows.Interface/IMainWindow.cs
index be0c9b0..3e60d15 100644
--- a/VPet-Simulator.Windows.Interface/IMainWindow.cs
+++ b/VPet-Simulator.Windows.Interface/IMainWindow.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.Windows.Media;
using VPet_Simulator.Core;
namespace VPet_Simulator.Windows.Interface
@@ -47,7 +48,11 @@ namespace VPet_Simulator.Windows.Interface
///
/// 所有食物
///
- List Items { get; }
+ List Foods { get; }
+ ///
+ /// 图片资源
+ ///
+ ImageResources ImageSources { get; }
///
/// 设置游戏缩放倍率
///
diff --git a/VPet-Simulator.Windows.Interface/Source.cs b/VPet-Simulator.Windows.Interface/Source.cs
new file mode 100644
index 0000000..9560a1a
--- /dev/null
+++ b/VPet-Simulator.Windows.Interface/Source.cs
@@ -0,0 +1,170 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Media.Imaging;
+using LinePutScript;
+using LinePutScript.Dictionary;
+
+namespace VPet_Simulator.Windows.Interface
+{
+ ///
+ /// 资源集
+ ///
+ public class Resources : LPS_D
+ {
+ public Resources() { }
+ ///
+ /// 添加资源,后来覆盖之前
+ ///
+ /// 资源行
+ /// 功能位置
+ public void AddSource(ILine line, string modpath)
+ {
+ ISub source = line.Find("source");
+ if (source == null)
+ return;
+ //else if (!source.Info.Contains(":\\"))
+ source.Info = modpath + '\\' + source.Info;
+ line.Name = line.Name.ToLower();
+ AddorReplaceLine(line);
+ }
+ ///
+ /// 添加资源,后来覆盖之前
+ ///
+ /// 资源行
+ public void AddSource(ILine line)
+ {
+ ISub source = line.Find("source");
+ if (source == null)
+ return;
+ //else if (!source.Info.Contains(":\\"))
+ line.Name = line.Name.ToLower();
+ AddorReplaceLine(line);
+ }
+ ///
+ /// 添加多个资源,后来覆盖之前
+ ///
+ /// 资源表
+ public void AddSources(ILPS lps)
+ {
+ foreach (ILine line in lps)
+ {
+ line.Name = line.Name.ToLower();
+ AddSource(line);
+ }
+ }
+ ///
+ /// 添加多个资源,后来覆盖之前
+ ///
+ /// 资源表
+ /// 功能位置
+ public void AddSources(ILPS lps, string modpath = "")
+ {
+ foreach (ILine line in lps)
+ {
+ AddSource(line, modpath);
+ }
+ }
+ ///
+ /// 添加资源,后来覆盖之前的
+ ///
+ /// 资源名字
+ /// 资源位置
+ public void AddSource(string name, string path)
+ {
+ AddorReplaceLine(new Line(name.ToLower(), "", "", new Sub("source", path)));
+ }
+ ///
+ /// 查找资源
+ ///
+ /// 资源名称
+ /// 如果未找到,退回这个值
+ /// 返回资源位置,如果未找到,则退回nofind
+ public string FindSource(string name, string nofind = null)
+ {
+ ILine line = FindLine(name.ToLower());
+ if (line == null)
+ return nofind;
+ return line.Find("source").Info;
+ }
+ ///
+ /// 查找资源
+ ///
+ /// 资源名称
+ /// 如果未找到,退回这个值
+ /// 返回资源位置,如果未找到,则退回nofind
+ public Uri FindSourceUri(string name, string nofind = null)
+ {
+ ILine line = FindLine(name.ToLower());
+ if (line == null)
+ if (nofind != null)
+ return new Uri(nofind);
+ else
+ return null;
+ return new Uri(line.Find("source").Info);
+ }
+ }
+
+ ///
+ /// 图片资源集合
+ ///
+ public class ImageResources : Resources
+ {
+ public ImageResources()
+ {
+
+ }
+ ///
+ /// 添加图片集,后来覆盖之前
+ ///
+ /// 图片集
+ /// 文件夹位置
+ public void AddImages(LpsDocument lps, string modpath = "") => AddSources(lps, modpath);
+ ///
+ /// 添加单个图片,后来覆盖之前
+ ///
+ /// 图片行
+ /// 文件夹位置
+ public void AddImage(ILine line, string modpath = "") => AddSource(line, modpath);
+ ///
+ /// 查找图片资源
+ ///
+ /// 图片名称
+ /// 图片资源,如果未找到则退回错误提示图片
+ public BitmapImage FindImage(string imagename) => new BitmapImage(FindImageUri(imagename));
+
+ public Uri FindImageUri(string imagename)
+ {
+#if DEBUGs
+ var v = FindSourceUri(imagename, "pack://application:,,,/Res/Image/system/error.png");
+ if (v.AbsoluteUri == "pack://application:,,,/Res/Image/system/error.png")
+ throw new Exception($"image nofound {imagename}");
+ return v;
+#else
+ return FindSourceUri(imagename, "pack://application:,,,/Res/Image/system/error.png");
+#endif
+ }
+
+ ///
+ /// 查找图片资源 如果找不到则使用上级
+ ///
+ /// 图片名称
+ /// 图片资源,如果未找到则退回错误提示图片
+ /// 上级图片 如果没有专属的图片,则提供上级的图片
+ public BitmapImage FindImage(string imagename, string superior)
+ {
+ string source = FindSource(imagename);
+ if (source == null)
+ {
+ return new BitmapImage(FindImageUri(superior));
+ }
+ return new BitmapImage(new Uri(source));
+ }
+ ///
+ /// 图片设置 (eg:定位锚点等)
+ ///
+ public LpsDocument ImageSetting = new LpsDocument();
+ }
+}
diff --git a/VPet-Simulator.Windows.Interface/VPet-Simulator.Windows.Interface.csproj b/VPet-Simulator.Windows.Interface/VPet-Simulator.Windows.Interface.csproj
index c3d6769..69b35d7 100644
--- a/VPet-Simulator.Windows.Interface/VPet-Simulator.Windows.Interface.csproj
+++ b/VPet-Simulator.Windows.Interface/VPet-Simulator.Windows.Interface.csproj
@@ -89,7 +89,7 @@
- ..\packages\LinePutScript.1.8.1\lib\net462\LinePutScript.dll
+ ..\packages\LinePutScript.1.8.2\lib\net462\LinePutScript.dll
..\packages\Panuon.WPF.1.0.1\lib\net462\Panuon.WPF.dll
@@ -116,6 +116,7 @@
+
diff --git a/VPet-Simulator.Windows.Interface/packages.config b/VPet-Simulator.Windows.Interface/packages.config
index 01cdc92..ea43eed 100644
--- a/VPet-Simulator.Windows.Interface/packages.config
+++ b/VPet-Simulator.Windows.Interface/packages.config
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/VPet-Simulator.Windows/App.xaml b/VPet-Simulator.Windows/App.xaml
index e902a27..9d1b4f7 100644
--- a/VPet-Simulator.Windows/App.xaml
+++ b/VPet-Simulator.Windows/App.xaml
@@ -7,6 +7,7 @@
+
/VPet-Simulator.Windows;component/Res/Font/#OPPOSans R
@@ -22,7 +23,6 @@
IconFontFamily="/VPet-Simulator.Windows;component/Res/#remixicon"
IconFontSize="16" />
-
diff --git a/VPet-Simulator.Windows/Function/CoreMOD.cs b/VPet-Simulator.Windows/Function/CoreMOD.cs
index aed9c4e..b6412fe 100644
--- a/VPet-Simulator.Windows/Function/CoreMOD.cs
+++ b/VPet-Simulator.Windows/Function/CoreMOD.cs
@@ -1,4 +1,5 @@
using LinePutScript;
+using LinePutScript.Converter;
using System;
using System.Collections.Generic;
using System.IO;
@@ -35,6 +36,29 @@ namespace VPet_Simulator.Windows
public string Content = "";
public bool SuccessLoad = true;
public static string INTtoVER(int ver) => $"{ver / 100}.{ver % 100:00}";
+ public static void LoadImage(MainWindow mw, DirectoryInfo di)
+ {
+ //加载其他放在文件夹的图片
+ foreach (FileInfo fi in di.EnumerateFiles("*.png"))
+ {
+ mw.ImageSources.AddSource(fi.Name.ToLower().Substring(0, fi.Name.Length - 4), fi.FullName);
+ }
+ //加载其他放在文件夹中文件夹的图片
+ foreach (DirectoryInfo fordi in di.EnumerateDirectories())
+ {
+ LoadImage(mw, fordi);
+ }
+ //加载标志好的图片和图片设置
+ foreach (FileInfo fi in di.EnumerateFiles("*.lps"))
+ {
+ var tmp = new LpsDocument(File.ReadAllText(fi.FullName));
+ if (fi.Name.ToLower().StartsWith("set_"))
+ foreach (var line in tmp)
+ mw.ImageSources.ImageSetting.AddorReplaceLine(line);
+ else
+ mw.ImageSources.AddImages(tmp, di.FullName);
+ }
+ }
public CoreMOD(DirectoryInfo directory, MainWindow mw)
{
Path = directory;
@@ -83,6 +107,23 @@ namespace VPet_Simulator.Windows
}
}
break;
+ case "food":
+ Content += "食物\n";
+ foreach (FileInfo fi in di.EnumerateFiles("*.lps"))
+ {
+ var tmp = new LpsDocument(File.ReadAllText(fi.FullName));
+ foreach (ILine li in tmp)
+ {
+ string tmps = li.Find("name").info;
+ mw.Foods.RemoveAll(x => x.Name == tmps);
+ mw.Foods.Add(LPSConvert.DeserializeObject(li));
+ }
+ }
+ break;
+ case "image":
+ Content += "图片包\n";
+ LoadImage(mw, di);
+ break;
case "plugin":
Content += "代码插件\n";
SuccessLoad = false;
@@ -133,7 +174,7 @@ namespace VPet_Simulator.Windows
modlps.FindorAddLine("authorid").InfoToInt64 = AuthorID;
modlps.FindorAddLine("itemid").info = ItemID.ToString();
File.WriteAllText(Path.FullName + @"\info.lps", modlps.ToString());
- }
+ }
}
public static class ExtensionSetting
{
diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs
index 5456bf8..2376865 100644
--- a/VPet-Simulator.Windows/MainWindow.cs
+++ b/VPet-Simulator.Windows/MainWindow.cs
@@ -22,12 +22,14 @@ namespace VPet_Simulator.Windows
public Main Main { get; set; }
public UIElement TalkBox;
public winGameSetting winSetting { get; set; }
+ public winBetterBuy winBetterBuy { get; set; }
public ChatGPTClient CGPTClient;
+ public ImageResources ImageSources { get; set; } = new ImageResources();
///
/// 所有三方插件
///
public List Plugins { get; } = new List();
- public List Items { get; } = new List();
+ public List Foods { get; } = new List();
///
/// 版本号
///
diff --git a/VPet-Simulator.Windows/MainWindow.xaml.cs b/VPet-Simulator.Windows/MainWindow.xaml.cs
index 8495fe1..dcb153a 100644
--- a/VPet-Simulator.Windows/MainWindow.xaml.cs
+++ b/VPet-Simulator.Windows/MainWindow.xaml.cs
@@ -218,6 +218,7 @@ namespace VPet_Simulator.Windows
LoadingText.Content = "正在加载CGPT";
winSetting = new winGameSetting(this);
+ winBetterBuy = new winBetterBuy(this);
Main = new Main(Core) { };
if (!Set["CGPT"][(gbol)"enable"] && IsSteamUser)
{
@@ -240,6 +241,8 @@ namespace VPet_Simulator.Windows
{
new winReport(this, "由于插件引起的游戏启动错误\n" + e.ToString()).Show();
}
+ Foods.ForEach(item => item.LoadImageSource(this));
+
Main.DefaultClickAction = () =>
{
if (new TimeSpan(DateTime.Now.Ticks - lastclicktime).TotalSeconds > 20)
@@ -277,15 +280,24 @@ namespace VPet_Simulator.Windows
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);
+ eat.Run(b, new BitmapImage(new Uri("pack://application:,,,/Res/汉堡.png")), Main.DisplayToNomal);
}
);
- Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "给不二一测试用的窗口", () =>
+ Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "吃饭", () =>
+ {
+ winBetterBuy.Show(Food.FoodType.Meal);
+ }
+ );
+ Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "喝水", () =>
{
- new winBetterBuy(this).Show();
+ winBetterBuy.Show(Food.FoodType.Drink);
}
- );
-
+ );
+ Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "药品", () =>
+ {
+ winBetterBuy.Show(Food.FoodType.Drug);
+ }
+ );
Main.SetMoveMode(Set.AllowMove, Set.SmartMove, Set.SmartMoveInterval * 1000);
Main.SetLogicInterval((int)(Set.LogicInterval * 1000));
if (Set.MessageBarOutside)
diff --git a/VPet-Simulator.Windows/Res/汉堡.png b/VPet-Simulator.Windows/Res/汉堡.png
new file mode 100644
index 0000000..933e32d
Binary files /dev/null and b/VPet-Simulator.Windows/Res/汉堡.png differ
diff --git a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj
index fbf51f9..7a5fbd7 100644
--- a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj
+++ b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj
@@ -76,10 +76,10 @@
- ..\packages\ChatGPT.API.Framework.1.0.2\lib\net462\ChatGPT.API.Framework.dll
+ ..\packages\ChatGPT.API.Framework.1.0.4\lib\net462\ChatGPT.API.Framework.dll
- ..\packages\LinePutScript.1.8.1\lib\net48\LinePutScript.dll
+ ..\packages\LinePutScript.1.8.2\lib\net48\LinePutScript.dll
..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll
@@ -252,6 +252,7 @@
+
PreserveNewest
diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml
index ad5d976..aabb94d 100644
--- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml
+++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml
@@ -1,89 +1,46 @@
+ 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:pu="https://opensource.panuon.com/wpf-ui" xmlns:local="clr-namespace:VPet_Simulator.Windows"
+ mc:Ignorable="d" Title="更好买" Height="450" Width="800" FontSize="14" WindowStartupLocation="CenterScreen"
+ Background="#E0F6FF" pu:WindowXCaption.Height="45" pu:WindowXCaption.Background="{DynamicResource DARKPrimary}"
+ pu:WindowXCaption.Foreground="#FFFFFF" pu:WindowXCaption.Buttons="Close" Topmost="True"
+ pu:WindowXCaption.ShadowColor="{DynamicResource ShadowColor}" Closing="WindowX_Closing">
-
-
-
+
+
-
-
+
@@ -97,27 +54,18 @@
-
-
+
+
-
-
-
+
+
+
@@ -125,71 +73,44 @@
-
-
-
+
+
+
-
+
+
-
+
-
+
@@ -197,22 +118,13 @@
-
-
-
+
+
+
@@ -223,49 +135,35 @@
-
-
+
-
+
+
-
-
-
-
-
-
+
+
+
@@ -277,76 +175,60 @@
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
+
+
+
+
+
-
-
+
+
-
+
-
+
@@ -354,10 +236,8 @@
-
+
diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
index 6b12fbf..8c323b8 100644
--- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
+++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
@@ -14,6 +14,10 @@ using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
+using VPet_Simulator.Core;
+using VPet_Simulator.Windows.Interface;
+using static VPet_Simulator.Core.GraphCore;
+using static VPet_Simulator.Core.IGraph;
namespace VPet_Simulator.Windows
{
@@ -23,45 +27,124 @@ namespace VPet_Simulator.Windows
public partial class winBetterBuy : WindowX
{
private TextBox _searchTextBox;
+ MainWindow mw;
+ private bool AllowChange = false;
public winBetterBuy(MainWindow mw)
{
InitializeComponent();
-
- IcCommodity.ItemsSource = new List()
+ this.mw = mw;
+ LsbSortRule.SelectedIndex = mw.Set["betterbuy"].GetInt("lastorder");
+ LsbSortAsc.SelectedIndex = mw.Set["betterbuy"].GetBool("lastasc") ? 0 : 1;
+ AllowChange = true;
+ }
+ public void Show(Food.FoodType type)
+ {
+ LsbCategory.SelectedIndex = (int)type;
+ //OrderItemSource(type, LsbSortRule.SelectedIndex, LsbSortAsc.SelectedIndex);
+ Show();
+ }
+ public void OrderItemSource(Food.FoodType type, int sortrule, bool sortasc)
+ {
+ Task.Run(() =>
{
- new BetterBuyItem()
+ IList foods;
+ switch (type)
{
- Name = "商品A",
- Description = "一件商品",
- ImageShot = new BitmapImage(new Uri("/VPet-Simulator.Windows;component/Res/tony.bmp", UriKind.RelativeOrAbsolute)),
- },
- new BetterBuyItem()
+ case Food.FoodType.Food:
+ foods = mw.Foods;
+ break;
+ case Food.FoodType.Star:
+ //List lf = new List();
+ //foreach (var sub in mw.Set["betterbuy"].FindAll("star"))
+ //{
+ // var str = sub.Info;
+ // var food = mw.Foods.FirstOrDefault(x => x.Name == str);
+ // if (food != null)
+ // lf.Add(food);
+ //}
+ //foods = lf;
+ foods = mw.Foods.FindAll(x => x.Star);
+ break;
+ default:
+ foods = mw.Foods.FindAll(x => x.Type == type);
+ break;
+ }
+ IOrderedEnumerable ordered;
+ switch (sortrule)
{
- Name = "商品B",
- Description = "一件商品",
- ImageShot = new BitmapImage(new Uri("/VPet-Simulator.Windows;component/Res/tony.bmp", UriKind.RelativeOrAbsolute)),
- },
- };
+ case 0:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.Name);
+ else
+ ordered = foods.OrderByDescending(x => x.Name);
+ break;
+ case 1:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.Price);
+ else
+ ordered = foods.OrderByDescending(x => x.Price);
+ break;
+ case 2:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.StrengthFood);
+ else
+ ordered = foods.OrderByDescending(x => x.StrengthFood);
+ break;
+ case 3:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.StrengthDrink);
+ else
+ ordered = foods.OrderByDescending(x => x.StrengthDrink);
+ break;
+ case 4:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.Strength);
+ else
+ ordered = foods.OrderByDescending(x => x.Strength);
+ break;
+ case 5:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.Feeling);
+ else
+ ordered = foods.OrderByDescending(x => x.Feeling);
+ break;
+ default:
+ if (sortasc)
+ ordered = foods.OrderBy(x => x.Health);
+ else
+ ordered = foods.OrderByDescending(x => x.Health);
+ break;
+ }
+ Dispatcher.Invoke(() =>
+ {
+ IcCommodity.ItemsSource = ordered;
+ });
+ });
}
- private void RbtnIncrease_Click(object sender, RoutedEventArgs e)
- {
- var repeatButton = sender as RepeatButton;
- var item = repeatButton.DataContext as BetterBuyItem;
- item.Quantity = Math.Max(1, item.Quantity + 1);
- }
+ //private void RbtnIncrease_Click(object sender, RoutedEventArgs e)
+ //{
+ // var repeatButton = sender as RepeatButton;
+ // var item = repeatButton.DataContext as BetterBuyItem;
+ // item.Quantity = Math.Max(1, item.Quantity + 1);
+ //}
- private void RbtnDecrease_Click(object sender, RoutedEventArgs e)
- {
- var repeatButton = sender as RepeatButton;
- var item = repeatButton.DataContext as BetterBuyItem;
- item.Quantity = Math.Max(1, item.Quantity - 1);
- }
+ //private void RbtnDecrease_Click(object sender, RoutedEventArgs e)
+ //{
+ // var repeatButton = sender as RepeatButton;
+ // var item = repeatButton.DataContext as BetterBuyItem;
+ // item.Quantity = Math.Max(1, item.Quantity - 1);
+ //}
private void BtnBuy_Click(object sender, RoutedEventArgs e)
{
-
+ this.Hide();
+ var Button = sender as Button;
+ var item = Button.DataContext as Food;
+ IRunImage eat = (IRunImage)mw.Core.Graph.FindGraph(GraphType.Eat, GameSave.ModeType.Nomal);
+ var b = mw.Main.FindDisplayBorder(eat);
+ eat.Run(b, item.ImageSource, mw.Main.DisplayToNomal);
}
private void BtnSearch_Click(object sender, RoutedEventArgs e)
@@ -88,47 +171,22 @@ namespace VPet_Simulator.Windows
{
_searchTextBox = sender as TextBox;
}
- }
- public class BetterBuyItem
- : NotifyPropertyChangedBase
- {
- ///
- /// 物品图像
- ///
- public ImageSource ImageShot { get; set; }
- ///
- /// 名称
- ///
- public string Name { get; set; }
- ///
- /// 显示名称
- ///
- public string DisplayName { get; set; }
- ///
- /// 物品描述
- ///
- public string Description { get; set; }
- ///
- /// 物品分类
- ///
- public string[] Categories { get; set; }
- ///
- /// 物品价格
- ///
- public double Price { get; set; }
- ///
- /// 商品实际价格
- ///
- public double RealPrice { get; set; }
- ///
- /// 选择的物品个数
- ///
- public int Quantity { get => _quantity; set => Set(ref _quantity, value); }
- private int _quantity;
- ///
- /// 商品折扣 (100%)
- ///
- public int Discount { get; set; }
+ private void LsbSortRule_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (!AllowChange)
+ return;
+ int order = LsbSortRule.SelectedIndex;
+ bool asc = LsbSortAsc.SelectedIndex == 0;
+ mw.Set["betterbuy"].SetInt("lastorder", order);
+ mw.Set["betterbuy"].SetBool("lastasc", asc);
+ OrderItemSource((Food.FoodType)LsbCategory.SelectedIndex, order, asc);
+ }
+
+ private void WindowX_Closing(object sender, System.ComponentModel.CancelEventArgs e)
+ {
+ e.Cancel = true;
+ Hide();
+ }
}
}
diff --git a/VPet-Simulator.Windows/mod/0000_core/food/food.lps b/VPet-Simulator.Windows/mod/0000_core/food/food.lps
new file mode 100644
index 0000000..ab34ddb
--- /dev/null
+++ b/VPet-Simulator.Windows/mod/0000_core/food/food.lps
@@ -0,0 +1,63 @@
+food:|type#Drink:|name#ab钙奶:|price#5.0:|desc#健康美味,经济实惠:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#5:|Health#1:|Feeling#1:|
+food:|type#Drink:|name#果汁:|price#7.0:|desc#那个那个那个那个果汁分你一半:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#4:|Health#3:|Feeling#3:|
+food:|type#Drink:|name#可乐:|price#6.5:|desc#蓝色那个在日用品区谢谢:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#2:|Health#-1:|Feeling#20:|
+food:|type#Drink:|name#凉茶:|price#12.0:|desc#怕上火,喝广东咖啡!:|Exp#50:|Strength#50:|StrengthDrink#50:|StrengthFood#1:|Health#5:|Feeling#5:|
+food:|type#Drink:|name#维他奶:|price#5.5:|desc#:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#5:|Health#1:|Feeling#1:|
+food:|type#Drink:|name#雷碧:|price#5.5:|desc#透心扬,心飞凉:|Exp#6:|Strength#6:|StrengthDrink#6:|StrengthFood#3:|Health#-1:|Feeling#15:|
+food:|type#Drink:|name#盐汽水:|price#6.0:|desc#我一口盐汽水!:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#3:|Health#-0.5:|Feeling#15:|
+food:|type#Drink:|name#椰汁:|price#8.0:|desc#白白胖胖,曲线圆润,要喝不加香油的椰O牌椰汁:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#4:|Health#2:|Feeling#10:|
+food:|type#Functional:|name#咖啡饮料:|price#9.0:|desc#不小心倒在键盘上效果更好哦!:|Exp#80:|Strength#80:|StrengthDrink#80:|StrengthFood#3:|Health#-1:|Feeling#:|
+food:|type#Functional:|name#大鹏特饮:|price#11.5:|desc#困了累了,大鹏特饮:|Exp#120:|Strength#120:|StrengthDrink#120:|StrengthFood#3:|Health#-1:|Feeling#10:|
+food:|type#Functional:|name#黄牛:|price#13.0:|desc#放心,喝他的饮料不是他出钱你出命:|Exp#160:|Strength#160:|StrengthDrink#160:|StrengthFood#3:|Health#-1:|Feeling#10:|
+food:|type#Functional:|name#能量饮料:|price#14.0:|desc#:|Exp#280:|Strength#280:|StrengthDrink#280:|StrengthFood#3:|Health#-5:|Feeling#8:|
+food:|type#Functional:|name#土力架:|price#11.5:|desc#横扫自己,做回饥饿:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#80:|Health#0:|Feeling#:|
+food:|type#Functional:|name#压缩饼干:|price#12.5:|desc#饼干.rar:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#100:|Feeling#:|
+food:|type#Snack:|name#爆米花:|price#5.5:|desc#电影必备,吃不完也要买:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#30:|Health#-1:|Feeling#10:|
+food:|type#Snack:|name#冰激凌:|price#6.0:|desc#中国人免费领:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#24:|Health#-0.5:|Feeling#20:|
+food:|type#Snack:|name#瓜子:|price#5.5:|desc#嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱嘎吱:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#26:|Feeling#15:|
+food:|type#Snack:|name#核桃仁:|price#8.5:|desc#这次不用自己带锤子了:|Exp#80:|Strength#80:|StrengthDrink#80:|StrengthFood#5:|Health#5:|Feeling#:|
+food:|type#Snack:|name#火腿肠:|price#6.0:|desc#:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#38:|Health#-0.5:|Feeling#:|
+food:|type#Snack:|name#花生米:|price#3.0:|desc#但凡有一粒花生米。。。:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#20:|Health#-0.5:|Feeling#:|
+food:|type#Snack:|name#戒指糖:|price#1.5:|desc#这不比那个不能吃的破石头有用多了:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#10:|Health#-0.5:|Feeling#:|
+food:|type#Snack:|name#老冰棍:|price#3.0:|desc#厂家正在考虑与辐射4联动中:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#5:|Health#-0.5:|Feeling#2:|
+food:|type#Snack:|name#绿色心情:|price#2.5:|desc#几年前还是一块钱的呜呜呜:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#5:|Health#-0.5:|Feeling#5:|
+food:|type#Snack:|name#奶片:|price#2.5:|desc#希望你们永远不会知道这个药。。。:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#8:|Feeling#7:|
+food:|type#Snack:|name#奶糖:|price#4.5:|desc#小白兔牌:|Exp#30:|Strength#30:|StrengthDrink#30:|StrengthFood#15:|Feeling#15:|
+food:|type#Snack:|name#牛板筋:|price#2.5:|desc#只要来一根,大家都是好兄弟:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#8:|Health#-1:|Feeling#10:|
+food:|type#Snack:|name#牛扎糖:|price#3.0:|desc#好甜,像你一样:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#8:|Feeling#15:|
+food:|type#Snack:|name#泡泡糖:|price#3.5:|desc#就吹吧你:|Exp#30:|Strength#30:|StrengthDrink#30:|StrengthFood#5:|Feeling#17:|
+food:|type#Snack:|name#巧克力:|price#7.0:|desc#纵享丝滑:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#38:|Feeling#15:|
+food:|type#Snack:|name#软糖:|price#2.5:|desc#come on baby~:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#12:|Feeling#5:|
+food:|type#Snack:|name#薯片:|price#5.5:|desc#开趴必备:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#28:|Feeling#5:|
+food:|type#Snack:|name#娃仔小馒头:|price#3.5:|desc#这是我们的宝贝~~:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#12:|Feeling#10:|
+food:|type#Snack:|name#小布丁:|price#3.0:|desc#没关系,小小的也很好吃:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#10:|Feeling#5:|
+food:|type#Snack:|name#雪饼:|price#4.0:|desc#小时候的一口吃不下:|Exp#20:|Strength#20:|StrengthDrink#20:|StrengthFood#15:|Feeling#10:|
+food:|type#Snack:|name#散射雪糕:|price#4.5:|desc#三倍的快乐:|Exp#10:|Strength#10:|StrengthDrink#10:|StrengthFood#20:|Feeling#10:|
+food:|type#Snack:|name#猪肉脯:|price#9.5:|desc#你感觉在吃牛皮。。:|Exp#30:|Strength#30:|StrengthFood#48:|Feeling#15:|
+food:|type#Meal:|name#臭豆腐:|price#14.5:|desc#闻起来臭,吃起来也臭,就是越吃越香。:|Exp#100:|Strength#100:|StrengthFood#55:|Feeling#5:|
+food:|type#Meal:|name#东坡肘子:|price#30.5:|desc#小知识:东坡肘子其实并非苏东坡之功,而是其妻子王弗的妙作:|Exp#300:|Strength#300:|StrengthFood#85:|Health#1:|Feeling#30:|
+food:|type#Meal:|name#番茄意面:|price#28.0:|desc#只要不是巧克力酱什么都好说。。:|Exp#200:|Strength#200:|StrengthFood#110:|Health#1:|Feeling#20:|
+food:|type#Meal:|name#红烧狮子头:|price#32.0:|desc#芋头西米露:|Exp#300:|Strength#300:|StrengthFood#90:|Health#1:|Feeling#30:|
+food:|type#Meal:|name#红烧牛肉:|price#37.5:|desc#不是4块钱的,请放心:|Exp#300:|Strength#300:|StrengthFood#130:|Health#1:|Feeling#30:|
+food:|type#Meal:|name#华夫饼:|price#22.0:|desc#蜜饼!小刻最爱!:|Exp#140:|Strength#140:|StrengthFood#80:|Feeling#30:|
+food:|type#Meal:|name#鸡翅:|price#16.5:|desc#红烧翅膀~我喜欢吃~:|Exp#60:|Strength#60:|StrengthFood#75:|Feeling#20:|
+food:|type#Meal:|name#煎西冷牛排:|price#52.0:|desc#开瓶可乐吧,上流:|Exp#450:|Strength#450:|StrengthFood#150:|Health#5:|Feeling#40:|
+food:|type#Meal:|name#辣子鸡:|price#35.5:|desc#当红辣子鸡哟:|Exp#300:|Strength#300:|StrengthFood#120:|Feeling#40:|
+food:|type#Meal:|name#罗宋汤:|price#28.5:|desc#咲夜!“给我吃!”:|Exp#200:|Strength#200:|StrengthFood#110:|Feeling#30:|
+food:|type#Meal:|name#麻婆豆腐:|price#26.0:|desc#麻婆豆腐之所以叫麻婆豆腐是因为麻婆喜欢吃:|Exp#150:|Strength#150:|StrengthFood#110:|Feeling#30:|
+food:|type#Meal:|name#梅菜扣肉:|price#29.5:|desc#不会咬人的谢谢:|Exp#250:|Strength#250:|StrengthFood#100:|Feeling#25:|
+food:|type#Meal:|name#面包:|price#14.5:|desc#你还记得你吃过多少块面包吗:|Strength#:|StrengthFood#100:|
+food:|type#Meal:|name#南瓜吐司:|price#20.5:|desc#加了南瓜!是的!我加了南瓜!:|Exp#100:|Strength#100:|StrengthFood#100:|Feeling#15:|
+food:|type#Meal:|name#酿豆腐:|price#21.0:|desc#你中有我,我中有你:|Exp#150:|Strength#150:|StrengthFood#80:|Feeling#15:|
+food:|type#Meal:|name#披萨:|price#31.5:|desc#不要放菠萝!!!:|Exp#300:|Strength#300:|StrengthFood#100:|Feeling#20:|
+food:|type#Meal:|name#三明治:|price#18.5:|desc#两面包夹芝士:|Exp#100:|Strength#100:|StrengthFood#85:|Feeling#15:|
+food:|type#Meal:|name#沙拉:|price#38.5:|desc#沙拉沙拉啦啦啦:|Exp#300:|Strength#300:|StrengthFood#80:|Health#10:|Feeling#5:|
+food:|type#Meal:|name#烧鹅:|price#33.0:|desc#官方特意调整成鹅的,这让我文案不好做啊,我就要在这里写上烧鸡两个大字!:|Exp#300:|Strength#300:|StrengthFood#100:|Feeling#30:|
+food:|type#Meal:|name#酸菜鱼:|price#34.5:|desc#人人皆是酸菜鱼:|Exp#300:|Strength#300:|StrengthFood#110:|Feeling#35:|
+food:|type#Meal:|name#西冷牛排:|price#52.5:|desc#开瓶拉菲吧,上流:|Exp#500:|Strength#500:|StrengthFood#140:|Health#5:|Feeling#40:|
+food:|type#Meal:|name#香煎牛仔骨:|price#68.0:|desc#开瓶红酒吧,上流:|Exp#600:|Strength#600:|StrengthFood#160:|Health#10:|Feeling#50:|
+food:|type#Meal:|name#盐焗鸡:|price#31.0:|desc#谁说的腌鸡!站出来!:|Exp#300:|Strength#300:|StrengthFood#90:|Feeling#30:|
+food:|type#Meal:|name#芝士焗虾:|price#25.5:|desc#焗虾闭嘴:|Exp#250:|Strength#250:|StrengthFood#70:|Feeling#30:|
+food:|type#Meal:|name#纸包鸡:|price#24.0:|desc#纸包鸡包纸包鸡包鸡包纸:|Exp#200:|Strength#200:|StrengthFood#75:|Feeling#30:|
+food:|type#Meal:|name#炸鸡腿:|price#12.5:|desc#:|Exp#100:|Strength#100:|StrengthFood#40:|Feeling#20:|
+food:|type#Meal:|name#汉堡:|price#15.5:|desc#还想要汉O王?这价格不是华O士已经对你很好了。:|Exp#100:|Strength#100:|StrengthFood#60:|Feeling#20:|
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food.png b/VPet-Simulator.Windows/mod/0000_core/image/food.png
new file mode 100644
index 0000000..691ea8a
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/ab钙奶.png b/VPet-Simulator.Windows/mod/0000_core/image/food/ab钙奶.png
new file mode 100644
index 0000000..865c523
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/ab钙奶.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/三明治.png b/VPet-Simulator.Windows/mod/0000_core/image/food/三明治.png
new file mode 100644
index 0000000..691ea8a
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/三明治.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/东坡肘子.png b/VPet-Simulator.Windows/mod/0000_core/image/food/东坡肘子.png
new file mode 100644
index 0000000..3821479
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/东坡肘子.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/冰激凌.png b/VPet-Simulator.Windows/mod/0000_core/image/food/冰激凌.png
new file mode 100644
index 0000000..0bf6eef
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/冰激凌.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/凉茶.png b/VPet-Simulator.Windows/mod/0000_core/image/food/凉茶.png
new file mode 100644
index 0000000..aff0e79
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/凉茶.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/华夫饼.png b/VPet-Simulator.Windows/mod/0000_core/image/food/华夫饼.png
new file mode 100644
index 0000000..47cffb9
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/华夫饼.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/南瓜吐司.png b/VPet-Simulator.Windows/mod/0000_core/image/food/南瓜吐司.png
new file mode 100644
index 0000000..b5b6fff
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/南瓜吐司.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/压缩饼干.png b/VPet-Simulator.Windows/mod/0000_core/image/food/压缩饼干.png
new file mode 100644
index 0000000..9051c68
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/压缩饼干.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/可乐.png b/VPet-Simulator.Windows/mod/0000_core/image/food/可乐.png
new file mode 100644
index 0000000..73c1ecf
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/可乐.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/咖啡饮料.png b/VPet-Simulator.Windows/mod/0000_core/image/food/咖啡饮料.png
new file mode 100644
index 0000000..fc52a70
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/咖啡饮料.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/土力架.png b/VPet-Simulator.Windows/mod/0000_core/image/food/土力架.png
new file mode 100644
index 0000000..b9baa86
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/土力架.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/大鹏特饮.png b/VPet-Simulator.Windows/mod/0000_core/image/food/大鹏特饮.png
new file mode 100644
index 0000000..a00388b
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/大鹏特饮.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/奶片.png b/VPet-Simulator.Windows/mod/0000_core/image/food/奶片.png
new file mode 100644
index 0000000..5fdbbb5
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/奶片.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/奶糖.png b/VPet-Simulator.Windows/mod/0000_core/image/food/奶糖.png
new file mode 100644
index 0000000..5341901
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/奶糖.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/娃仔小馒头.png b/VPet-Simulator.Windows/mod/0000_core/image/food/娃仔小馒头.png
new file mode 100644
index 0000000..988315c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/娃仔小馒头.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/小布丁.png b/VPet-Simulator.Windows/mod/0000_core/image/food/小布丁.png
new file mode 100644
index 0000000..8ed7e36
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/小布丁.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/巧克力.png b/VPet-Simulator.Windows/mod/0000_core/image/food/巧克力.png
new file mode 100644
index 0000000..69f4411
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/巧克力.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/戒指糖.png b/VPet-Simulator.Windows/mod/0000_core/image/food/戒指糖.png
new file mode 100644
index 0000000..63b581a
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/戒指糖.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/披萨.png b/VPet-Simulator.Windows/mod/0000_core/image/food/披萨.png
new file mode 100644
index 0000000..cc87cb6
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/披萨.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/散射雪糕.png b/VPet-Simulator.Windows/mod/0000_core/image/food/散射雪糕.png
new file mode 100644
index 0000000..35712fd
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/散射雪糕.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/果汁.png b/VPet-Simulator.Windows/mod/0000_core/image/food/果汁.png
new file mode 100644
index 0000000..50d8fe5
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/果汁.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/核桃仁.png b/VPet-Simulator.Windows/mod/0000_core/image/food/核桃仁.png
new file mode 100644
index 0000000..012a150
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/核桃仁.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/梅菜扣肉.png b/VPet-Simulator.Windows/mod/0000_core/image/food/梅菜扣肉.png
new file mode 100644
index 0000000..fb9e8cb
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/梅菜扣肉.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/椰汁.png b/VPet-Simulator.Windows/mod/0000_core/image/food/椰汁.png
new file mode 100644
index 0000000..6d8f049
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/椰汁.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/汉堡.png b/VPet-Simulator.Windows/mod/0000_core/image/food/汉堡.png
new file mode 100644
index 0000000..933e32d
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/汉堡.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/沙拉.png b/VPet-Simulator.Windows/mod/0000_core/image/food/沙拉.png
new file mode 100644
index 0000000..1374d24
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/沙拉.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/泡泡糖.png b/VPet-Simulator.Windows/mod/0000_core/image/food/泡泡糖.png
new file mode 100644
index 0000000..3bcafaf
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/泡泡糖.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/火腿肠.png b/VPet-Simulator.Windows/mod/0000_core/image/food/火腿肠.png
new file mode 100644
index 0000000..a5cec81
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/火腿肠.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/炸鸡腿.png b/VPet-Simulator.Windows/mod/0000_core/image/food/炸鸡腿.png
new file mode 100644
index 0000000..3d32bc3
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/炸鸡腿.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/烧鹅.png b/VPet-Simulator.Windows/mod/0000_core/image/food/烧鹅.png
new file mode 100644
index 0000000..88e0d62
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/烧鹅.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/煎西冷牛排.png b/VPet-Simulator.Windows/mod/0000_core/image/food/煎西冷牛排.png
new file mode 100644
index 0000000..72a7048
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/煎西冷牛排.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/爆米花.png b/VPet-Simulator.Windows/mod/0000_core/image/food/爆米花.png
new file mode 100644
index 0000000..d3d836b
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/爆米花.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/牛扎糖.png b/VPet-Simulator.Windows/mod/0000_core/image/food/牛扎糖.png
new file mode 100644
index 0000000..9d2a143
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/牛扎糖.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/牛板筋.png b/VPet-Simulator.Windows/mod/0000_core/image/food/牛板筋.png
new file mode 100644
index 0000000..e3ba398
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/牛板筋.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/猪肉脯.png b/VPet-Simulator.Windows/mod/0000_core/image/food/猪肉脯.png
new file mode 100644
index 0000000..b9171be
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/猪肉脯.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/瓜子.png b/VPet-Simulator.Windows/mod/0000_core/image/food/瓜子.png
new file mode 100644
index 0000000..39e582c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/瓜子.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/番茄意面.png b/VPet-Simulator.Windows/mod/0000_core/image/food/番茄意面.png
new file mode 100644
index 0000000..6ee42ec
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/番茄意面.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/盐汽水.png b/VPet-Simulator.Windows/mod/0000_core/image/food/盐汽水.png
new file mode 100644
index 0000000..b022568
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/盐汽水.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/盐焗鸡.png b/VPet-Simulator.Windows/mod/0000_core/image/food/盐焗鸡.png
new file mode 100644
index 0000000..ef72dce
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/盐焗鸡.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/红烧牛肉.png b/VPet-Simulator.Windows/mod/0000_core/image/food/红烧牛肉.png
new file mode 100644
index 0000000..75706a8
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/红烧牛肉.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/红烧狮子头.png b/VPet-Simulator.Windows/mod/0000_core/image/food/红烧狮子头.png
new file mode 100644
index 0000000..cc36aa1
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/红烧狮子头.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/纸包鸡.png b/VPet-Simulator.Windows/mod/0000_core/image/food/纸包鸡.png
new file mode 100644
index 0000000..0df2de2
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/纸包鸡.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/维他奶.png b/VPet-Simulator.Windows/mod/0000_core/image/food/维他奶.png
new file mode 100644
index 0000000..b98e518
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/维他奶.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/绿色心情.png b/VPet-Simulator.Windows/mod/0000_core/image/food/绿色心情.png
new file mode 100644
index 0000000..6aa151d
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/绿色心情.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/罗宋汤.png b/VPet-Simulator.Windows/mod/0000_core/image/food/罗宋汤.png
new file mode 100644
index 0000000..77b2df0
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/罗宋汤.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/老冰棍.png b/VPet-Simulator.Windows/mod/0000_core/image/food/老冰棍.png
new file mode 100644
index 0000000..18bce59
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/老冰棍.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/能量饮料.png b/VPet-Simulator.Windows/mod/0000_core/image/food/能量饮料.png
new file mode 100644
index 0000000..59acb8c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/能量饮料.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/臭豆腐.png b/VPet-Simulator.Windows/mod/0000_core/image/food/臭豆腐.png
new file mode 100644
index 0000000..3b639a8
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/臭豆腐.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/花生米.png b/VPet-Simulator.Windows/mod/0000_core/image/food/花生米.png
new file mode 100644
index 0000000..d1e8de0
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/花生米.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/薯片.png b/VPet-Simulator.Windows/mod/0000_core/image/food/薯片.png
new file mode 100644
index 0000000..0193e94
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/薯片.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/虾芝士焗虾.png b/VPet-Simulator.Windows/mod/0000_core/image/food/虾芝士焗虾.png
new file mode 100644
index 0000000..fc03e2c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/虾芝士焗虾.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/西冷牛排.png b/VPet-Simulator.Windows/mod/0000_core/image/food/西冷牛排.png
new file mode 100644
index 0000000..4cf2f50
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/西冷牛排.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/软糖.png b/VPet-Simulator.Windows/mod/0000_core/image/food/软糖.png
new file mode 100644
index 0000000..30567ce
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/软糖.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/辣子鸡.png b/VPet-Simulator.Windows/mod/0000_core/image/food/辣子鸡.png
new file mode 100644
index 0000000..da864d3
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/辣子鸡.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/酸菜鱼.png b/VPet-Simulator.Windows/mod/0000_core/image/food/酸菜鱼.png
new file mode 100644
index 0000000..02f8971
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/酸菜鱼.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/酿豆腐.png b/VPet-Simulator.Windows/mod/0000_core/image/food/酿豆腐.png
new file mode 100644
index 0000000..1956567
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/酿豆腐.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/雪饼.png b/VPet-Simulator.Windows/mod/0000_core/image/food/雪饼.png
new file mode 100644
index 0000000..90cfaa2
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/雪饼.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/雷碧.png b/VPet-Simulator.Windows/mod/0000_core/image/food/雷碧.png
new file mode 100644
index 0000000..b6b39df
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/雷碧.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/面包.png b/VPet-Simulator.Windows/mod/0000_core/image/food/面包.png
new file mode 100644
index 0000000..8cf9bc4
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/面包.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/香煎牛仔骨.png b/VPet-Simulator.Windows/mod/0000_core/image/food/香煎牛仔骨.png
new file mode 100644
index 0000000..b738b6c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/香煎牛仔骨.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/鸡翅.png b/VPet-Simulator.Windows/mod/0000_core/image/food/鸡翅.png
new file mode 100644
index 0000000..62619f6
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/鸡翅.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/麻婆豆腐.png b/VPet-Simulator.Windows/mod/0000_core/image/food/麻婆豆腐.png
new file mode 100644
index 0000000..813308c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/麻婆豆腐.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/image/food/黄牛.png b/VPet-Simulator.Windows/mod/0000_core/image/food/黄牛.png
new file mode 100644
index 0000000..cb716d4
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/image/food/黄牛.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/1,吃饭向右.rar b/VPet-Simulator.Windows/mod/0000_core/pet/vup/1,吃饭向右.rar
deleted file mode 100644
index a0c9ae5..0000000
Binary files a/VPet-Simulator.Windows/mod/0000_core/pet/vup/1,吃饭向右.rar and /dev/null differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/1,吃饭向左.rar b/VPet-Simulator.Windows/mod/0000_core/pet/vup/1,吃饭向左.rar
deleted file mode 100644
index 831f71b..0000000
Binary files a/VPet-Simulator.Windows/mod/0000_core/pet/vup/1,吃饭向左.rar and /dev/null differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_000_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_000_125.png
new file mode 100644
index 0000000..c51e30c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_000_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_001_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_001_125.png
new file mode 100644
index 0000000..964a896
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_001_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_002_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_002_125.png
new file mode 100644
index 0000000..e776c90
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_002_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_003_500.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_003_500.png
new file mode 100644
index 0000000..b22816e
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_003_500.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_004_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_004_125.png
new file mode 100644
index 0000000..8d2baf3
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_004_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_005_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_005_125.png
new file mode 100644
index 0000000..b22816e
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_005_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_006_375.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_006_375.png
new file mode 100644
index 0000000..8d2baf3
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_006_375.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_007_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_007_125.png
new file mode 100644
index 0000000..b22816e
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_007_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_008_750.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_008_750.png
new file mode 100644
index 0000000..8d2baf3
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_008_750.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_009_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_009_125.png
new file mode 100644
index 0000000..b22816e
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_009_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_010_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_010_125.png
new file mode 100644
index 0000000..e776c90
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_010_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_011_125.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_011_125.png
new file mode 100644
index 0000000..964a896
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_011_125.png differ
diff --git a/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_012_250.png b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_012_250.png
new file mode 100644
index 0000000..c51e30c
Binary files /dev/null and b/VPet-Simulator.Windows/mod/0000_core/pet/vup/Default/PoorCondition/悲伤呼吸_012_250.png differ
diff --git a/VPet-Simulator.Windows/packages.config b/VPet-Simulator.Windows/packages.config
index 1498cda..d77ae3d 100644
--- a/VPet-Simulator.Windows/packages.config
+++ b/VPet-Simulator.Windows/packages.config
@@ -1,9 +1,9 @@
-
+
-
+