generated from stilobique/BlenderTemplate
Make a class panel to easily draw each class
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import bpy
|
||||
from .main import GraouPanel
|
||||
|
||||
|
||||
class GRAOU_PT_setup(bpy.types.Panel):
|
||||
class GRAOU_PT_setup(GraouPanel):
|
||||
bl_idname = 'GRAOU_PT_setup'
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
bl_label = 'Setup Pipeline'
|
||||
bl_category = 'Graou Studio'
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.label(text='Main Config:')
|
||||
col = layout.column(align=True)
|
||||
col.label(text='Main Config:')
|
||||
col.operator('graou.build_scene', text='Init Scene', icon='OUTLINER')
|
||||
col.prop(context.scene.graou_props, 'socket_collection', text='Use socket', toggle=True)
|
||||
col.operator('graou.lighting', text='Set basic lighting', icon='OUTLINER_OB_LIGHT')
|
||||
|
||||
Reference in New Issue
Block a user