Make a class panel to easily draw each class

This commit is contained in:
2024-06-06 19:55:46 +02:00
parent cd8301e29c
commit 83d321c69d
6 changed files with 43 additions and 54 deletions
+7 -6
View File
@@ -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')