├── VUPSimulator.Interface.Demo
├── 1100_CheatEngine
│ ├── plugin
│ │ ├── CheatEngine.lps
│ │ ├── Panuon.WPF.dll
│ │ ├── CheatEngine.dll
│ │ ├── LinePutScript.dll
│ │ ├── Panuon.WPF.UI.dll
│ │ ├── TextToDocument.dll
│ │ └── VUPSimulator.Interface.dll
│ ├── icon.png
│ ├── info.lps
│ └── image
│ │ └── software
│ │ └── CheatEngine.png
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── packages.config
├── CheatEngine.cs
├── MainPlugin.cs
├── Theme.xaml
├── winCheatEngine.xaml.cs
├── VUPSimulator.Interface.Demo.csproj
└── winCheatEngine.xaml
├── VUPSimulator.png
├── README.assets
└── image-20220708233151685.png
├── .editorconfig
├── VUPSimulator.Interface
├── UI
│ ├── IMCTag.cs
│ ├── IWidget.cs
│ ├── IWindows.cs
│ ├── WidgetHandle.cs
│ └── WindowsPageHandle.cs
├── Items
│ ├── Draw.cs
│ ├── Paint.cs
│ ├── L2D.cs
│ ├── Item.cs
│ └── Food.cs
├── Image
│ ├── GenImage.xaml
│ ├── GenImageTemplate.cs
│ └── ProfileImage.cs
├── Core
│ ├── Theme.cs
│ ├── Core.cs
│ └── Resources.cs
├── Data
│ ├── CommentBase.cs
│ ├── VideoEditorType.cs
│ ├── Statistics.cs
│ ├── Comment.cs
│ ├── Video.cs
│ └── UIData.cs
├── Handle
│ ├── SoftWare.cs
│ ├── MainPlugin.cs
│ └── IMainWindow.cs
├── Type
│ ├── Music.cs
│ ├── Users.cs
│ ├── StudyContent.cs
│ ├── UserNili.cs
│ ├── OldPainterAuthor.cs
│ └── PlayerState.cs
└── VUPSimulator.Interface.csproj
├── VUPSimulator.Interface.sln
├── README.md
└── .gitignore
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/CheatEngine.lps:
--------------------------------------------------------------------------------
1 | plugin#CheatEngine:|
2 | dll:|
--------------------------------------------------------------------------------
/VUPSimulator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.png
--------------------------------------------------------------------------------
/README.assets/image-20220708233151685.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/README.assets/image-20220708233151685.png
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/icon.png
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/Panuon.WPF.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/Panuon.WPF.dll
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/CheatEngine.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/CheatEngine.dll
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.cs]
2 |
3 | # CS1998: 异步方法缺少 "await" 运算符,将以同步方式运行
4 | dotnet_diagnostic.CS1998.severity = suggestion
5 |
6 | # CS1591: 缺少对公共可见类型或成员的 XML 注释
7 | dotnet_diagnostic.CS1591.severity = suggestion
8 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/info.lps:
--------------------------------------------------------------------------------
1 | vupmod#CheatEngine:|author#lorisyounger:|gamever#100:|ver#100:|
2 | intro#添加一个修改器到应用程序上/com这算是代码嵌入类型MOD的DEMO:|
3 | authorid#253101309:|
4 | itemid#2821702097:|
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/LinePutScript.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/LinePutScript.dll
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/Panuon.WPF.UI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/Panuon.WPF.UI.dll
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/TextToDocument.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/TextToDocument.dll
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/image/software/CheatEngine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/image/software/CheatEngine.png
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/VUPSimulator.Interface.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LorisYounger/VUPSimulator.Interface/HEAD/VUPSimulator.Interface.Demo/1100_CheatEngine/plugin/VUPSimulator.Interface.dll
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/CheatEngine.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using VUPSimulator.Interface;
7 | namespace CheatEngine
8 | {
9 | public class CheatEngine : ISoftWare
10 | {
11 | public string SoftwareName => "CE修改器";
12 | public string SoftwareInfo => "可以修改绝大部分游戏数据,是通关利器";
13 |
14 | public WindowsPageHandle NewSoftWare(IMainWindow mw, string args)
15 | {
16 | return new winCheatEngine(mw);
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/UI/IMCTag.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace VUPSimulator.Interface
8 | {
9 | ///
10 | /// 消息窗口
11 | ///
12 | public interface IMCTag
13 | {
14 | ///
15 | /// 类型
16 | ///
17 | EventBase.VisibleType Type { get; }
18 | ///
19 | /// 主窗口
20 | ///
21 | IMainWindow MW { get; }
22 | ///
23 | /// 当被事件激活时事件
24 | ///
25 | void MW_TimeUIHandle(TimeSpan span, IMainWindow mw);
26 |
27 |
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/MainPlugin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using VUPSimulator.Interface;
7 |
8 | namespace CheatEngine
9 | {
10 | public class MainPlugin : VUPSimulator.Interface.MainPlugin
11 | {
12 |
13 | public MainPlugin(IMainWindow mw) : base(mw) { }
14 |
15 | ///
16 | /// 初始化游戏数据库
17 | ///
18 | ///
19 | public override async Task Load()
20 | {
21 | //添加窗体到游戏三方菜单栏
22 | MW.Core.SoftWares.Add(new CheatEngine());
23 | }
24 |
25 | //因为不需要对游戏数据干啥,所以这些类保持为空即可
26 | //public override async void EndGame()
27 | //{
28 | //}
29 | //public override async void StartGame()
30 | //{
31 | //}
32 | //public override async void Save()
33 | //{
34 | //}
35 |
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace CheatEngine.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/Items/Draw.cs:
--------------------------------------------------------------------------------
1 | using LinePutScript;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace VUPSimulator.Interface
9 | {
10 | ///
11 | /// 所有的画基础类
12 | ///
13 | public class Draw : Item
14 | {
15 | public Draw(ILine line) : base(line) { }
16 | ///
17 | /// 画师
18 | ///
19 | public string Painter
20 | {
21 | get => this[(gstr)"painter"];
22 | set => this[(gstr)"painter"] = value;
23 | }
24 | ///
25 | /// 星级
26 | ///
27 | public double Score
28 | {
29 | get => this[(gdbe)"score"];
30 | set => this[(gdbe)"score"] = value;
31 | }
32 | ///
33 | /// 画等级
34 | ///
35 | public double Rank
36 | {
37 | get => Find("rank").InfoToDouble;
38 | set => FindorAdd("rank").InfoToDouble = value;
39 | }
40 |
41 | }
42 | ///
43 | /// 老画师画作管理接口
44 | ///
45 | public interface IOldPainterDraw
46 | {
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/Image/GenImage.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/UI/IWidget.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace VUPSimulator.Interface
8 | {
9 | ///
10 | /// UI显示桌面组件 会自动生成可修改大小的控件和倍率调整器
11 | ///
12 | public interface IWidget
13 | {
14 | ///
15 | /// 缩放倍率比率
16 | ///
17 | double ZoomSize { get; set; }
18 | IMainWindow IMW { get; }
19 | ///
20 | /// 执行关闭窗口
21 | ///
22 | void Close();
23 | ///
24 | /// 关闭窗口 无确认
25 | ///
26 | void CloseForce();
27 | ///
28 | /// 更新 修改控件大小状态
29 | ///
30 | void SetThumb();
31 | ///
32 | /// 设置当前widget为顶层
33 | ///
34 | void SetTop();
35 | ///
36 | /// 设置当前widget为底层
37 | ///
38 | void SetBotton();
39 | ///
40 | /// 控件透明度
41 | ///
42 | double Opacity { get; set; }
43 | ///
44 | /// 允许移动设置
45 | ///
46 | bool AllowMove { get; set; }
47 | ///
48 | /// 允许修改大小
49 | ///
50 | bool AllowChangeSize { get; set; }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/Core/Theme.cs:
--------------------------------------------------------------------------------
1 | using LinePutScript;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.IO;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows.Media;
9 |
10 | namespace VUPSimulator.Interface
11 | {
12 | ///
13 | /// 游戏主题
14 | ///
15 | public class Theme
16 | {
17 | public string Name;
18 | public string xName;
19 | public string Image;
20 | public ImageResources Images;
21 | public LPS ThemeColor;
22 | public Theme(LPS lps)
23 | {
24 | xName = lps.First().Name;
25 | Name = lps.First().Info;
26 | Image = lps.First().Find("image").info;
27 |
28 | lps.RemoveAt(0);
29 | ThemeColor = lps;
30 |
31 | Images = new ImageResources();
32 | }
33 | }
34 | ///
35 | /// 字体
36 | ///
37 | public class IFont
38 | {
39 | public string Name;
40 | public string Path;
41 | public IFont(FileInfo path)
42 | {
43 | Name = path.Name.Substring(0, path.Name.Length - path.Extension.Length);
44 | Path = path.Directory.FullName + @"\#" + Name;
45 | }
46 | public FontFamily Font
47 | {
48 | get
49 | {//file:///D:\Documents\Visual Studio 2022\Projects\VPet\VPet-Simulator.Windows\Res\#凤凰点阵体 12px
50 | return new FontFamily(@"file:///" + Path);
51 | }
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/UI/IWindows.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 |
8 | namespace VUPSimulator.Interface
9 | {
10 | ///
11 | /// UI显示窗体 会自动生成外边框和底部栏
12 | ///
13 | public interface IWindows
14 | {
15 | Visibility Visibility { get; set; }
16 | IMainWindow IMW { get; }
17 |
18 | ///
19 | /// 执行关闭窗口
20 | ///
21 | void Close();
22 | ///
23 | /// 关闭窗口 无确认
24 | ///
25 | void CloseForce();
26 |
27 | ///
28 | /// 居中窗口
29 | ///
30 | void CenterScreen();
31 |
32 | ///
33 | /// 软件标题
34 | ///
35 | string Title { get; set; }
36 |
37 | ///
38 | /// 设置图标
39 | ///
40 | /// new Uri($"pack://application:,,,/images/my.jpg")
41 | /// application->应用内
42 | /// siteoforigin->应用外
43 | Uri Icon { set; }
44 |
45 | ///
46 | /// 当关闭文件后进行操作
47 | ///
48 | event Action DeActive;
49 |
50 | ///
51 | /// 修改窗口大小状态
52 | ///
53 | void ChangeMax();
54 |
55 | ///
56 | /// 当前窗体是否为置顶窗体
57 | ///
58 | public bool NowTop { get; set; }
59 | ///
60 | /// 更新 修改窗口大小状态
61 | ///
62 | public void SetThumb();
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/Data/CommentBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using LinePutScript;
7 | using static VUPSimulator.Interface.Comment;
8 |
9 | namespace VUPSimulator.Interface
10 | {
11 | ///
12 | /// 评论数据表
13 | ///
14 | public class CommentBase : Line
15 | {
16 | ///
17 | /// 类型
18 | ///
19 | public CommentType Type;
20 | ///
21 | /// 评论内容
22 | ///
23 | public new string Comments;
24 |
25 | public CommentBase(ILine line) : base(line)
26 | {
27 | Comments = line.Text;
28 | Type = (CommentType)Enum.Parse(typeof(CommentType), line.info, true);
29 | }
30 | ///
31 | /// 绑定的游戏名称 (若为Type:Game)
32 | ///
33 | public string Game
34 | {
35 | get
36 | {
37 | if (game == null)
38 | game = this[(gstr)"game"];
39 | return game;
40 | }
41 | }
42 | private string game = null;
43 |
44 |
45 | public Comment Create()
46 | {
47 | switch (Type)
48 | {
49 | case CommentType.Game:
50 | return new Comment_Game(this) { Comments = Comments };
51 | //case CommentType.Video:
52 | // break;
53 | //case CommentType.Stream:
54 | // break;
55 | default:
56 | return new Comment(this) { Comments = Comments };
57 | }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/Handle/SoftWare.cs:
--------------------------------------------------------------------------------
1 | using LinePutScript;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows.Media;
8 |
9 | namespace VUPSimulator.Interface
10 | {
11 | ///
12 | /// 软件类, 添加至软件列表 以在软件中心显示
13 | ///
14 | public interface ISoftWare
15 | {
16 | ///
17 | /// 软件名
18 | ///
19 | string SoftwareName { get; }
20 | ///
21 | /// 软件介绍
22 | ///
23 | string SoftwareInfo { get; }
24 |
25 | ///
26 | /// 窗体内控件, 由开发者设计和提供
27 | ///
28 | /// 主窗体
29 | /// 软件启动参数
30 | WindowsPageHandle NewSoftWare(IMainWindow mw, string args = null);
31 |
32 | }
33 | ///
34 | /// 桌面组件类, 添加至控件列表 以在桌面组件中心显示
35 | ///
36 | public interface IDesktopWidget
37 | {
38 | ///
39 | /// 桌面组件名
40 | ///
41 | string WidgetName { get; }
42 | ///
43 | /// 软件介绍
44 | ///
45 | string WidgetInfo { get; }
46 | ///
47 | /// ID,用于防止重复打开
48 | ///
49 | string ID { get; }
50 | ///
51 | /// 软件截图
52 | ///
53 | ImageSource WidgetScreenShort { get; }
54 |
55 | ///
56 | /// 桌面组件, 由开发者设计和提供
57 | ///
58 | /// 主窗体
59 | /// 桌面组件设置相关参数
60 | WidgetHandle NewWidget(IMainWindow mw, ILine data);
61 |
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/Handle/MainPlugin.cs:
--------------------------------------------------------------------------------
1 | using LinePutScript;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | namespace VUPSimulator.Interface
8 | {
9 | ///
10 | /// 这是插件的主体内容 请继承这个类
11 | ///
12 | public abstract class MainPlugin
13 | {
14 | ///
15 | /// 主窗体, 主程序提供的各种功能和设置等 大部分参数和调用均在这里
16 | ///
17 | public IMainWindow MW;
18 | ///
19 | /// MOD插件初始化
20 | ///
21 | /// 主窗体
22 | /// 请不要加载游戏和玩家数据,仅用作初始化
23 | /// 加载数据(CORE),请使用 Load
24 | /// 加载游戏(SAVE),请使用 Start
25 | public MainPlugin(IMainWindow mainwin)
26 | {
27 | //此处主窗体玩家,Core等信息均为空,请不要加载游戏和玩家数据
28 | MW = mainwin;
29 | }
30 | ///
31 | /// 加载游戏主题
32 | ///
33 | /// 主题
34 | public virtual void LoadTheme(Theme theme) { }
35 | ///
36 | /// 初始化程序,
37 | ///
38 | /// 例如, 添加自定义窗体至主程序
39 | /// MW.Core.SoftWares.Add(ISoftWare);
40 | public abstract Task Load();
41 | ///
42 | /// 游戏开始 (可以读取Save存档) (如果玩家登出后重新开始游戏,将会被再次调用)
43 | ///
44 | /// 或添加自己的Tick到 mw.TimeHandle
45 | public virtual void StartGame() { }
46 |
47 | ///
48 | /// 游戏结束 (可以保存或清空等,不过保存有专门的Save())
49 | ///
50 | public virtual void EndGame() { }
51 |
52 | ///
53 | /// 储存游戏 (可以写 Save.Other 储存设置和数据等)
54 | ///
55 | public virtual void Save() { }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface.Demo/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("CheatEngine")]
11 | [assembly: AssemblyDescription("作弊引擎")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("VUPSimulator.Interface.Demo")]
15 | [assembly: AssemblyCopyright("Copyright © exLB.org 2022")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 会使此程序集中的类型
20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请设置
25 | //.csproj 文件中的 CultureYouAreCodingWith
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly:ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(未在页面中找到资源时使用,
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(未在页面中找到资源时使用,
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
52 | //通过使用 "*",如下所示:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/VUPSimulator.Interface/UI/WidgetHandle.cs:
--------------------------------------------------------------------------------
1 | using LinePutScript;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Collections.ObjectModel;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows;
9 | using System.Windows.Controls;
10 | using static VUPSimulator.Interface.Function;
11 |
12 | namespace VUPSimulator.Interface
13 | {
14 | ///
15 | /// 桌面组件接口
16 | ///
17 | public interface WidgetHandle
18 | {
19 | ///
20 | /// 宽度
21 | ///
22 | double Width { get; set; }
23 | ///
24 | /// 高度
25 | ///
26 | double Height { get; set; }
27 | //这些不需要手动继承, Grid/UC原本就有
28 | double MaxWidth { get; set; }
29 | double MaxHeight { get; set; }
30 | double MinWidth { get; set; }
31 | double MinHeight { get; set; }
32 | ///
33 | /// 允许修改大小
34 | ///
35 | WindowsSizeChange AllowSizeChange { get; }
36 |
37 | ///
38 | /// 执行关闭程序
39 | ///
40 | /// 反馈是否关闭
41 | bool Closeing();
42 |
43 | ///
44 | /// 该窗口的host
45 | ///
46 | IWidget Host { get; }
47 | ///
48 | /// 这个Gird/桌面组件
49 | ///
50 | FrameworkElement This { get; }
51 |
52 | ///
53 | /// 桌面组件名 用于显示
54 | ///
55 | string WidgetName { get; }
56 | ///
57 | /// 右键菜单,如需自定义请修改设置 MenuItems
58 | ///
59 | ContextMenu ContextMenu { set; }
60 | ///
61 | /// 右键菜单详细设置 如需自定义请添加 请使用dispatch
62 | ///
63 | ObservableCollection