2.5 UI scripts:

* Small cleanup of code and descriptions.
This commit is contained in:
Thomas Dinges 2011-04-24 20:59:19 +00:00
parent fd45310dfe
commit 262eec84cd

@ -118,11 +118,8 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
def BEVEL(self, layout, ob, md): def BEVEL(self, layout, ob, md):
split = layout.split() split = layout.split()
col = split.column() split.prop(md, "width")
col.prop(md, "width") split.prop(md, "use_only_vertices")
col = split.column()
col.prop(md, "use_only_vertices")
layout.label(text="Limit Method:") layout.label(text="Limit Method:")
layout.row().prop(md, "limit_method", expand=True) layout.row().prop(md, "limit_method", expand=True)
@ -186,10 +183,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col.prop(md, "use_transform") col.prop(md, "use_transform")
def CLOTH(self, layout, ob, md): def CLOTH(self, layout, ob, md):
layout.label(text="See Cloth panel.") layout.label(text="Settings can be found inside the Physics context")
def COLLISION(self, layout, ob, md): def COLLISION(self, layout, ob, md):
layout.label(text="See Collision panel.") layout.label(text="Settings can be found inside the Physics context")
def CURVE(self, layout, ob, md): def CURVE(self, layout, ob, md):
split = layout.split() split = layout.split()
@ -265,7 +262,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
layout.operator("object.explode_refresh", text="Refresh") layout.operator("object.explode_refresh", text="Refresh")
def FLUID_SIMULATION(self, layout, ob, md): def FLUID_SIMULATION(self, layout, ob, md):
layout.label(text="See Fluid panel.") layout.label(text="Settings can be found inside the Physics context")
def HOOK(self, layout, ob, md): def HOOK(self, layout, ob, md):
split = layout.split() split = layout.split()
@ -444,7 +441,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col.prop(md, "random_position", text="Random", slider=True) col.prop(md, "random_position", text="Random", slider=True)
def PARTICLE_SYSTEM(self, layout, ob, md): def PARTICLE_SYSTEM(self, layout, ob, md):
layout.label(text="See Particle panel.") layout.label(text="Settings can be found inside the Particle context")
def SCREW(self, layout, ob, md): def SCREW(self, layout, ob, md):
split = layout.split() split = layout.split()
@ -541,7 +538,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col.prop(md, "lock_y") col.prop(md, "lock_y")
def SMOKE(self, layout, ob, md): def SMOKE(self, layout, ob, md):
layout.label(text="See Smoke panel.") layout.label(text="Settings can be found inside the Physics context")
def SMOOTH(self, layout, ob, md): def SMOOTH(self, layout, ob, md):
split = layout.split(percentage=0.25) split = layout.split(percentage=0.25)
@ -559,10 +556,9 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="") col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
def SOFT_BODY(self, layout, ob, md): def SOFT_BODY(self, layout, ob, md):
layout.label(text="See Soft Body panel.") layout.label(text="Settings can be found inside the Physics context")
def SOLIDIFY(self, layout, ob, md): def SOLIDIFY(self, layout, ob, md):
split = layout.split() split = layout.split()
col = split.column() col = split.column()
@ -578,22 +574,21 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.prop(md, "offset") col.prop(md, "offset")
colsub = col.column() sub = col.column()
colsub.active = bool(md.vertex_group) sub.active = bool(md.vertex_group)
colsub.prop(md, "invert_vertex_group", text="Invert") sub.prop(md, "invert_vertex_group", text="Invert")
col.prop(md, "use_even_offset") col.prop(md, "use_even_offset")
col.prop(md, "use_quality_normals") col.prop(md, "use_quality_normals")
col.prop(md, "use_rim") col.prop(md, "use_rim")
colsub = col.column()
colsub.label() sub = col.column()
rowsub = colsub.split(align=True, percentage=0.4) sub.label()
rowsub.prop(md, "material_offset", text="") row = sub.split(align=True, percentage=0.4)
colsub = rowsub.row() row.prop(md, "material_offset", text="")
colsub.active = md.use_rim row = row.row()
colsub.prop(md, "material_offset_rim", text="Rim") row.active = md.use_rim
row.prop(md, "material_offset_rim", text="Rim")
def SUBSURF(self, layout, ob, md): def SUBSURF(self, layout, ob, md):
layout.row().prop(md, "subdivision_type", expand=True) layout.row().prop(md, "subdivision_type", expand=True)
@ -610,7 +605,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col.prop(md, "show_only_control_edges") col.prop(md, "show_only_control_edges")
def SURFACE(self, layout, ob, md): def SURFACE(self, layout, ob, md):
layout.label(text="See Fields panel.") layout.label(text="Settings can be found inside the Physics context")
def UV_PROJECT(self, layout, ob, md): def UV_PROJECT(self, layout, ob, md):
if ob.type == 'MESH': if ob.type == 'MESH':