Even more metaball layout changes.

Added icons in menu, moved type setting at top of panel. Need to make the size widgets only show the relevant options.
This commit is contained in:
2009-07-29 20:56:22 +00:00
parent 49faf9011a
commit 992382ddb3
2 changed files with 12 additions and 12 deletions

View File

@@ -51,7 +51,7 @@ class DATA_PT_metaball(DataButtonsPanel):
layout.itemR(mball, "flag", expand=True)
class DATA_PT_metaball_element(DataButtonsPanel):
__label__ = "Meta Element"
__label__ = "Active Element"
def poll(self, context):
return (context.meta_ball and context.meta_ball.last_selected_element)
@@ -61,6 +61,10 @@ class DATA_PT_metaball_element(DataButtonsPanel):
metaelem = context.meta_ball.last_selected_element
split = layout.split(percentage=0.3)
split.itemL(text="Type:")
split.itemR(metaelem, "type", text="")
split = layout.split()
col = split.column()
@@ -70,13 +74,9 @@ class DATA_PT_metaball_element(DataButtonsPanel):
col = split.column()
col.itemL(text="Settings:")
col.itemR(metaelem, "stiffness", text="Stiffness")
col.itemR(metaelem, "negative", text="Negative")
col.itemR(metaelem, "hide", text="Hide")
layout.itemL(text="Type:")
layout.itemR(metaelem, "type", expand=True)
flow = layout.column_flow()
flow.itemR(metaelem, "negative", text="Negative")
flow.itemR(metaelem, "hide", text="Hide")
bpy.types.register(DATA_PT_context_metaball)
bpy.types.register(DATA_PT_metaball)