PANEL* name = { ... }

Panels are the basic elements for 2D graphics applications as well as for the user interface of 3D games ( the GUI library is based on panels ). Panels are rectangular areas with a simple image oder more complex elements like texts, numbers, instruments, buttons or other controls. They move over the screen and can be used for cockpits, dashboards, inventories and inventory items, buttons, background screens or 2D sprites.

Example:

PANEL* aircraft_pan =
{
  pos_x = 4; pos_y = 4;
  digits(0,0,4,digit_font,1000,player._rpm);
  digits(60,0,4,digit_font,1,player._speed);
  digits(120,0,4,digit_font,1,my_height);
  window(200,0,40,20,"compass.pcx",compass_pos.x,compass_pos.y);
  flags =  SHOW;
}

Remarks:

See also:

bmap, layer, pos_x, size_x, alpha, flags, button, slider, window, digits, needle, event, pan_create, lbgui.h

► latest version online