DialogControls-ProgressBar: Difference between revisions
Jump to navigation
Jump to search
AgentRev01 (talk | contribs) m (Added info about progressSetPosition) |
|||
Line 3: | Line 3: | ||
'''TokenNames common to most controls, such as x,y,w,h,text,idc... are not listed here. ''' | '''TokenNames common to most controls, such as x,y,w,h,text,idc... are not listed here. ''' | ||
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's value). The progress bar will always stay at 0%. | 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's value). The progress bar will always stay at 0%. However, for ArmA 2 and up, the [[progressSetPosition]] command can be used to change the value. | ||
{| border="1" align="left" cellpadding="3" cellspacing="0" | | {| border="1" align="left" cellpadding="3" cellspacing="0" | | ||
! colspan="3" bgcolor="#bbbbff" | Properties | ! colspan="3" bgcolor="#bbbbff" | Properties |
Revision as of 21:07, 10 September 2013
CT_PROGRESS Type=8
TokenNames common to most controls, such as x,y,w,h,text,idc... are not listed here.
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's value). The progress bar will always stay at 0%. However, for ArmA 2 and up, the progressSetPosition command can be used to change the value.
Properties | ||
---|---|---|
Name | Type | Remark |
colorFrame | color array | |
colorBar | color array | |
texture | texture | paa file. can take the form "#(argb,8,8,3)color(0,1,0,1)"; |
Example
class RscProgress
{
access = 0;
type = 8;
style = 0;
colorFrame[] = {1,1,1,1};
colorBar[] = {1,1,1,1};
texture = "#(argb,8,8,3)color(1,1,1,1)";
w = 1.2;
h = 0.03;
shadow = 0;
};
};