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:
authorDalai Felinto <dfelinto@gmail.com>2010-05-12 12:53:44 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-05-12 12:53:44 +0400
commit285a73d274b6092b7a7dd5feb2013ab5c96234a1 (patch)
tree303d25cf3bdefff8d76809420695b4c2d1b98813 /source/blender/editors/space_logic
parente5445302266323a5961350e2a8f465961680219d (diff)
Logic UI: Controller header, moving the text to the left
Diffstat (limited to 'source/blender/editors/space_logic')
-rw-r--r--source/blender/editors/space_logic/logic_window.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/source/blender/editors/space_logic/logic_window.c b/source/blender/editors/space_logic/logic_window.c
index 5b7926c7a0d..1390be14df8 100644
--- a/source/blender/editors/space_logic/logic_window.c
+++ b/source/blender/editors/space_logic/logic_window.c
@@ -4368,17 +4368,13 @@ static void logic_buttons_new(bContext *C, ARegion *ar)
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 @@ static void logic_buttons_new(bContext *C, ARegion *ar)
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++) {