2.5 Buttons:
authorThomas Dinges <blender@dingto.org>
Wed, 20 May 2009 16:24:04 +0000 (16:24 +0000)
committerThomas Dinges <blender@dingto.org>
Wed, 20 May 2009 16:24:04 +0000 (16:24 +0000)
* More button tweaks by William Reynish. Thanks!

release/ui/buttons_data_camera.py
release/ui/buttons_data_curve.py
release/ui/buttons_data_lamp.py
release/ui/buttons_material.py
release/ui/buttons_objects.py
release/ui/buttons_scene.py

index bb87bdf3d068826c46f4f9ca0d9e4518b5d0dc2d..b41293758eaba6c787fc5be1e4219c541d0fd3f5 100644 (file)
@@ -72,7 +72,7 @@ class DATA_PT_cameradisplay(DataButtonsPanel):
                sub = split.column()
                sub.itemR(cam, "show_passepartout", text="Passepartout")
                if (cam.show_passepartout):
-                       sub.itemR(cam, "passepartout_alpha", text="Alpha", slider="True")
+                       sub.itemR(cam, "passepartout_alpha", text="Alpha", slider=True)
                sub.itemR(cam, "draw_size", text="Size")
                
 bpy.types.register(DATA_PT_cameralens)
index a51ce50b047eee5962337b0f18f3a20ed70f7868..e7dc781049386c8176006d26253ab8091288c531 100644 (file)
@@ -69,7 +69,7 @@ class DATA_PT_geometry(DataButtonsPanel):
                        sub.itemR(curve, "taper_object")
                        sub = split.column()
                        sub.itemL(text="Bevel:")
-                       sub.itemR(curve, "bevel_depth", text="Depth")
+                       sub.itemR(curve, "bevel_depth", text="Depth", slider=True)
                        sub.itemR(curve, "bevel_resolution", text="Resolution")
                        sub.itemR(curve, "bevel_object")
 
index 2005481d38b2a7e2691424f724fad69f2f8a79a2..2d0efdb83ac997be88c31ac9b7dd83d77474fb79 100644 (file)
@@ -28,7 +28,7 @@ class DATA_PT_lamp(DataButtonsPanel):
                
                sub = split.column()
                sub.itemR(lamp, "color")
-               sub.itemR(lamp, "energy")
+               sub.itemR(lamp, "energy", slider=True)
                sub.itemR(lamp, "distance")
                sub.itemR(lamp, "negative")
        
index 665a522373789b3517ca568a137d5d106e36827d..d13ae251a5a7bdc7da7c6e6dbf3fd808a1dd259b 100644 (file)
@@ -27,7 +27,7 @@ class MATERIAL_PT_material(MaterialButtonsPanel):
                row.column().itemR(mat, "mirror_color")
                
                row = layout.row()
-               row.itemR(mat, "alpha")
+               row.itemR(mat, "alpha", slider=True)
                        
 class MATERIAL_PT_sss(MaterialButtonsPanel):
        __idname__= "MATERIAL_PT_sss"
@@ -50,17 +50,17 @@ class MATERIAL_PT_sss(MaterialButtonsPanel):
                flow = layout.column_flow()
                flow.itemR(sss, "error_tolerance")
                flow.itemR(sss, "ior")
-               flow.itemR(sss, "scale")
+               flow.itemR(sss, "scale", slider=True)
                
                row = layout.row()
                row.column().itemR(sss, "color")
                row.column().itemR(sss, "radius")
                
                flow = layout.column_flow()
-               flow.itemR(sss, "color_factor")
-               flow.itemR(sss, "texture_factor")
-               flow.itemR(sss, "front")
-               flow.itemR(sss, "back")
+               flow.itemR(sss, "color_factor", slider=True)
+               flow.itemR(sss, "texture_factor", slider=True)
+               flow.itemR(sss, "front", slider=True)
+               flow.itemR(sss, "back", slider=True)
                
 class MATERIAL_PT_raymir(MaterialButtonsPanel):
        __idname__= "MATERIAL_PT_raymir"
