[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28735] trunk/blender/source/blender/ editors/space_logic/logic_window.c: Logic UI: Controller header, moving the text to the left

Dalai Felinto dfelinto at gmail.com
Wed May 12 10:54:08 CEST 2010


Revision: 28735
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28735
Author:   dfelinto
Date:     2010-05-12 10:53:44 +0200 (Wed, 12 May 2010)

Log Message:
-----------
Logic UI: Controller header, moving the text to the left

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_logic/logic_window.c

Modified: trunk/blender/source/blender/editors/space_logic/logic_window.c
===================================================================
--- trunk/blender/source/blender/editors/space_logic/logic_window.c	2010-05-12 08:34:15 UTC (rev 28734)
+++ trunk/blender/source/blender/editors/space_logic/logic_window.c	2010-05-12 08:53:44 UTC (rev 28735)
@@ -4368,17 +4368,13 @@
 
 		box= uiLayoutBox(layout);
 		uiLayoutSetAlignment(box, UI_LAYOUT_ALIGN_CENTER); //XXX doesn't seem to work
-		split= uiLayoutSplit(box, 0.15, 0);
+		split= uiLayoutSplit(box, 0.2, 0);
 
 		col= uiLayoutColumn(split, 0);
-		uiItemR(col, &settings_ptr, "all_states", UI_ITEM_R_TOGGLE, NULL, 0);
-		/* XXX terrible workaround while we don't have a nice set of icons here :) */
-		if(RNA_boolean_get(&settings_ptr, "debug_state")==0)
-			uiItemR(col, &settings_ptr, "debug_state", UI_ITEM_R_NO_BG, "", 0);
-		else
-			uiItemR(col, &settings_ptr, "debug_state", 0, "", 0); 
+		uiItemL(col, "Visible", 0);
+		uiItemL(col, "Initial", 0);
 
-		subsplit= uiLayoutSplit(split, 0.7225, 0);
+		subsplit= uiLayoutSplit(split, 0.85, 0);
 		col= uiLayoutColumn(subsplit, 0);
 		row= uiLayoutRow(col, 0);
 		uiLayoutSetActive(row, RNA_boolean_get(&settings_ptr, "all_states")==0);
@@ -4387,8 +4383,8 @@
 		uiTemplateLayers(row, &settings_ptr, "initial_state", &settings_ptr, "used_state", 0);
 
 		col= uiLayoutColumn(subsplit, 0);
-		uiItemL(col, "Visible", 0);
-		uiItemL(col, "Initial", 0);
+		uiItemR(col, &settings_ptr, "all_states", UI_ITEM_R_TOGGLE, NULL, 0);
+		uiItemR(col, &settings_ptr, "debug_state", 0, "", 0); 
 	}
 
 	for(a=0; a<count; a++) {





More information about the Bf-blender-cvs mailing list