97
96
bActionStrip *strip;
98
97
bConstraintChannel *conchan;
101
99
myortho2(0, NLAWIDTH, G.v2d->cur.ymin, G.v2d->cur.ymax); // Scaling
103
/* Blank out the area */
104
if(curarea->winx>SCROLLB+10 && curarea->winy>SCROLLH+10) {
106
ofsx= curarea->winrct.xmin;
107
ofsy= curarea->winrct.ymin;
108
glViewport(ofsx, ofsy+G.v2d->mask.ymin-SCROLLB, NLAWIDTH, ( ofsy+G.v2d->mask.ymax)-( ofsy+G.v2d->mask.ymin-SCROLLB));
109
glScissor(ofsx, ofsy+G.v2d->mask.ymin-SCROLLB, NLAWIDTH, ( ofsy+G.v2d->mask.ymax)-( ofsy+G.v2d->mask.ymin-SCROLLB));
113
BIF_GetThemeColor3fv(TH_HEADER, col);
114
glClearColor(col[0], col[1], col[2], 0.0);
115
glClear(GL_COLOR_BUFFER_BIT);
117
101
/* Clip to the scrollable area */
102
if(curarea->winx>SCROLLB+10 && curarea->winy>SCROLLH+10) {
104
ofsx= curarea->winrct.xmin;
105
ofsy= curarea->winrct.ymin;
106
glViewport(ofsx, ofsy+G.v2d->mask.ymin, NLAWIDTH, ( ofsy+G.v2d->mask.ymax)-( ofsy+G.v2d->mask.ymin));
107
glScissor(ofsx, ofsy+G.v2d->mask.ymin, NLAWIDTH, ( ofsy+G.v2d->mask.ymax)-( ofsy+G.v2d->mask.ymin));
119
111
glColor3ub(0x00, 0x00, 0x00);
234
226
/* Draw the field */
235
227
glEnable (GL_BLEND);
236
228
if (TESTBASE_SAFE(base))
237
glColor4b (col1[0], col1[1], col1[2], 0x22);
229
glColor4ub (col1[0], col1[1], col1[2], 0x22);
239
glColor4b (col2[0], col2[1], col2[2], 0x22);
231
glColor4ub (col2[0], col2[1], col2[2], 0x22);
241
233
gla2DDrawTranslatePt(di, 1, y, &frame1_x, &channel_y);
242
234
glRectf(0, channel_y-NLACHANNELHEIGHT/2, frame1_x, channel_y+NLACHANNELHEIGHT/2);
245
237
if (TESTBASE_SAFE(base))
246
glColor4b (col1[0], col1[1], col1[2], 0x44);
238
glColor4ub (col1[0], col1[1], col1[2], 0x44);
248
glColor4b (col2[0], col2[1], col2[2], 0x44);
240
glColor4ub (col2[0], col2[1], col2[2], 0x44);
249
241
glRectf(frame1_x, channel_y-NLACHANNELHEIGHT/2, G.v2d->hor.xmax, channel_y+NLACHANNELHEIGHT/2);
251
243
glDisable (GL_BLEND);
258
250
for (conchan=ob->constraintChannels.first; conchan; conchan=conchan->next){
259
251
glEnable (GL_BLEND);
260
252
if (conchan->flag & CONSTRAINT_CHANNEL_SELECT)
261
glColor4b (col1[0], col1[1], col1[2], 0x22);
253
glColor4ub (col1[0], col1[1], col1[2], 0x22);
263
glColor4b (col2[0], col2[1], col2[2], 0x22);
255
glColor4ub (col2[0], col2[1], col2[2], 0x22);
265
257
gla2DDrawTranslatePt(di, 1, y, &frame1_x, &channel_y);
266
258
glRectf(0, channel_y-NLACHANNELHEIGHT/2+4, frame1_x, channel_y+NLACHANNELHEIGHT/2-4);
269
261
if (conchan->flag & CONSTRAINT_CHANNEL_SELECT)
270
glColor4b (col1[0], col1[1], col1[2], 0x44);
262
glColor4ub (col1[0], col1[1], col1[2], 0x44);
272
glColor4b (col2[0], col2[1], col2[2], 0x44);
264
glColor4ub (col2[0], col2[1], col2[2], 0x44);
273
265
glRectf(frame1_x, channel_y-NLACHANNELHEIGHT/2+4, G.v2d->hor.xmax, channel_y+NLACHANNELHEIGHT/2-4);
275
267
glDisable (GL_BLEND);
494
486
uiDefBut(block, LABEL, 0, "Options:", 10,60,300,19, 0, 0, 0, 0, 0, "");
496
488
uiBlockBeginAlign(block);
497
uiDefBut(block, NUM|FLO, B_REDR, "Strip Start:", 10,160,150,19, &strip->start, 1.0, 18000.0, 100, 0, "First frame in the timeline");
498
uiDefBut(block, NUM|FLO, B_REDR, "Strip End:", 160,160,150,19, &strip->end, 1.0, 18000.0, 100, 0, "Last frame in the timeline");
500
uiBlockBeginAlign(block);
501
uiDefBut(block, NUM|FLO, B_REDR, "Action Start:", 10,120,150,19, &strip->actstart, 1.0, 18000.0, 100, 0, "First frame of the action to map to the playrange");
502
uiDefBut(block, NUM|FLO, B_REDR, "Action End:", 160,120,150,19, &strip->actend, 1.0, 18000.0, 100, 0, "Last frame of the action to map to the playrange");
504
uiBlockBeginAlign(block);
505
uiDefBut(block, NUM|FLO, B_REDR, "Blendin:", 10,80,150,19, &strip->blendin, 0.0, 18000.0, 100, 0, "Number of frames of ease-in");
506
uiDefBut(block, NUM|FLO, B_REDR, "Blendout:", 160,80,150,19, &strip->blendout, 0.0, 18000.0, 100, 0, "Number of frames of ease-out");
508
uiBlockBeginAlign(block);
509
uiDefBut(block, NUM|FLO, B_REDR, "Repeat:", 10,40,150,19, &strip->repeat, 0.0001, 18000.0, 100, 0, "Number of times the action should repeat");
510
uiDefBut(block, NUM|FLO, B_REDR, "Stride:", 160,40,150,19, &strip->stridelen, 0.0001, 18000.0, 100, 0, "Distance covered by one complete cycle of the action specified in the Action Range");
489
uiDefBut(block, NUM|FLO, B_REDR, "Strip Start:", 10,160,150,19, &strip->start, 1.0, MAXFRAMEF, 100, 0, "First frame in the timeline");
490
uiDefBut(block, NUM|FLO, B_REDR, "Strip End:", 160,160,150,19, &strip->end, 1.0, MAXFRAMEF, 100, 0, "Last frame in the timeline");
492
uiBlockBeginAlign(block);
493
uiDefBut(block, NUM|FLO, B_REDR, "Action Start:", 10,120,150,19, &strip->actstart, 1.0, MAXFRAMEF, 100, 0, "First frame of the action to map to the playrange");
494
uiDefBut(block, NUM|FLO, B_REDR, "Action End:", 160,120,150,19, &strip->actend, 1.0, MAXFRAMEF, 100, 0, "Last frame of the action to map to the playrange");
496
uiBlockBeginAlign(block);
497
uiDefBut(block, NUM|FLO, B_REDR, "Blendin:", 10,80,150,19, &strip->blendin, 0.0, MAXFRAMEF, 100, 0, "Number of frames of ease-in");
498
uiDefBut(block, NUM|FLO, B_REDR, "Blendout:", 160,80,150,19, &strip->blendout, 0.0, MAXFRAMEF, 100, 0, "Number of frames of ease-out");
500
uiBlockBeginAlign(block);
501
uiDefBut(block, NUM|FLO, B_REDR, "Repeat:", 10,40,150,19, &strip->repeat, 0.0001, MAXFRAMEF, 100, 0, "Number of times the action should repeat");
502
uiDefBut(block, NUM|FLO, B_REDR, "Stride:", 160,40,150,19, &strip->stridelen, 0.0001, MAXFRAMEF, 100, 0, "Distance covered by one complete cycle of the action specified in the Action Range");
512
504
uiBlockBeginAlign(block);
513
505
uiDefBut(block, TOG|SHO|BIT|ACTSTRIP_USESTRIDEBIT, B_REDR, "Use Path", 10,0,100,19, &strip->flag, 0, 0, 0, 0, "Plays action based on path position & stride. Only armatures parented to a path");