added a warning to the option panel, if an option is selected, that is not implemente...
authorAlexander N <alpha-beta-release@gmx.net>
Sun, 21 Jul 2013 07:30:06 +0000 (07:30 +0000)
committerAlexander N <alpha-beta-release@gmx.net>
Sun, 21 Jul 2013 07:30:06 +0000 (07:30 +0000)
io_scene_fpx/__init__.py
io_scene_fpx/fpx_strings.py
io_scene_fpx/fpx_ui.py

index 6ea51e1..8ea2326 100644 (file)
@@ -34,7 +34,7 @@ bl_info = {
     'name': "Future Pinball FPx format (.fpm/.fpl/.fpt)",
     'description': "Import Future Pinball Model, Library and Table files",
     'author': "Alexander Nussbaumer",
-    'version': (0, 0, 0, '2013-07-18'),
+    'version': (0, 0, 0, '2013-07-21'),
     'blender': (2, 68, 0),
     'location': "File > Import",
     'warning': "",
index 71eacae..f533fbe 100644 (file)
@@ -140,7 +140,7 @@ fpx_str = {
         'PROP_DESC_MODEL_MASK': "Import Mask Model",
         'PROP_NAME_MODEL_COLLISION': "Collision Model",
         'PROP_DESC_MODEL_COLLISION': "Import Collision Model",
-        'LABEL_NAME_TABLE_OPTIONS': "Table Data Options",
+        'LABEL_NAME_TABLE_OPTIONS': "Table Data Options:",
         'PROP_NAME_USE_LIBRARY_FILTER': "Library Filter",
         'PROP_DESC_USE_LIBRARY_FILTER': "Filter what you want to import",
         'PROP_NAME_ALL_LIBRARIES': "Import All Libraries Of Folder",
@@ -161,6 +161,10 @@ fpx_str = {
         'PROP_NAME_KEEP_TEMP': "Keep Temp Files",
         'PROP_DESC_KEEP_TEMP': "Do not delete temporary files",
 
+        'LABEL_NAME_NOT_IMPLEMENTED': "Not Implemented Yet!",
+        'LABEL_NAME_NOT_IMPLEMENTED_1': "You have chosen an option,",
+        'LABEL_NAME_NOT_IMPLEMENTED_2': "that is not implemented yet.",
+
         'PROP_NAME_': "Name",
         'PROP_DESC_': "Description",
         # fpx_str['']
index c409081..8cb8766 100644 (file)
@@ -141,6 +141,12 @@ class FpxUI:
 
     PROP_DEFAULT_KEEP_TEMP = False
 
+def NotImplemented(layout):
+    box = layout.box()
+    box.label(fpx_str['LABEL_NAME_NOT_IMPLEMENTED'], icon='ERROR')
+    flow = box.column_flow()
+    flow.label(fpx_str['LABEL_NAME_NOT_IMPLEMENTED_1'])
+    flow.label(fpx_str['LABEL_NAME_NOT_IMPLEMENTED_2'])
 
 ###############################################################################
 class FptEmptyItemProperties(PropertyGroup):
@@ -405,12 +411,13 @@ class FpmImportOperator(Operator, ImportHelper):
     def draw_model_options(cls, layout):
         box = layout.box()
         box.label(fpx_str['LABEL_NAME_MODEL_OPTIONS'], icon=FpxUI.ICON_MODEL)
+        if FpxUI.USE_MODEL_FILTER_COLLISION in cls.use_model_filter:
+            NotImplemented(box)
         flow = box.column_flow()
         flow.prop(cls, 'use_model_filter', icon='FILTER')
         flow = box.column_flow()
         flow.prop(cls, 'use_model_adjustment', icon='MODIFIER')
 
-
 ###############################################################################
 class FplImportOperator(Operator, ImportHelper):
     """ Load a Future Pinball Library FPL File """
@@ -615,6 +622,11 @@ class FplImportOperator(Operator, ImportHelper):
     def draw_library_options(cls, layout):
         box = layout.box()
         box.label(fpx_str['LABEL_NAME_LIBRARYL_OPTIONS'], icon='IMPORT')
+        if FpxUI.USE_LIBRARY_FILTER_DMDFONT in cls.use_library_filter \
+                or FpxUI.USE_LIBRARY_FILTER_SOUND in cls.use_library_filter \
+                or FpxUI.USE_LIBRARY_FILTER_MUSIC in cls.use_library_filter \
+                or FpxUI.USE_LIBRARY_FILTER_SCRIPT in cls.use_library_filter:
+            NotImplemented(box)
         flow = box.column_flow()
         flow.prop(cls, 'use_library_filter', icon='FILTER')
 
@@ -856,6 +868,8 @@ class FptImportOperator(Operator, ImportHelper):
 
         box = layout.box()
         box.label(fpx_str['LABEL_NAME_TABLE_OPTIONS'], icon=FpxUI.ICON_MODEL)
+        if self.convert_to_mesh:
+            NotImplemented(box)
         flow = box.column_flow()
         flow.prop(self, 'convert_to_mesh', icon='MOD_TRIANGULATE')
         flow = box.column_flow()