diff options
author | Thomas Dinges <blender@dingto.org> | 2009-06-08 16:01:17 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-06-08 16:01:17 +0400 |
commit | d3467960d8e622f306c66062c53c725426f77369 (patch) | |
tree | 5817d09ba21851725d2fd336cdf80e7049731349 /release/ui | |
parent | ab0ccbeef9e1062b422d4d998f4f06de975a500a (diff) |
2.5 Texture Buttons:
Some tweaks by William Reynish. Thanks!
Diffstat (limited to 'release/ui')
-rw-r--r-- | release/ui/buttons_texture.py | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/release/ui/buttons_texture.py b/release/ui/buttons_texture.py index e47c775d7fd..099a00109e5 100644 --- a/release/ui/buttons_texture.py +++ b/release/ui/buttons_texture.py @@ -59,7 +59,12 @@ class TEXTURE_PT_texture(TextureButtonsPanel): layout.itemS() if tex: - layout.itemR(tex, "type") + split = layout.split(percentage=0.2) + + col = split.column() + col.itemL(text="Type:") + col = split.column() + col.itemR(tex, "type", text="") class TEXTURE_PT_colors(TextureButtonsPanel): __idname__= "TEXTURE_PT_colors" @@ -72,11 +77,14 @@ class TEXTURE_PT_colors(TextureButtonsPanel): if tex.color_ramp: layout.template_color_ramp(tex.color_ramp, expand=True) else: - layout.itemR(tex, "rgb_factor") + split = layout.split() + col = split.column() + col.itemR(tex, "rgb_factor") - row = layout.row() - row.itemR(tex, "brightness") - row.itemR(tex, "contrast") + col = split.column() + col.itemL(text="Adjust:") + col.itemR(tex, "brightness") + col.itemR(tex, "contrast") class TEXTURE_PT_clouds(TextureButtonsPanel): __idname__= "TEXTURE_PT_clouds" @@ -112,13 +120,17 @@ class TEXTURE_PT_wood(TextureButtonsPanel): layout = self.layout tex = context.texture - layout.itemR(tex, "stype", expand=True) layout.itemR(tex, "noisebasis2", expand=True) - layout.itemL(text="Noise:") - layout.itemR(tex, "noise_type", text="Type", expand=True) - layout.itemR(tex, "noise_basis", text="Basis") + layout.itemR(tex, "stype", expand=True) + + col = layout.column() + col.active = tex.stype in ('RINGNOISE', 'BANDNOISE') + col.itemL(text="Noise:") + col.row().itemR(tex, "noise_type", text="Type", expand=True) + col.itemR(tex, "noise_basis", text="Basis") col = layout.column_flow() + col.active = tex.stype in ('RINGNOISE', 'BANDNOISE') col.itemR(tex, "noise_size", text="Size") col.itemR(tex, "turbulence") col.itemR(tex, "nabla") @@ -389,7 +401,6 @@ class TEXTURE_PT_distortednoise(TextureButtonsPanel): bpy.types.register(TEXTURE_PT_preview) bpy.types.register(TEXTURE_PT_texture) -bpy.types.register(TEXTURE_PT_colors) bpy.types.register(TEXTURE_PT_clouds) bpy.types.register(TEXTURE_PT_wood) bpy.types.register(TEXTURE_PT_marble) @@ -403,4 +414,4 @@ bpy.types.register(TEXTURE_PT_envmap) bpy.types.register(TEXTURE_PT_musgrave) bpy.types.register(TEXTURE_PT_voronoi) bpy.types.register(TEXTURE_PT_distortednoise) - +bpy.types.register(TEXTURE_PT_colors)
\ No newline at end of file |