31 label = strdup( name );
41 label = strdup( newname );
51 if (highlight == 0)
ShowColor( xcoord, ycoord, width, height, 0.51, 0.47, 0.79, 1 );
53 else ShowColor( xcoord, ycoord, width, height, 0.66, 0.6, 1, 1 );
55 ShowText( xcoord+0.01, ycoord-height+( (height-0.04)/2 ), width, 4, label, 0 );
60 if (Inside( x, y ) == 0)
return 0;
68 if (Inside( x, y ) == 0) {
84 if (type == 1)
return MouseClick( button, state, x, y );
90 int Button::Inside(
float x,
float y )
92 if (x < xcoord || y > ycoord)
return 0;
93 if ( x > (xcoord+width) )
return 0;
94 if ( y < (ycoord-height) )
return 0;