feat: initial inteface

This commit is contained in:
Swann
2021-11-18 18:01:35 +01:00
parent de32bd89e3
commit b96f600f15
3 changed files with 65 additions and 2 deletions

View File

@ -564,6 +564,29 @@ class SESSION_PT_sync(bpy.types.Panel):
row.prop(settings.sync_flags, "sync_active_camera", text="",icon_only=True, icon='VIEW_CAMERA')
class SESSION_PT_replay(bpy.types.Panel):
bl_idname = "MULTIUSER_REPLAY_PT_panel"
bl_label = "Replay"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_parent_id = 'MULTIUSER_SETTINGS_PT_panel'
bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
return context.window_manager.session.replay_files
def draw_header(self, context):
self.layout.label(text="", icon='RECOVER_LAST')
def draw(self, context):
layout = self.layout
row= layout.row()
row.prop(bpy.context.window_manager.session, 'active_replay_file')
class SESSION_PT_repository(bpy.types.Panel):
bl_idname = "MULTIUSER_PROPERTIES_PT_panel"
bl_label = "Repository"
@ -709,6 +732,7 @@ classes = (
SESSION_PT_sync,
SESSION_PT_repository,
VIEW3D_PT_overlay_session,
SESSION_PT_replay,
)
register, unregister = bpy.utils.register_classes_factory(classes)