diff --git a/PCK-Studio/Controls/NamedTextureTreeNode.cs b/PCK-Studio/Controls/NamedTextureTreeNode.cs new file mode 100644 index 00000000..b889bcc4 --- /dev/null +++ b/PCK-Studio/Controls/NamedTextureTreeNode.cs @@ -0,0 +1,20 @@ +using System.Drawing; +using System.Windows.Forms; +using PckStudio.Core; + +namespace PckStudio.Controls +{ + public class NamedTextureTreeNode : TreeNode + { + private readonly NamedData _namedTexture; + + public NamedTextureTreeNode(NamedData namedTexture) + : base(namedTexture.Name) + { + Tag = namedTexture; + _namedTexture = namedTexture; + } + + public Image GetTexture() => _namedTexture.Value; + } +} diff --git a/PCK-Studio/Forms/Editor/ModelEditor.cs b/PCK-Studio/Forms/Editor/ModelEditor.cs index 124fa073..9c9ea22a 100644 --- a/PCK-Studio/Forms/Editor/ModelEditor.cs +++ b/PCK-Studio/Forms/Editor/ModelEditor.cs @@ -177,20 +177,6 @@ namespace PckStudio.Forms.Editor internal static ModelBoxNode Create(ModelBox modelBox) => new ModelBoxNode(modelBox); } - private class NamedTextureTreeNode : TreeNode - { - private readonly NamedData _namedTexture; - - public NamedTextureTreeNode(NamedData namedTexture) - : base(namedTexture.Name) - { - Tag = namedTexture; - _namedTexture = namedTexture; - } - - public Image GetTexture() => _namedTexture.Value; - } - private void LoadModels() { modelTreeView.Nodes.Clear(); diff --git a/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj index f2ee2064..b2331079 100644 --- a/PCK-Studio/PckStudio.csproj +++ b/PCK-Studio/PckStudio.csproj @@ -148,6 +148,7 @@ Form + UserControl