|
20 | 20 | from bpy.types import Header, Menu, Panel |
21 | 21 | from bpy.app.translations import contexts as i18n_contexts |
22 | 22 |
|
| 23 | +from bl_ui.space_topbar import ( |
| 24 | + TOPBAR_MT_file, |
| 25 | + TOPBAR_MT_edit, |
| 26 | + TOPBAR_MT_render, |
| 27 | + TOPBAR_MT_window, |
| 28 | + TOPBAR_MT_help, |
| 29 | +) |
| 30 | + |
23 | 31 | class workspace_set(bpy.types.Operator): |
24 | 32 |
|
25 | 33 | bl_idname = "dks_ui.workspace_set" |
@@ -73,7 +81,21 @@ def draw_left(self, context): |
73 | 81 |
|
74 | 82 | layout.operator("wm.splash", text="", icon='BLENDER', emboss=False) |
75 | 83 |
|
76 | | - #TOPBAR_MT_editor_menus.draw_collapsible(context, layout) |
| 84 | + if bpy.context.preferences.addons[__package__].preferences.option_ui_menu_toggle_state: |
| 85 | + |
| 86 | + layout.operator('dks_ui.menu_toggle',text="",icon="TRIA_LEFT") |
| 87 | + |
| 88 | + layout.menu("TOPBAR_MT_file") |
| 89 | + layout.menu("TOPBAR_MT_edit") |
| 90 | + |
| 91 | + layout.menu("TOPBAR_MT_render") |
| 92 | + |
| 93 | + layout.menu("TOPBAR_MT_window") |
| 94 | + layout.menu("TOPBAR_MT_help") |
| 95 | + |
| 96 | + else: |
| 97 | + |
| 98 | + layout.operator('dks_ui.menu_toggle',text="",icon="TRIA_RIGHT") |
77 | 99 |
|
78 | 100 | #layout.separator() |
79 | 101 | layout.operator('wm.read_homefile',text="",icon='FILE_NEW') |
@@ -167,8 +189,9 @@ def draw_left(self, context): |
167 | 189 | if bpy.context.preferences.addons['blender_addon_reallusion'].preferences.option_show_rl_toggle_state or not bpy.context.preferences.addons['blender_addon_reallusion'].preferences.option_show_rl_toggle: |
168 | 190 |
|
169 | 191 | row.operator("dks_rl.export_cc",text="CC",icon="EXPORT") |
| 192 | + row.operator("dks_rl.import_cc",text="CC",icon="IMPORT") |
170 | 193 | row.operator("dks_rl.export_3dx",text="3DX",icon="EXPORT") |
171 | | - row.operator("dks_rl.import_base",text="Base",icon="IMPORT") |
| 194 | + row.operator("dks_rl.import_neutral",text="Neutral",icon="IMPORT") |
172 | 195 | row.operator("dks_rl.import_female",text="Female",icon="IMPORT") |
173 | 196 | row.operator("dks_rl.import_male",text="Male",icon="IMPORT") |
174 | 197 |
|
|
0 commit comments