@@ -83,15 +83,15 @@ class MATERIAL_PT_raymir(MaterialButtonsPanel):
                split = layout.split()
                
                sub = split.column()
-               sub.itemR(raym, "reflect", text="RayMir")
-               sub.itemR(raym, "fresnel")
-               sub.itemR(raym, "fresnel_fac", text="Fac")
+               sub.itemR(raym, "reflect", text="RayMir", slider=True)
+               sub.itemR(raym, "fresnel", slider=True)
+               sub.itemR(raym, "fresnel_fac", text="Fac", slider=True)
                
                sub = split.column()
-               sub.itemR(raym, "gloss")
-               sub.itemR(raym, "gloss_threshold")
+               sub.itemR(raym, "gloss", slider=True)
+               sub.itemR(raym, "gloss_threshold", slider=True)
                sub.itemR(raym, "gloss_samples")
-               sub.itemR(raym, "gloss_anisotropic")
+               sub.itemR(raym, "gloss_anisotropic", slider=True)
                
                flow = layout.column_flow()
                flow.itemR(raym, "distance", text="Max Dist")
@@ -120,19 +120,19 @@ class MATERIAL_PT_raytransp(MaterialButtonsPanel):
                
                sub = split.column()
                sub.itemR(rayt, "ior")
-               sub.itemR(rayt, "fresnel")
-               sub.itemR(rayt, "fresnel_fac", text="Fac")
+               sub.itemR(rayt, "fresnel", slider=True)
+               sub.itemR(rayt, "fresnel_fac", text="Fac", slider=True)
                
                sub = split.column()
-               sub.itemR(rayt, "gloss")
-               sub.itemR(rayt, "gloss_threshold")
+               sub.itemR(rayt, "gloss", slider=True)
+               sub.itemR(rayt, "gloss_threshold", slider=True)
                sub.itemR(rayt, "gloss_samples")
                
                flow = layout.column_flow()
-               flow.itemR(rayt, "filter")
+               flow.itemR(rayt, "filter", slider=True)
                flow.itemR(rayt, "limit")
-               flow.itemR(rayt, "falloff")
-               flow.itemR(rayt, "specular_opacity")
+               flow.itemR(rayt, "falloff", slider=True)
+               flow.itemR(rayt, "specular_opacity", slider=True)
                flow.itemR(rayt, "depth")
                
 class MATERIAL_PT_halo(MaterialButtonsPanel):
@@ -152,9 +152,9 @@ class MATERIAL_PT_halo(MaterialButtonsPanel):
                
                sub = split.column()
                sub.itemL(text="General Settings:")
-               sub.itemR(halo, "size")
-               sub.itemR(halo, "hardness")
-               sub.itemR(halo, "add")
+               sub.itemR(halo, "size", slider=True)
+               sub.itemR(halo, "hardness", slider=True)
+               sub.itemR(halo, "add", slider=True)
                
                sub = split.column()
                sub.itemL(text="Elements:")
@@ -175,20 +175,20 @@ class MATERIAL_PT_halo(MaterialButtonsPanel):
        
                sub = row.column()
                if (halo.ring):
-                       sub.itemR(halo, "rings")
+                       sub.itemR(halo, "rings", slider=True)
                if (halo.lines):
-                       sub.itemR(halo, "line_number")
+                       sub.itemR(halo, "line_number", slider=True)
                if (halo.ring or halo.lines):
                        sub.itemR(halo, "seed")
                if (halo.star):
-                       sub.itemR(halo, "star_tips")
+                       sub.itemR(halo, "star_tips", slider=True)
                if (halo.flare_mode):
                        sub.itemL(text="Flare:")
-                       sub.itemR(halo, "flare_size", text="Size")
-                       sub.itemR(halo, "flare_subsize", text="Subsize")
-                       sub.itemR(halo, "flare_boost", text="Boost")
+                       sub.itemR(halo, "flare_size", text="Size", slider=True)
+                       sub.itemR(halo, "flare_subsize", text="Subsize", slider=True)
+                       sub.itemR(halo, "flare_boost", text="Boost", slider=True)
                        sub.itemR(halo, "flare_seed", text="Seed")
