Some Baisc UI Improvements
Nothing much, just improving the UI looks a little bit, we now have Import and Export in a popup and I made some changes to some of the buttons. That's about it.
This commit is contained in:
+6
-3
@@ -16,12 +16,15 @@ class AvatarToolkitOptimizationPanel(bpy.types.Panel):
|
|||||||
layout.label(text="Optimization Options")
|
layout.label(text="Optimization Options")
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
|
row.scale_y = 1.2
|
||||||
row.operator("avatar_toolkit.combine_materials", text="Combine Materials")
|
row.operator("avatar_toolkit.combine_materials", text="Combine Materials")
|
||||||
|
|
||||||
row = layout.row()
|
layout.separator(factor=0.5)
|
||||||
row.operator("avatar_toolkit.join_all_meshes", text="Join All Meshes")
|
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row(align=True)
|
||||||
|
row.scale_y = 1.2
|
||||||
|
row.operator("avatar_toolkit.join_all_meshes", text="Join All Meshes")
|
||||||
row.operator("avatar_toolkit.join_selected_meshes", text="Join Selected Meshes")
|
row.operator("avatar_toolkit.join_selected_meshes", text="Join Selected Meshes")
|
||||||
|
|
||||||
# Add optimization options here
|
# Add optimization options here
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -11,6 +11,9 @@ class AvatarToolkitPanel(bpy.types.Panel):
|
|||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
layout.label(text="Welcome to Avatar Toolkit!")
|
layout.label(text="Welcome to Avatar Toolkit, a tool for")
|
||||||
|
layout.label(text="creating and editing avatars in blender,")
|
||||||
|
layout.label(text="This is an early alpha version, so expect")
|
||||||
|
layout.label(text="bugs and issues.")
|
||||||
#print("Avatar Toolkit Panel is being drawn")
|
#print("Avatar Toolkit Panel is being drawn")
|
||||||
|
|
||||||
|
|||||||
+42
-3
@@ -18,10 +18,49 @@ class AvatarToolkitQuickAccessPanel(bpy.types.Panel):
|
|||||||
layout = self.layout
|
layout = self.layout
|
||||||
layout.label(text="Quick Access Options")
|
layout.label(text="Quick Access Options")
|
||||||
|
|
||||||
# Add import buttons
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator("avatar_toolkit.import_pmx", text="Import PMX")
|
row.label(text="Import/Export", icon='IMPORT')
|
||||||
row.operator("avatar_toolkit.import_pmd", text="Import PMD")
|
|
||||||
|
layout.separator(factor=0.5)
|
||||||
|
|
||||||
|
row = layout.row(align=True)
|
||||||
|
row.scale_y = 1.5
|
||||||
|
row.operator("avatar_toolkit.import_menu", text="Import")
|
||||||
|
row.operator("avatar_toolkit.export_menu", text="Export")
|
||||||
|
|
||||||
|
@register_wrap
|
||||||
|
class AVATAR_TOOLKIT_OT_import_menu(bpy.types.Operator):
|
||||||
|
bl_idname = "avatar_toolkit.import_menu"
|
||||||
|
bl_label = "Import Menu"
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
def invoke(self, context, event):
|
||||||
|
wm = context.window_manager
|
||||||
|
return wm.invoke_popup(self, width=200)
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
layout = self.layout
|
||||||
|
layout.label(text="Select Import Method")
|
||||||
|
layout.operator("avatar_toolkit.import_pmx", text="Import PMX")
|
||||||
|
layout.operator("avatar_toolkit.import_pmd", text="Import PMD")
|
||||||
|
|
||||||
|
@register_wrap
|
||||||
|
class AVATAR_TOOLKIT_OT_export_menu(bpy.types.Operator):
|
||||||
|
bl_idname = "avatar_toolkit.export_menu"
|
||||||
|
bl_label = "Export Menu"
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
def invoke(self, context, event):
|
||||||
|
wm = context.window_manager
|
||||||
|
return wm.invoke_popup(self, width=200)
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
layout = self.layout
|
||||||
|
layout.label(text="Export options will go here")
|
||||||
|
|
||||||
@register_wrap
|
@register_wrap
|
||||||
class AVATAR_TOOLKIT_OT_import_pmx(bpy.types.Operator):
|
class AVATAR_TOOLKIT_OT_import_pmx(bpy.types.Operator):
|
||||||
|
|||||||
Reference in New Issue
Block a user