[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22044] branches/blender2.5/blender/ release/ui/buttons_world.py: World UI
William Reynish
william at reynish.com
Thu Jul 30 10:30:57 CEST 2009
Revision: 22044
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22044
Author: billrey
Date: 2009-07-30 10:30:57 +0200 (Thu, 30 Jul 2009)
Log Message:
-----------
World UI
Cleaned up AO influence controls. These buttons had no labels, and were aligned strangely. Also made mist intensity a slider, since it's a percentage.
Modified Paths:
--------------
branches/blender2.5/blender/release/ui/buttons_world.py
Modified: branches/blender2.5/blender/release/ui/buttons_world.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_world.py 2009-07-30 08:29:03 UTC (rev 22043)
+++ branches/blender2.5/blender/release/ui/buttons_world.py 2009-07-30 08:30:57 UTC (rev 22044)
@@ -86,7 +86,7 @@
flow.itemR(world.mist, "start")
flow.itemR(world.mist, "depth")
flow.itemR(world.mist, "height")
- flow.itemR(world.mist, "intensity")
+ flow.itemR(world.mist, "intensity", slider=True)
layout.itemR(world.mist, "falloff")
@@ -163,12 +163,21 @@
col.itemR(ao, "pixel_cache")
col.itemR(ao, "correction")
- col = layout.column(align=True)
+ col = layout.column()
col.itemL(text="Influence:")
- row = col.row()
- row.itemR(ao, "blend_mode", text="")
- row.itemR(ao, "color", text="")
- row.itemR(ao, "energy", text="")
+
+ col.row().itemR(ao, "blend_mode", expand=True)
+
+ split = layout.split()
+
+ col = split.column()
+ col.itemR(ao, "energy")
+
+ col = split.column()
+ colsub = col.split(percentage=0.3)
+ colsub.itemL(text="Color:")
+ colsub.itemR(ao, "color", text="")
+
bpy.types.register(WORLD_PT_context_world)
bpy.types.register(WORLD_PT_preview)
More information about the Bf-blender-cvs
mailing list