diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 64310f48..57336c11 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs b/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs index ad30e8d2..46fab176 100644 --- a/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs +++ b/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs @@ -9,6 +9,7 @@ using Switch_Toolbox.Library; using System.IO; using Syroot.BinaryData; using System.Windows.Forms; +using Switch_Toolbox.Library.Forms; namespace FirstPlugin { @@ -400,6 +401,32 @@ namespace FirstPlugin } public class TextureInfo : STGenericTexture { + public TextureInfo() + { + ImageKey = "Texture"; + SelectedImageKey = "Texture"; + } + + public override void OnClick(TreeView treeView) + { + UpdateEditor(); + } + + public void UpdateEditor() + { + ImageEditorBase editor = (ImageEditorBase)LibraryGUI.Instance.GetActiveContent(typeof(ImageEditorBase)); + if (editor == null) + { + editor = new ImageEditorBase(); + editor.Dock = DockStyle.Fill; + LibraryGUI.Instance.LoadEditor(editor); + } + + editor.Text = Text; + editor.LoadProperties(GenericProperties); + editor.LoadImage(this); + } + public override TEX_FORMAT[] SupportedFormats { get diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll index de112f50..0b449136 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll differ diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb index 07a93f75..0c9a6d9a 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb differ