diff --git a/source/blender/src/buttons_logic.c b/source/blender/src/buttons_logic.c index 9840f254020..a598da93b6b 100644 --- a/source/blender/src/buttons_logic.c +++ b/source/blender/src/buttons_logic.c @@ -2492,7 +2492,7 @@ void logic_buts(void) else buttons_ketsji(block, ob); uiBlockSetCol(block, TH_AUTO); - uiDefBut(block, BUT, B_ADD_PROP, "ADD property", 10, 90, 340, 24, + uiDefBut(block, BUT, B_ADD_PROP, "Add Property", 10, 90, 340, 24, NULL, 0.0, 100.0, 100, 0, ""); @@ -2500,6 +2500,7 @@ void logic_buts(void) a= 0; prop= ob->prop.first; + uiBlockBeginAlign(block); while(prop) { but= uiDefBut(block, BUT, 1, "Del", 10, (short)(70-20*a), 40, 19, NULL, 0.0, 0.0, 1, (float)a, ""); @@ -2532,7 +2533,7 @@ void logic_buts(void) a++; prop= prop->next; } - + uiBlockEndAlign(block); uiClearButLock(); idar= get_selected_and_linked_obs(&count, G.buts->scaflag); diff --git a/source/blender/src/buttons_script.c b/source/blender/src/buttons_script.c index e29f0af16cb..f56b56d0965 100644 --- a/source/blender/src/buttons_script.c +++ b/source/blender/src/buttons_script.c @@ -277,13 +277,16 @@ void draw_scriptlink(uiBlock *block, ScriptLink *script, int sx, int sy, int sce strcat(str, "OnLoad%x 2|"); strcat(str, "OnSave%x 8"); } - + + uiBlockBeginAlign(block); uiDefButS(block, MENU, 1, str, (short)sx, (short)sy, 140, 19, &script->flag[script->actscript-1], 0, 0, 0, 0, "Script links for this event"); uiDefIDPoinBut(block, test_scriptpoin_but, ID_SCRIPT, 1, "", (short)(sx+140),(short)sy, 140, 19, &script->scripts[script->actscript-1], "Name of Script to link"); + uiBlockEndAlign(block); } sprintf(str,"%d Scr:", script->totscript); + uiDefButS(block, NUM, REDRAWBUTSSCRIPT, str, (short)(sx+140), (short)sy-20,60,19, &script->actscript, 1, script->totscript, 0, 0, "Total / Active Script link (LeftMouse + Drag to change)"); if (scene) { @@ -291,18 +294,17 @@ void draw_scriptlink(uiBlock *block, ScriptLink *script, int sx, int sy, int sce uiDefBut(block, BUT, B_SSCRIPT_ADD, "New", (short)(sx+240), (short)sy-20, 40, 19, 0, 0, 0, 0, 0, "Add a new Script link"); if (script->totscript) uiDefBut(block, BUT, B_SSCRIPT_DEL, "Del", (short)(sx+200), (short)sy-20, 40, 19, 0, 0, 0, 0, 0, "Delete the current Script link"); - uiDefBut(block, LABEL, 0, "Scene Script link", sx,sy-20,140,20, 0, 0, 0, 0, 0, ""); - } + } else { if (script->totscript<32767) uiDefBut(block, BUT, B_SCRIPT_ADD, "New", (short)(sx+240), (short)sy-20, 40, 19, 0, 0, 0, 0, 0, "Add a new Script link"); if (script->totscript) uiDefBut(block, BUT, B_SCRIPT_DEL, "Del", (short)(sx+200), (short)sy-20, 40, 19, 0, 0, 0, 0, 0, "Delete the current Script link"); - uiDefBut(block, LABEL, 0, "Selected Script link", sx,sy-20,140,20, 0, 0, 0, 0, 0, ""); - } + } + } /* ************************************* */ @@ -323,8 +325,9 @@ static void script_panel_scriptlink(void) "Enable execution of all assigned Script links"); /* for proper alignment: */ uiDefBut(block, LABEL, 0, "", 160, 200,150,20, NULL, 0.0, 0.0, 0, 0, ""); - + if (G.f & G_DOSCRIPTLINKS) { + uiBlockBeginAlign(block); ob= OBACT; if(ob) uiDefIconButS(block, ROW, B_REDR, ICON_OBJECT, xco,175,25,20, &G.buts->scriptblock, 2.0, (float)ID_OB, 0, 0, "Displays Object script links"); @@ -340,7 +343,7 @@ static void script_panel_scriptlink(void) if(ob && ob->type==OB_LAMP) uiDefIconButS(block, ROW, B_REDR, ICON_LAMP, xco+=25,175,25,20, &G.buts->scriptblock, 2.0, (float)ID_LA, 0, 0, "Displays Lamp script links"); - + uiBlockEndAlign(block); if (ob && G.buts->scriptblock==ID_OB) { script= &ob->scriptlink; diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c index 2b07d0124ec..425ebfd9578 100644 --- a/source/blender/src/buttons_shading.c +++ b/source/blender/src/buttons_shading.c @@ -2741,10 +2741,10 @@ static void material_panel_texture(Material *ma) else uiDefIconButBitS(block, TOG, 1<septex, 0.0, 0.0, 0, 0, "Click to disable or enable this texture channel"); } } - + uiBlockBeginAlign(block); uiDefIconBut(block, BUT, B_MTEXCOPY, ICON_COPYUP, 100,180,23,21, 0, 0, 0, 0, 0, "Copies the mapping settings to the buffer"); uiDefIconBut(block, BUT, B_MTEXPASTE, ICON_PASTEUP, 125,180,23,21, 0, 0, 0, 0, 0, "Pastes the mapping settings from the buffer"); - + uiBlockEndAlign(block); uiBlockSetCol(block, TH_AUTO); mtex= ma->mtex[ ma->texact ]; @@ -3056,10 +3056,10 @@ static void material_panel_material(Material *ma) if(uiNewPanel(curarea, block, "Material", "Material", 320, 0, 318, 204)==0) return; uiSetButLock(ma->id.lib!=NULL, "Can't edit library data"); - + uiBlockBeginAlign(block); uiDefIconBut(block, BUT, B_MATCOPY, ICON_COPYUP, 262,200,XIC,YIC, 0, 0, 0, 0, 0, "Copies Material to the buffer"); uiDefIconBut(block, BUT, B_MATPASTE, ICON_PASTEUP, 283,200,XIC,YIC, 0, 0, 0, 0, 0, "Pastes Material from the buffer"); - + uiBlockEndAlign(block); if(ma->dynamode & MA_DRAW_DYNABUTS) { uiBlockBeginAlign(block); uiDefButF(block, NUMSLI, B_DIFF, "Restitut ", 128,120,175,20, &ma->reflect, 0.0, 1.0, 0, 0, "Elasticity of collisions");