@@ -95,21 +95,35 @@ def draw(self, context):
9595 layout .operator ('ds_pipeline.screen_video' )
9696
9797 if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_new :
98- layout .operator ('ds.new' ,text = "New" ,icon = 'NEW' )
98+ if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_file_icons :
99+ _text = ""
100+ else :
101+ _text = "New"
102+ layout .operator ('ds.new' ,text = _text ,icon = 'NEW' )
99103
100104 if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_open :
101- layout .operator ('ds.open' ,text = "Open" ,icon = 'FILE_FOLDER' )
105+ if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_file_icons :
106+ _text = ""
107+ else :
108+ _text = "Open"
109+ layout .operator ('ds.open' ,text = _text ,icon = 'FILE_FOLDER' )
102110
103111 if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_save :
104-
112+ if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_file_icons :
113+ _text = ""
114+ else :
115+ _text = "Save"
105116 if bpy .data .is_dirty :
106- layout .operator ('ds.save' ,text = "Save" ,icon = 'LINK' )
117+ layout .operator ('ds.save' ,text = _text ,icon = 'LINK' )
107118 else :
108- layout .operator ('ds.save' ,text = "Save" ,icon = 'FILE_TICK' )
119+ layout .operator ('ds.save' ,text = _text ,icon = 'FILE_TICK' )
109120
110121 if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_save_as :
111-
112- layout .operator ('ds.save_as' ,text = "Save As" ,icon = 'SAVE_AS' )
122+ if bpy .context .user_preferences .addons [__package__ ].preferences .option_show_file_icons :
123+ _text = ""
124+ else :
125+ _text = "Save As"
126+ layout .operator ('wm.save_as_mainfile' ,text = _text ,icon = 'SAVE_AS' )
113127
114128 layout .operator ('import_scene.fbx' ,text = "FBX" ,icon = "IMPORT" )
115129 layout .operator ('ds_fbx.export' ,text = "FBX" ,icon = "EXPORT" )
0 commit comments