/[MorrowindCustomClothingSlotCreator]/trunk/MorrowindCustomClothingSlotCreator/Form1.cs
ViewVC logotype

Diff of /trunk/MorrowindCustomClothingSlotCreator/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/MorrowindCustomClothingSlotCreator/Form1.cs	2011/07/29 09:23:17	4
+++ trunk/MorrowindCustomClothingSlotCreator/Form1.cs	2011/07/29 18:35:02	23
@@ -30,6 +30,10 @@
 
             if (loaded)
             {
+                foreach (ClothingEntry entry in this.TES3PluginLoader.ClothingSection.ClothingEntries)
+                {
+                    lstClothingEntries.Items.Add(entry.CLOT_NAME);
+                }
                 MessageBox.Show("Successfully Loaded Plugin: " + pluginFile, "Successfully Loaded File:", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
 
@@ -44,16 +48,22 @@
 
         private void mnuItemOpenPlugin_Click(object sender, EventArgs e)
         {
+            this.log.Clear();
             PluginLoader.InitialDirectory = MorrowindDataFilesPath;
             DialogResult result = PluginLoader.ShowDialog();
             string PluginFile = PluginLoader.FileName;
             if (result != DialogResult.OK) return;
             //MessageBox.Show("Load Plugin: " + PluginLoader.FileName);
-            this.TES3PluginLoader = new TES3PluginLoader(PluginFile);
+            this.TES3PluginLoader = new TES3PluginLoader(PluginFile, this.log);
             if (!this.LoadPlugin(PluginFile))
             {
                 MessageBox.Show("Failed to Load Plugin: " + PluginFile + "\n\nReason: \n\n" + this.TES3PluginLoader.PluginLoadFailureReason, "Failed to Load File:", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
         }
+
+        private void lstClothingEntries_SelectedIndexChanged(object sender, EventArgs e)
+        {
+
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22