i had the same problem and i did that status info on this kind of way:

Code:
FONT* arial_font = "Arial#20b"; // truetype font 

PANEL* stats =
{
  pos_x = 4; pos_y = 4;
  digits(10,0,"Ping: %.f",arial_font,1,ping);
  digits(10,20,"Data in: %.f",arial_font,1,data_in);
  digits(10,40,"Data out: %.f",arial_font,1,data_out);
  
  
  flags =  VISIBLE;
}


and in main loop you need to add this:

Code:
ping = enet_get_ping(); //get the current ping 
data_in = enet_get_datatransfer(2); //get the received data size of the last second 
data_out = enet_get_datatransfer(1); //get the sent data size of the last second 



you can easily implement hiding/showing of that status panel if f11 e.g. is pressed

Last edited by cerberi_croman; 12/10/08 15:25.


Ubi bene, ibi Patria.