feat: configuration support

This commit is contained in:
Swann Martinez
2019-07-01 18:04:35 +02:00
parent 34dc4088b5
commit fa18061687
8 changed files with 126 additions and 38 deletions

15
ui.py
View File

@ -9,11 +9,15 @@ ICONS = {'Curve':'CURVE_DATA', 'Client':'SOLO_ON','Collection': 'FILE_FOLDER', '
class SESSION_PT_settings(bpy.types.Panel):
bl_idname = "MULTIUSER_SETTINGS_PT_panel"
bl_label = "Network"
bl_label = "Settings"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "Multiuser"
def draw_header(self, context):
self.layout.label(text="", icon='TOOL_SETTINGS')
def draw(self, context):
layout = self.layout
@ -41,10 +45,10 @@ class SESSION_PT_settings(bpy.types.Panel):
row = box.row()
row.label(text="draw overlay:")
row.prop(net_settings, "enable_draw", text="")
row.prop(net_settings, "enable_presence", text="")
row = box.row()
row.label(text="clear blend:")
row.prop(net_settings, "clear_scene", text="")
row.prop(net_settings, "start_empty", text="")
row = box.row()
row = box.row()
@ -82,7 +86,7 @@ class SESSION_PT_settings(bpy.types.Panel):
# row = layout.row(align=True)
# row.operator("session.dump", icon='QUIT', text="Dump")
# row.operator("session.dump", icon='QUIT', text="Load")
# row = layout.row()
row = layout.row()
box = row.box()
row = box.row()
@ -158,6 +162,9 @@ class SESSION_PT_properties(bpy.types.Panel):
def poll(cls, context):
return client.instance and client.instance.state() == 3
def draw_header(self, context):
self.layout.label(text="", icon='OUTLINER_OB_GROUP_INSTANCE')
def draw(self, context):
layout = self.layout