[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22088] branches/blender2.5/blender/ release/ui/buttons_physics_field.py: 2.5 Field Panels:

Thomas Dinges dingto at gmx.de
Fri Jul 31 17:36:15 CEST 2009


Revision: 22088
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22088
Author:   dingto
Date:     2009-07-31 17:36:14 +0200 (Fri, 31 Jul 2009)

Log Message:
-----------
2.5 Field Panels:

* Attempt to make it a bit more consistent. ;-)

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/buttons_physics_field.py

Modified: branches/blender2.5/blender/release/ui/buttons_physics_field.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_physics_field.py	2009-07-31 14:38:42 UTC (rev 22087)
+++ branches/blender2.5/blender/release/ui/buttons_physics_field.py	2009-07-31 15:36:14 UTC (rev 22088)
@@ -22,72 +22,62 @@
 
 		#layout.active = field.enabled
 		
+		split = layout.split(percentage=0.2)
+		
+		split.itemL(text="Type:")
+		split.itemR(field, "type",text="")
+			
 		split = layout.split()
 		
-		col = split.column()
-		col.itemR(field, "type", text="")
-		
-		col = split.column()
-		split = layout.split(percentage=0.5)
-		
-		if field.type == 'NONE':
-			col = split.column()
+		if field.type == 'GUIDE':
+			layout.itemR(field, "guide_path_add")
 			
-		elif field.type == 'GUIDE':
-			col = split.column()
-			col.itemR(field, "guide_path_add")
-			
 		elif field.type == 'WIND':
-			col.itemR(field, "strength")
+			split.itemR(field, "strength")
 			
 			col = split.column()
 			col.itemR(field, "noise")
 			col.itemR(field, "seed")
 
 		elif field.type == 'VORTEX':
-			col.itemR(field, "strength")
+			split.itemR(field, "strength")
+			split.itemL()
 			
-			col = split.column()
-
 		elif field.type in ('SPHERICAL', 'CHARGE', 'LENNARDJ'):
-			col = split.column()
-			col.itemR(field, "strength")
+			split.itemR(field, "strength")
 			
 			col = split.column()
 			col.itemR(field, "planar")
-			col = split.column()
 			col.itemR(field, "surface")
 			
 		elif field.type == 'BOID':
-			col.itemR(field, "strength")
+			split.itemR(field, "strength")
+			split.itemR(field, "surface")
 			
-			col = split.column()
-			col.itemR(field, "surface")
-			
 		elif field.type == 'MAGNET':
-			col.itemR(field, "strength")
+			split.itemR(field, "strength")
+			split.itemR(field, "planar")
 			
-			col = split.column()
-			col.itemR(field, "planar")
-			
 		elif field.type == 'HARMONIC':
+			col = split.column()
 			col.itemR(field, "strength")
 			col.itemR(field, "harmonic_damping", text="Damping")
 			
 			col = split.column()
-			col.itemR(field, "surface")
 			col.itemR(field, "planar")
+			col.itemR(field, "surface")
 			
 		elif field.type == 'TEXTURE':
+			col = split.column()
 			col.itemR(field, "strength")
 			col.itemR(field, "texture", text="")
-			col.itemR(field, "force_2d")
-			
-			col = split.column()
 			col.itemR(field, "texture_mode", text="")
 			col.itemR(field, "texture_nabla")
+			
+			col = split.column()
 			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'):
 			





More information about the Bf-blender-cvs mailing list