CT_PROGRESS
Control Types / MACRO (TYPE VALUE) | |
---|---|
Text/Image/Video |
CT_STATIC (0) | CT_EDIT (2) | CT_HTML (9) | CT_STRUCTURED_TEXT (13) |
Buttons |
CT_BUTTON (1) | CT_ACTIVETEXT (11) | CT_SHORTCUTBUTTON (16) | CT_CHECKBOX (77) | CT_XBUTTON (41) |
Lists |
CT_COMBO (4) | CT_TOOLBOX (6) | CT_CHECKBOXES (7) | CT_TREE (12) | CT_CONTROLS_TABLE (19) | CT_XCOMBO (44) | CT_LISTBOX (5) | CT_LISTNBOX (102) | CT_LISTNBOX_CHECKABLE (104) | CT_XLISTBOX (45) |
3D Objects |
CT_OBJECT (80) | CT_OBJECT_ZOOM (81) | CT_OBJECT_CONTAINER (82) | CT_OBJECT_CONT_ANIM (83) |
Maps |
CT_MAP (100) | CT_MAP_MAIN (101) |
Meta |
CT_SLIDER (3) | CT_XSLIDER (43) | CT_PROGRESS (8) | CT_CONTROLS_GROUP (15) | CT_WEBBROWSER (106) | CT_EXTENSION (107) |
Menu |
CT_CONTEXT_MENU (14) | CT_MENU (46) | CT_MENU_STRIP (47) |
Unknown |
CT_STATIC_SKEW (10) | CT_HITZONES (17) | CT_VEHICLETOGGLES (18) | CT_XKEYDESC (40) | CT_ANIMATED_TEXTURE (45) | CT_LINEBREAK (98) | CT_USER (99) | CT_ITEMSLOT (103) | CT_VEHICLE_DIRECTION (105) |
Introduction
Progress bars are handled by the engine internally. While it is technically possible to attach a progress bar to a dialog, there are no means to influence it (e.g. setting it is value). The progress bar will always stay at 0%.
As of ArmA 2 and up, the progressSetPosition command can be used to change the value.
As of Arma 3 (1.40) the bars fill color can be changed via the ctrlSetTextColor command.
Related commands & functions
Related User Interface Eventhandlers
Alphabetical Order
#define CT_PROGRESS 8
C
colorBar
- Type
- Array
- Description
- Color of the filled progress bar.
colorBar[] = {1,1,1,1};
colorExtBar
- Type
- Array
- Description
- n/a
colorExtBar[] = {1,1,1,1};
colorFrame
- Type
- Array
- Description
- Color of the surrounding frame.
colorFrame[] = {0,0,0,0};
T
texture
- Type
- String
- Description
- Texture of the bar.
texture = "#(argb,8,8,3)color(1,1,1,1)";
textureExt
- Type
- String
- Description
- n/a
textureExt = "";
Default Classes
RscExample
class RscProgress
{
deletable = 0;
fade = 0;
access = 0;
type = CT_PROGRESS;
style = ST_HORIZONTAL;
colorFrame[] = {0,0,0,0};
colorBar[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
"(profilenamespace getvariable ['GUI_BCG_RGB_A',0.8])"
};
x = 0.344;
y = 0.619;
w = 0.313726;
h = 0.0261438;
shadow = 2;
texture = "#(argb,8,8,3)color(1,1,1,1)";
};