Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2009-07-31 18:38:42 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2009-07-31 18:38:42 +0400
commit50ea547176c4769856050cff2af0fac809342ce0 (patch)
tree81cbde47d24e75ec367caf24235b7f8c223c429a /release
parentb7d11a5eefc76e82585b6a0f469f51a26d92f17a (diff)
Fields UI: Several attempts to follow UI guide and other things leaded to a really confusing UI (on the left):
http://666kb.com/i/bb49zl2t6ojvk7tax.png We tried now to connect top-down with left-right, having top-down for the big picture (like already used in textures panel). Other fields still missing. Approved by William, another small fix ("type" in one row) suggested by DingTo (not visible in the screenshot).
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_physics_field.py103
1 files changed, 53 insertions, 50 deletions
diff --git a/release/ui/buttons_physics_field.py b/release/ui/buttons_physics_field.py
index b9c81042a13..9a24fb7cd21 100644
--- a/release/ui/buttons_physics_field.py
+++ b/release/ui/buttons_physics_field.py
@@ -22,51 +22,55 @@ class PHYSICS_PT_field(PhysicButtonsPanel):
#layout.active = field.enabled
- split = layout.split(percentage=0.3)
-
- split.itemL(text="Type:")
- split.itemR(field, "type", text="")
-
split = layout.split()
col = split.column()
-
- if field.type == "GUIDE":
+ col.itemR(field, "type", text="")
+
+ col = split.column()
+ split = layout.split(percentage=0.5)
+
+ if field.type == 'NONE':
+ col = split.column()
+
+ elif field.type == 'GUIDE':
+ col = split.column()
col.itemR(field, "guide_path_add")
- elif field.type == "WIND":
+ elif field.type == 'WIND':
col.itemR(field, "strength")
col = split.column()
col.itemR(field, "noise")
col.itemR(field, "seed")
- elif field.type == "VORTEX":
+ elif field.type == 'VORTEX':
col.itemR(field, "strength")
col = split.column()
- col.itemL(text="")
- elif field.type in ("SPHERICAL", "CHARGE", "LENNARDJ"):
+ elif field.type in ('SPHERICAL', 'CHARGE', 'LENNARDJ'):
+ col = split.column()
col.itemR(field, "strength")
col = split.column()
col.itemR(field, "planar")
+ col = split.column()
col.itemR(field, "surface")
- elif field.type == "BOID":
+ elif field.type == 'BOID':
col.itemR(field, "strength")
col = split.column()
col.itemR(field, "surface")
- elif field.type == "MAGNET":
+ elif field.type == 'MAGNET':
col.itemR(field, "strength")
col = split.column()
col.itemR(field, "planar")
- elif field.type == "HARMONIC":
+ elif field.type == 'HARMONIC':
col.itemR(field, "strength")
col.itemR(field, "harmonic_damping", text="Damping")
@@ -74,81 +78,80 @@ class PHYSICS_PT_field(PhysicButtonsPanel):
col.itemR(field, "surface")
col.itemR(field, "planar")
- elif field.type == "TEXTURE":
+ elif field.type == 'TEXTURE':
col.itemR(field, "strength")
col.itemR(field, "texture", text="")
- col.itemR(field, "texture_mode")
- col.itemR(field, "texture_nabla")
+ col.itemR(field, "force_2d")
col = split.column()
+ col.itemR(field, "texture_mode", text="")
+ col.itemR(field, "texture_nabla")
col.itemR(field, "use_coordinates")
col.itemR(field, "root_coordinates")
- col.itemR(field, "force_2d")
- if field.type in ("HARMONIC", "SPHERICAL", "CHARGE", "WIND", "VORTEX", "TEXTURE", "MAGNET", "BOID"):
- layout.itemS()
+ if field.type in ('HARMONIC', 'SPHERICAL', 'CHARGE', 'WIND', 'VORTEX', 'TEXTURE', 'MAGNET', 'BOID'):
+
layout.itemL(text="Falloff:")
layout.itemR(field, "falloff_type", expand=True)
-
- row = layout.row()
- row.itemR(field, "falloff_power", text="Power")
- row.itemR(field, "positive_z", text="Positive Z")
-
- layout.itemS()
- split = layout.split()
+
+ split = layout.split(percentage=0.35)
col = split.column()
- col.itemR(field, "use_min_distance", text="Minimum")
+ col.itemR(field, "positive_z", text="Positive Z")
+ col.itemR(field, "use_min_distance", text="Use Minimum")
+ col.itemR(field, "use_max_distance", text="Use Maximum")
+
+ col = split.column()
+ col.itemR(field, "falloff_power", text="Power")
+
sub = col.column()
sub.active = field.use_min_distance
sub.itemR(field, "minimum_distance", text="Distance")
- col = split.column()
- col.itemR(field, "use_max_distance", text="Maximum")
sub = col.column()
sub.active = field.use_max_distance
sub.itemR(field, "maximum_distance", text="Distance")
- if field.falloff_type == "CONE":
- layout.itemS()
- layout.itemL(text="Angular:")
+ if field.falloff_type == 'CONE':
- row = layout.row()
- row.itemR(field, "radial_falloff", text="Power")
- row.itemL()
+ layout.itemS()
- split = layout.split()
+ split = layout.split(percentage=0.35)
col = split.column()
- col.itemR(field, "use_radial_min", text="Minimum")
+ col.itemL(text="Angular:")
+ col.itemR(field, "use_radial_min", text="Use Minimum")
+ col.itemR(field, "use_radial_max", text="Use Maximum")
+
+ col = split.column()
+ col.itemR(field, "radial_falloff", text="Power")
+
sub = col.column()
sub.active = field.use_radial_min
sub.itemR(field, "radial_minimum", text="Angle")
- col = split.column()
- col.itemR(field, "use_radial_max", text="Maximum")
sub = col.column()
sub.active = field.use_radial_max
sub.itemR(field, "radial_maximum", text="Angle")
- elif field.falloff_type == "TUBE":
- layout.itemS()
- layout.itemL(text="Radial:")
+ elif field.falloff_type == 'TUBE':
- row = layout.row()
- row.itemR(field, "radial_falloff", text="Power")
- row.itemL()
+ layout.itemS()
- split = layout.split()
+ split = layout.split(percentage=0.35)
+
+ col = split.column()
+ col.itemL(text="Radial:")
+ col.itemR(field, "use_radial_min", text="Use Minimum")
+ col.itemR(field, "use_radial_max", text="Use Maximum")
col = split.column()
- col.itemR(field, "use_radial_min", text="Minimum")
+ col.itemR(field, "radial_falloff", text="Power")
+
sub = col.column()
sub.active = field.use_radial_min
sub.itemR(field, "radial_minimum", text="Distance")
- col = split.column()
- col.itemR(field, "use_radial_max", text="Maximum")
sub = col.column()
sub.active = field.use_radial_max
sub.itemR(field, "radial_maximum", text="Distance")