panel.blue, panel.green, panel.red

These parameters set the colors for the true type fonts used in "digits" elements.

panel players_pan
{
    bmap = menu_pcx;
    pos_x = 0;
    pos_y = 0;
    layer = 10;

    blue = 250;
    green = 0;
    red = 0;

   digits = 125, 12, 3, arial_font, 1, health;
   digits = 125, 37, 3, arial_font, 1, armor;
   digits = 125, 63, 3, arial_font, 1, ammo;

   flags = overlay, refresh, visible;
}


 

WED Customize dialog

- "What's this?" button. Click that button, and then click a tag; if that tag includes a help text, it will be displayed in a popup window.


- "Restore" allows you to reload a script with the original values. Click that button, and then select the original script in the template_6/code folder.

- "Update Script" allows you to update your script to a new version without losing any changes you made to values. Click the button, and then select the script in the template_6/code folder.


 

pan_setpos (panel, element_type, element_number, new_position)

Changes the pos_x and pos_y position of any panel element.

- element_type = 1 (digits), 3 (buttons), 4 (sliders), 6 (windows)
- element_number = the number of the element (ex: 3 for the 3rd button on the panel)
- new_position - a vector containing the new pos_x and pos_y values for the panel element.

Example: pan_setpos (main_pcx, 1, 2, vector (100, 20, 0)); // move the second digit on main_pcx to pos_x = 100 and pos_y = 20