From d0cbe365ce0cf7b6043d6762d19f910d52e23c67 Mon Sep 17 00:00:00 2001
From: Florian Meyer <florianfelix@web.de>
Date: Thu, 13 May 2010 15:11:06 +0000
Subject: [PATCH] added a nicer draw() function

---
 import_images_as_planes.py | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/import_images_as_planes.py b/import_images_as_planes.py
index f05130d01..9adace6fb 100644
--- a/import_images_as_planes.py
+++ b/import_images_as_planes.py
@@ -438,6 +438,25 @@ class ImportImagesAsPlanes(bpy.types.Operator):
         min=1,
         default=500)
 
+    def draw(self, context):
+        props = self.properties
+        layout = self.layout
+        box = layout.box()
+        box.label('Filter:')
+        box.prop(props, 'fromDirectory')
+        box.prop(props, 'extension')
+        #col.label('Material mappings')
+        box = layout.box()
+        box.label('Material mappings:')
+        box.prop(props, 'shadeless')
+        box.prop(props, 'transp')
+        box.prop(props, 'premultiply')
+        box.prop(props, 'transp_method', expand=True)
+        box = layout.box()
+        box.label('Plane dimensions:')
+        box.prop(props, 'useDim')
+        box.prop(props, 'factor', expand=True)
+
     def execute(self, context):
         # File Path
         path = self.properties.path
@@ -502,4 +521,4 @@ def unregister():
 
 
 if __name__ == "__main__":
-    register()
+    register()
\ No newline at end of file
-- 
GitLab