public void OnGUI()
        {
            if (window == null)
            {
                window = new ModelExportWindow()
                {
                    PluginVersion    = ((BepInPlugin)GetType().GetCustomAttributes(typeof(BepInPlugin), false)[0]).Version.ToString(),
                    ExportFolderPath = configFolderPath.Value,
                    ExportName       = "Maid",
                    ExportFormat     = configFormat.Value,
                    SavePostion      = configSavePosition.Value,
                    SaveTextures     = configSaveTextures.Value,
                };

                window.BrowseClicked     += BrowseForExportFolder;
                window.ApplyTPoseClicked += ApplyTPose;
                window.ExportClicked     += ExportModel;
                window.CloseClicked      += delegate(object s, EventArgs a) { SaveUserPreferences(); };
            }
            window.DrawWindow();
        }
        public void OnGUI()
        {
            if (this.window == null)
            {
                this.window = new ModelExportWindow()
                {
                    PluginVersion    = ((PluginVersionAttribute)GetType().GetCustomAttributes(typeof(PluginVersionAttribute), false)[0]).Version,
                    ExportFolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Maids"),
                    ExportName       = "Maid",
                    SavePostion      = true,
                    SaveTextures     = true
                };

                this.window.BrowseClicked     += BrowseForExportFolder;
                this.window.ApplyTPoseClicked += ApplyTPose;
                this.window.ExportClicked     += ExportModel;
                this.window.CloseClicked      += delegate(object s, EventArgs a) { SaveUserPreferences(); };

                LoadUserPreferences();
            }

            this.window.DrawWindow();
        }