38 #define RCOLUMN_OFFSET 16 * vid_hudscale->value
39 #define LCOLUMN_OFFSET -16 * vid_hudscale->value
45 #define VID_WIDTH viddef.width
46 #define VID_HEIGHT viddef.height
48 #define Draw_Char re.DrawChar
49 #define Draw_Fill re.DrawFill
90 char tempbuffer[128]=
"";
205 strtok( cbd,
"\n\r\b" );
405 else if ( item->statusbar )
421 int l = (
int)strlen(
string );
423 int col = maxcol / 2 - l / 2;
438 for (
i = 0;
i < strlen(
string );
i++ )
448 for (
i = 0;
i < strlen(
string );
i++ )
458 for (
i = 0;
i < strlen(
string );
i++ )
468 for (
i = 0;
i < strlen(
string );
i++ )
488 switch ( item->
type )
517 switch ( item->
type )
588 if (
s->generic.name )
596 if (
s->curvalue >
s->maxvalue )
597 s->curvalue =
s->maxvalue;
598 else if (
s->curvalue <
s->minvalue )
599 s->curvalue =
s->minvalue;
601 if (
s->generic.callback )
602 s->generic.callback(
s );
605 #define SLIDER_RANGE 10
612 s->generic.y +
s->generic.parent->y,
615 s->range = (
s->curvalue -
s->minvalue ) / (
float ) (
s->maxvalue -
s->minvalue );
631 if (
s->itemnames[
s->curvalue] == 0 )
634 if (
s->generic.callback )
635 s->generic.callback(
s );
642 if (
s->curvalue < 0 )
644 else if (
s->itemnames[
s->curvalue] == 0 )
647 if (
s->generic.callback )
648 s->generic.callback(
s );
655 if (
s->generic.name )
658 s->generic.y +
s->generic.parent->y,
661 if ( !strchr(
s->itemnames[
s->curvalue],
'\n' ) )
667 strcpy(
buffer,
s->itemnames[
s->curvalue] );
668 *strchr(
buffer,
'\n' ) = 0;
670 strcpy(
buffer, strchr(
s->itemnames[
s->curvalue],
'\n' ) + 1 );