generated from stilobique/BlenderTemplate
Refactoring, split the panel
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
from .ui.export import GRAOU_PT_panel
|
# UI and Interface
|
||||||
from .operators.outline import ConfigBlendScene
|
from .ui.asset import GRAOU_PT_asset
|
||||||
|
from .ui.export import GRAOU_PT_export
|
||||||
|
from .ui.icon import GRAOU_PT_thumbnail
|
||||||
|
from .ui.setup import GRAOU_PT_setup
|
||||||
|
# All operators
|
||||||
from .operators.exports import ExportForFange
|
from .operators.exports import ExportForFange
|
||||||
|
from .operators.outline import ConfigBlendScene
|
||||||
from .operators.misc import MakeBasicCollision
|
from .operators.misc import MakeBasicCollision
|
||||||
from .operators.lighting import ConfigLighting
|
from .operators.lighting import ConfigLighting
|
||||||
|
# Preferences and properties
|
||||||
from .preference import GRAOU_AddonPreference
|
from .preference import GRAOU_AddonPreference
|
||||||
from .properties.main import FangeProperties
|
from .properties.main import FangeProperties
|
||||||
|
|
||||||
@@ -24,7 +30,7 @@ modules_class = [
|
|||||||
# Main operators property
|
# Main operators property
|
||||||
ExportForFange, MakeBasicCollision, ConfigBlendScene, ConfigLighting,
|
ExportForFange, MakeBasicCollision, ConfigBlendScene, ConfigLighting,
|
||||||
# UI
|
# UI
|
||||||
GRAOU_PT_panel,
|
GRAOU_PT_asset, GRAOU_PT_export, GRAOU_PT_thumbnail, GRAOU_PT_setup,
|
||||||
# Preference
|
# Preference
|
||||||
GRAOU_AddonPreference, FangeProperties
|
GRAOU_AddonPreference, FangeProperties
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import bpy
|
||||||
|
|
||||||
|
|
||||||
|
class GRAOU_PT_asset(bpy.types.Panel):
|
||||||
|
bl_idname = 'GRAOU_PT_asset'
|
||||||
|
bl_space_type = 'VIEW_3D'
|
||||||
|
bl_region_type = 'UI'
|
||||||
|
bl_label = 'Generate Assets'
|
||||||
|
bl_category = 'Graou Studio'
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
layout = self.layout
|
||||||
|
|
||||||
|
layout.label(text='Asset:')
|
||||||
@@ -15,11 +15,11 @@ import bpy
|
|||||||
# pcoll.load(name.upper(), entry.path, "IMAGE")
|
# pcoll.load(name.upper(), entry.path, "IMAGE")
|
||||||
|
|
||||||
|
|
||||||
class GRAOU_PT_panel(bpy.types.Panel):
|
class GRAOU_PT_export(bpy.types.Panel):
|
||||||
bl_idname = 'GRAOU_PT_MAIN'
|
bl_idname = 'GRAOU_PT_MAIN'
|
||||||
bl_space_type = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
bl_region_type = 'UI'
|
bl_region_type = 'UI'
|
||||||
bl_label = 'Pipeline'
|
bl_label = 'Export'
|
||||||
bl_category = 'Graou Studio'
|
bl_category = 'Graou Studio'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import bpy
|
||||||
|
|
||||||
|
|
||||||
|
class GRAOU_PT_thumbnail(bpy.types.Panel):
|
||||||
|
bl_idname = 'GRAOU_PT_thumbnail'
|
||||||
|
bl_space_type = 'VIEW_3D'
|
||||||
|
bl_region_type = 'UI'
|
||||||
|
bl_label = 'Thumbnail'
|
||||||
|
bl_category = 'Graou Studio'
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
layout = self.layout
|
||||||
|
|
||||||
|
layout.label(text='Thumbnail:')
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import bpy
|
||||||
|
|
||||||
|
|
||||||
|
class GRAOU_PT_setup(bpy.types.Panel):
|
||||||
|
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:')
|
||||||
Reference in New Issue
Block a user