Fandom

武装突袭 Wiki

DialogControls-ProgressBar

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

CT_PROGRESS Type=8编辑

File:Progress bar.jpg

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%. 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.

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 { type = 8; style = 0; colorFrame[] = {0,0,0,1}; colorBar[] = {1,1,1,1}; texture = "#(argb,8,8,3)color(1,1,1,1)"; w = 1; h = 0.03; }; class myProgressBar { idd = -1; onLoad = "((_this select 0) displayCtrl -1) progressSetPosition 0.5"; class Controls { class Progress: RscProgress { idc = -1; x = 0; y = 0.3; }; }; };

更多维基

随机维基