-                       sub.itemR(halo, "flares_sub", text="Sub")
+                       sub.itemR(halo, "flares_sub", text="Sub", slider=True)
                                
 bpy.types.register(MATERIAL_PT_material)
 bpy.types.register(MATERIAL_PT_raymir)
index 8ce0b4bf57d71e0e8dae7548071869852fa0b97e..c0e1f439df81ba14db25d3e495bb57b840448eaa 100644 (file)
@@ -78,7 +78,7 @@ class OBJECT_PT_duplication(ObjectButtonsPanel):
                layout = self.layout
 
                row = layout.row()
-               row.itemR(ob, "dupli_type", text="", expand=True)
+               row.itemR(ob, "dupli_type", expand=True)
 
                if ob.dupli_type == "FRAMES":
                        split = layout.split()
@@ -90,6 +90,30 @@ class OBJECT_PT_duplication(ObjectButtonsPanel):
                        sub = split.column(align=True)
                        sub.itemR(ob, "dupli_frames_on", text="On")
                        sub.itemR(ob, "dupli_frames_off", text="Off")
+                       
+                       split = layout.split()
+                       sub = split.column()
+                       sub.itemR(ob, "dupli_frames_no_speed", text="No Speed")
+
+               elif ob.dupli_type == "VERTS":
+                       split = layout.split()
+                       
+                       sub = split.column(align=True)
+                       sub.itemR(ob, "dupli_verts_rotation", text="Rotation")
+
+               elif ob.dupli_type == "FACES":
+                       split = layout.split()
+                       
+                       sub = split.column()
+                       sub.itemR(ob, "dupli_faces_scale", text="Scale")
+                       sub = split.column()
+                       sub.itemR(ob, "dupli_faces_inherit_scale", text="Inherit Scale")
+
+               elif ob.dupli_type == "GROUP":
+                       split = layout.split()
+                       
+                       sub = split.column(align=True)
+                       sub.itemR(ob, "dupli_group", text="Group")
 
 class OBJECT_PT_animation(ObjectButtonsPanel):
        __idname__ = "OBJECT_PT_animation"
index 360122fb8051cd60c60b9cdc6a859bc20bb5e1d4..f3ab661a678ac17f8a40d483200c12667ea9a7a9 100644 (file)
@@ -19,8 +19,8 @@ class RENDER_PT_shading(RenderButtonsPanel):
                
                sub = split.column()
                sub.itemR(rd, "render_shadows", text="Shadows")
-               sub.itemR(rd, "render_sss", text="SSS")
-               sub.itemR(rd, "render_envmaps", text="EnvMap")
+               sub.itemR(rd, "render_sss", text="Subsurface Scattering")
+               sub.itemR(rd, "render_envmaps", text="Environment Map")
                #       sub.itemR(rd, "render_radiosity", text="Radio")
                
                sub = split.column()
@@ -45,7 +45,7 @@ class RENDER_PT_output(RenderButtonsPanel):
                sub = split.column()
                sub.itemR(rd, "image_type")
                if rd.image_type in ("AVIJPEG", "JPEG"):
-                       sub.itemR(rd, "quality")
+                       sub.itemR(rd, "quality", slider=True)
                
                sub = split.column()
                sub.itemR(rd, "color_mode")
@@ -90,7 +90,7 @@ class RENDER_PT_antialiasing(RenderButtonsPanel):
 
                sub = split.column()
                sub.itemR(rd, "pixel_filter")
-               sub.itemR(rd, "filter_size", text="Size")
+               sub.itemR(rd, "filter_size", text="Size", slider=True)
                sub.itemR(rd, "save_buffers")
                if rd.save_buffers:
                        sub.itemR(rd, "full_sample")
@@ -132,7 +132,7 @@ class RENDER_PT_render(RenderButtonsPanel):
                
                row = layout.row()
                row.itemR(rd, "panorama")
-               row.itemR(rd, "dither_intensity", text="Dither")
+               row.itemR(rd, "dither_intensity", text="Dither", slider=True)
                #       row.itemR(rd, "backbuf")
                        
 class RENDER_PT_dimensions(RenderButtonsPanel):