a08d888acb
- operator strings are referenced via the class property rather than a hard coded string - class names have been cleaned to have _OT_ or _PT_ depending on the kind of class it was. - Class names should mostly be CamelCase now.
22 lines
614 B
Python
22 lines
614 B
Python
import bpy
|
|
from ..core.register import register_wrap
|
|
from ..functions.translations import t
|
|
|
|
CATEGORY_NAME = "Avatar Toolkit"
|
|
|
|
@register_wrap
|
|
class AvatarToolKit_PT_AvatarToolkitPanel(bpy.types.Panel):
|
|
bl_label = t("AvatarToolkit.label")
|
|
bl_idname = "OBJECT_PT_avatar_toolkit"
|
|
bl_space_type = 'VIEW_3D'
|
|
bl_region_type = 'UI'
|
|
bl_category = CATEGORY_NAME
|
|
|
|
def draw(self, context):
|
|
layout = self.layout
|
|
layout.label(text=t("AvatarToolkit.welcome"))
|
|
layout.label(text=t("AvatarToolkit.description"))
|
|
layout.label(text=t("AvatarToolkit.alpha_warning"))
|
|
|
|
|