Remove SkinPreview.cs

This commit is contained in:
miku-666
2024-05-20 16:52:49 +02:00
parent bb3ac92691
commit 36d5f3669b
4 changed files with 0 additions and 2742 deletions

View File

@@ -1,67 +0,0 @@

namespace PckStudio.Forms
{
partial class SkinPreview
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SkinPreview));
this.ModelView = new PckStudio.Rendering.SkinRenderer();
this.SuspendLayout();
//
// ModelView
//
this.ModelView.BackColor = System.Drawing.Color.DarkGray;
this.ModelView.Dock = System.Windows.Forms.DockStyle.Fill;
this.ModelView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ModelView.ForeColor = System.Drawing.Color.Black;
this.ModelView.Location = new System.Drawing.Point(0, 0);
this.ModelView.Name = "ModelView";
this.ModelView.Size = new System.Drawing.Size(418, 568);
this.ModelView.TabIndex = 1;
this.ModelView.Text = "PCK Model View";
//
// SkinPreview
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(418, 568);
this.Controls.Add(this.ModelView);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "SkinPreview";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "SkinPreview";
this.ResumeLayout(false);
}
#endregion
private PckStudio.Rendering.SkinRenderer ModelView;
}
}

View File

@@ -1,39 +0,0 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using PckStudio.Internal;
namespace PckStudio.Forms
{
public partial class SkinPreview : Form
{
public SkinANIM ANIM
{
get => ModelView.ANIM;
set => ModelView.ANIM = value;
}
private Image texture;
private IEnumerable<SkinBOX> data;
public SkinPreview(SkinModelInfo skin)
{
InitializeComponent();
texture = skin.Texture;
data = skin.AdditionalBoxes;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
ModelView.Initialize(true);
foreach (var item in data)
{
ModelView.ModelData.Add(item);
}
ModelView.Texture = texture;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -430,12 +430,6 @@
<Compile Include="Forms\Editor\CustomSkinEditor.Designer.cs">
<DependentUpon>CustomSkinEditor.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Skins-And-Textures\SkinPreview.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Skins-And-Textures\SkinPreview.Designer.cs">
<DependentUpon>SkinPreview.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Editor\AnimationEditor.cs">
<SubType>Form</SubType>
</Compile>
@@ -581,9 +575,6 @@
<DependentUpon>CustomSkinEditor.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Skins-And-Textures\SkinPreview.resx">
<DependentUpon>SkinPreview.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Editor\AnimationEditor.resx">
<DependentUpon>AnimationEditor.cs</DependentUpon>
</EmbeddedResource>