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:
authorTon Roosendaal <ton@blender.org>2006-12-07 17:17:38 +0300
committerTon Roosendaal <ton@blender.org>2006-12-07 17:17:38 +0300
commit17231f83f37be4890c4067caa72d4957207975b0 (patch)
tree298c6ca2cbb01b6c546162b070498c6b7f123450 /source/blender/src/interface_draw.c
parent80d1d88ef6dbcae8bfba2bbc7429310bac127652 (diff)
Work on RenderLayer and Pass control:
Full log: http://www.blender3d.org/cms/Render_Passes.829.0.html In short: - Passes now have option to be excluded from "Combined". - RenderLayers allow to override Light (Lamp groups) or Material. - RenderLayers and Passes are in Outliner now, (ab)using Matt's nice 'restriction collumns'. :)
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r--source/blender/src/interface_draw.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c
index de95b1264b4..653b596e5ec 100644
--- a/source/blender/src/interface_draw.c
+++ b/source/blender/src/interface_draw.c
@@ -160,10 +160,9 @@ void uiEmboss(float x1, float y1, float x2, float y2, int sel)
/* icons have been standardized... and this call draws in untransformed coordinates */
#define ICON_HEIGHT 16.0f
-static void ui_draw_icon(uiBut *but, BIFIconID icon)
+static void ui_draw_icon(uiBut *but, BIFIconID icon, int blend)
{
float xs=0, ys=0, aspect, height;
- int blend= 0;
/* this icon doesn't need draw... */
if(icon==ICON_BLANK1) return;
@@ -184,7 +183,10 @@ static void ui_draw_icon(uiBut *but, BIFIconID icon)
height= ICON_HEIGHT;
if(but->flag & UI_ICON_LEFT) {
- if (but->type==BUTM) {
+ if (but->type==BUT_TOGDUAL && but->drawstr[0]) {
+ xs= but->x1-1.0;
+ }
+ else if (but->type==BUTM ) {
xs= but->x1+1.0;
}
else if ((but->type==ICONROW) || (but->type==ICONTEXTROW)) {
@@ -1455,7 +1457,7 @@ static void ui_draw_text_icon(uiBut *but)
/* check for button text label */
if (but->type == ICONTEXTROW) {
- ui_draw_icon(but, (BIFIconID) (but->icon+but->iconadd));
+ ui_draw_icon(but, (BIFIconID) (but->icon+but->iconadd), 0);
}
else {
@@ -1514,9 +1516,8 @@ static void ui_draw_text_icon(uiBut *but)
dualset= BTST( *(((short *)but->poin)+1), but->bitnr);
else if(but->pointype==INT)
dualset= BTST( *(((int *)but->poin)+1), but->bitnr);
- if(dualset) {
- ui_draw_icon(but, ICON_DOT);
- }
+
+ ui_draw_icon(but, ICON_DOT, dualset?0:-100);
}
if(but->drawstr[0]!=0) {
@@ -1531,7 +1532,7 @@ static void ui_draw_text_icon(uiBut *but)
and offset the text label to accomodate it */
if ( (but->flag & UI_HAS_ICON) && (but->flag & UI_ICON_LEFT) ) {
- ui_draw_icon(but, but->icon);
+ ui_draw_icon(but, but->icon, 0);
if(but->flag & UI_TEXT_LEFT) x= but->x1 + but->aspect*BIF_icon_get_width(but->icon)+5.0;
else x= (but->x1+but->x2-but->strwidth+1)/2.0;
@@ -1591,7 +1592,7 @@ static void ui_draw_text_icon(uiBut *but)
}
/* if there's no text label, then check to see if there's an icon only and draw it */
else if( but->flag & UI_HAS_ICON ) {
- ui_draw_icon(but, (BIFIconID) (but->icon+but->iconadd));
+ ui_draw_icon(but, (BIFIconID) (but->icon+but->iconadd), 0);
}
}
}
@@ -2368,7 +2369,7 @@ void ui_draw_but(uiBut *but)
case LINK:
case INLINK:
- ui_draw_icon(but, but->icon);
+ ui_draw_icon(but, but->icon, 0);
break;
case ROUNDBOX: