mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
791 B
Plaintext
27 lines
791 B
Plaintext
/*
|
|
* Author: PabstMirror
|
|
* Finds next valid index for the device array.
|
|
*
|
|
* Arguments:
|
|
* 0: Localized Device Display Name <STRING>
|
|
* 1: Image <STRING>
|
|
* 2: Condtion Code (do they have the device) <CODE>
|
|
* 3: Toggle Code (on home press) <CODE>
|
|
* 4: Close Code (on ctrl-home press) <CODE>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [(localize "STR_ACE_microdagr_itemName"), QPATHTOF(images\microDAGR_item.paa), _conditionCode, _toggleCode, _closeCode] call ace_common_fnc_deviceKeyRegisterNew
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_displayName", "_iconImage", "_conditionCode", "_toggleCode", "_closeCode"];
|
|
|
|
GVAR(deviceKeyHandlingArray) pushBack [_displayName, _iconImage, _conditionCode, _toggleCode, _closeCode];
|
|
|
|
[] call FUNC(deviceKeyFindValidIndex);
|