武装突袭 Wiki
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
Returns gear slot item name.

基本句法

句法:
gearSlotData control
参数:
control: Control -
返回值:
String

范例

范例1:
Open any ammobox and click by any gear slots
private "_dspl";
disableSerialization;

waitUntil {
    _dspl = findDisplay 106;
    ! isNull _dspl;
};

uiNamespace setVariable ["/VDMJ/RscDisplayGear/SlotDataEH", {
    _self = _this select 0;
    _weaponName = gearSlotData _self;
    _conf = configFile >> _confSection >> _weaponName;
    _name = getText(_conf >> "displayName");
    _desc = getText(_conf >> "Library" >> "libTextDesc");
    _image = getText(_conf >> "picture");
    hint parseText format[
        '<t size="1.3" align="center" shadow="true" shadowColor="#000000">%1</t><br /><img image="%2" size="6" align="center" /><br />%3<br />%4',
        _name, _image, _desc
    ];
}];


for "_i" from 107 to 145 do {
    _dspl displayCtrl _i ctrlAddEventHandler ["ButtonClick",
        format [
            '_confSection = "%1"; _this call (uiNamespace getVariable "/VDMJ/RscDisplayGear/SlotDataEH");',
            if( _i >= 109 && _i <= 129 ) then { "CfgMagazines" } else { "CfgWeapons" }
        ]
    ];
};

额外资讯

多人游戏:
-
也可以看看:
See also needed

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Bottom Section

Advertisement