Primitive+text


XaMMaX90

Member
Joined
Jun 6, 2006
Messages
216
I try to draw box and after this draw on it text but i don,t see text =( How i can do it right?
Code:
process dialog(string text);
 private
  int yy;
 begin  
	yy=234; 
	repeat		   
	 yy=YY-4;  DELETE_DRAW(drawn);		 
	 DRAWING_COLOR(rgb(110,110,110));
	 DRAW_rect(2,yy,318,238); 
	 DRAWING_COLOR(rgb(25,23,12));
	 DRAW_BOX(3,yy+1,317,237);
	 frame;		 
	until (yy<140); 
	delete_text(0); 
	 WRITE(0,6,133,0,text);   
	repeat			 
	 delete_text(0); 
	 WRITE(0,6,133,0,text);  
	 frame;
	until (key(_space));
  end;

Help me please!
 
Hm i see now i now that i only need drawing_z =) but what with picture with put and xput???
Code:
process dialog(string text,int player);
 private
  int yy;
 begin  
	yy=234; 
	repeat  
	 DRAWING_Z(10);		 
	 yy=YY-4;  
	 DELETE_DRAW(drawn);	   
	 DRAWING_COLOR(rgb(110,110,110));
	 DRAW_rect(2,yy,318,238); 
	 DRAWING_COLOR(rgb(25,23,12));
	 DRAW_BOX(3,yy+1,317,237);
	 frame;			  
	until (yy<138);		
	 DRAWING_COLOR(rgb(110,110,110));   
	 DRAW_rect(230,yy+4,314,234);  
	 DRAWING_Z(100);
	 xput(avatars,player,255,160,0,100,0,0); 
	 frame;
	repeat		   
	 DRAWING_Z(12);  
	 delete_text(0); 
	 WRITE(0,8,142,0,text);  
	 frame;
	until (key(_space));
  end;
 
XaMMaX90 posted on Oct 27 2006 at 06:54 PM said:
Help please!!!!!!
if i remember right, the lower the z, the more on top it is (and z can be negative). i'd say experiment with it a bit :)
 
Last edited by a moderator:
Back
Top