diff options
author | William Reynish <william@reynish.com> | 2009-08-27 12:46:39 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-08-27 12:46:39 +0400 |
commit | 55f82852ca4a88080bf9928445e52d24330a4889 (patch) | |
tree | 9db4de5d572319a33d4a496666a924a70da0f1db /release | |
parent | fe46d5ba7ac6679121acc08574955b22f7653fc7 (diff) |
Tweaked layout of game properties. The Add button is now at the top, meaning it doesn't move around - this is also more consistent with constraints/modifiers etc. Used the same 'box' layout as constraints/modifiers.
Also ported some name changes from the materials UI script to RNA to keep these consistent. Animation editors always show the RNA name after all, so it's good to keep the names similar.
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_material.py | 24 | ||||
-rw-r--r-- | release/ui/space_logic.py | 21 |
2 files changed, 22 insertions, 23 deletions
diff --git a/release/ui/buttons_material.py b/release/ui/buttons_material.py index 30b107d452f..e7add9c59f3 100644 --- a/release/ui/buttons_material.py +++ b/release/ui/buttons_material.py @@ -130,8 +130,8 @@ class MATERIAL_PT_strand(MaterialButtonsPanel): col = split.column(align=True) col.itemL(text="Size:") - col.itemR(tan, "start_size", text="Root") - col.itemR(tan, "end_size", text="Tip") + col.itemR(tan, "root_size", text="Root") + col.itemR(tan, "tip_size", text="Tip") col.itemR(tan, "min_size", text="Minimum") col.itemR(tan, "blender_units") sub = col.column() @@ -231,7 +231,7 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel): col = split.column() col.itemR(mat, "shadows", text="Receive") - col.itemR(mat, "transparent_shadows", text="Receive Transparent") + col.itemR(mat, "receive_transparent_shadows", text="Receive Transparent") col.itemR(mat, "only_shadow", text="Shadows Only") col.itemR(mat, "cast_shadows_only", text="Cast Only") col.itemR(mat, "shadow_casting_alpha", text="Casting Alpha") @@ -266,7 +266,7 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel): col.itemR(mat, "diffuse_color", text="") sub = col.column() sub.active = (not mat.shadeless) - sub.itemR(mat, "diffuse_reflection", text="Intensity") + sub.itemR(mat, "diffuse_intensity", text="Intensity") col = split.column() col.active = (not mat.shadeless) @@ -320,7 +320,7 @@ class MATERIAL_PT_specular(MaterialButtonsPanel): col = split.column() col.itemR(mat, "specular_color", text="") - col.itemR(mat, "specular_reflection", text="Intensity") + col.itemR(mat, "specular_intensity", text="Intensity") col = split.column() col.itemR(mat, "specular_shader", text="") @@ -426,7 +426,7 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel): split = layout.split() col = split.column() - col.itemR(raym, "reflect", text="Reflectivity") + col.itemR(raym, "reflectivity") col.itemR(mat, "mirror_color", text="") col = split.column() @@ -448,9 +448,9 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel): col = split.column() col.itemL(text="Gloss:") - col.itemR(raym, "gloss", text="Amount") + col.itemR(raym, "gloss_amount", text="Amount") sub = col.column() - sub.active = raym.gloss < 1 + sub.active = raym.gloss_amount < 1 sub.itemR(raym, "gloss_threshold", text="Threshold") sub.itemR(raym, "gloss_samples", text="Samples") sub.itemR(raym, "gloss_anisotropic", text="Anisotropic") @@ -511,9 +511,9 @@ class MATERIAL_PT_transp(MaterialButtonsPanel): col = split.column() col.itemL(text="Gloss:") - col.itemR(rayt, "gloss", text="Amount") + col.itemR(rayt, "gloss_amount", text="Amount") sub = col.column() - sub.active = rayt.gloss < 1 + sub.active = rayt.gloss_amount < 1 sub.itemR(rayt, "gloss_threshold", text="Threshold") sub.itemR(rayt, "gloss_samples", text="Samples") @@ -663,8 +663,8 @@ class MATERIAL_PT_halo(MaterialButtonsPanel): col.itemR(halo, "hardness") col.itemR(halo, "add") col.itemL(text="Options:") - col.itemR(halo, "use_texture", text="Texture") - col.itemR(halo, "use_vertex_normal", text="Vertex Normal") + col.itemR(halo, "texture") + col.itemR(halo, "vertex_normal") col.itemR(halo, "xalpha") col.itemR(halo, "shaded") col.itemR(halo, "soft") diff --git a/release/ui/space_logic.py b/release/ui/space_logic.py index f9920f78497..9b0e3dc7f38 100644 --- a/release/ui/space_logic.py +++ b/release/ui/space_logic.py @@ -14,17 +14,16 @@ class LOGIC_PT_properties(bpy.types.Panel): ob = context.active_object game = ob.game + layout.itemO("object.game_property_new", text="Add Game Property") + for i, prop in enumerate(game.properties): - flow = layout.row(align=True) - flow.itemR(prop, "name", text="") - flow.itemR(prop, "type", text="") - flow.itemR(prop, "value", text="") # we dont care about the type. rna will display correctly - flow.itemR(prop, "debug", text="", toggle=True, icon='ICON_INFO') - flow.item_intO("object.game_property_remove", "index", i, text="", icon='ICON_X') - flow = layout.row() - flow.itemO("object.game_property_new") - - - + box = layout.box() + row = box.row() + row.itemR(prop, "name", text="") + row.itemR(prop, "type", text="") + row.itemR(prop, "value", text="") # we dont care about the type. rna will display correctly + row.itemR(prop, "debug", text="", toggle=True, icon='ICON_INFO') + row.item_intO("object.game_property_remove", "index", i, text="", icon='ICON_X') + bpy.types.register(LOGIC_PT_properties) |