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) |
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
Since Arma 2 the progressSetPosition command can be used to change the value.
Since Arma 3 v1.40 the fill color can be changed via the ctrlSetTextColor command. Prior to Arma 2 there were no means to manipulate a progress bar.
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};
colorFrame
- Type
- Array
- Description
- Color of the surrounding frame.
colorFrame[] = {0,0,0,0};
T
texture
- Type
- String
- Description
- Texture of the bar. See Procedural Textures. If texture and colorBar are provided, both are mixed together, creating a different color.
texture = "#(argb,8,8,3)color(1,1,1,1)";
Default Classes
RscExample
class RscProgress
{
onLoad = "_this spawn { for '_i' from 0 to 1 step 0.01 do { (_this # 0) progressSetPosition _i; sleep 0.01 } }";
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)";
};