mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
753 B
C++
19 lines
753 B
C++
// if interface is open <BOOL>
|
|
#define I_OPEN (!isNil 'GVAR(ifOpen)')
|
|
// if interface is closed <BOOL>
|
|
#define I_CLOSED (isNil 'GVAR(ifOpen)')
|
|
|
|
// device ID <STRING>
|
|
#define I_GET_DEVICE (GVAR(ifOpen) select 0)
|
|
// interface config name <STRING>
|
|
#define I_GET_CONFIGNAME (GVAR(ifOpen) select 1)
|
|
// 0 = primary, 1 = secondary, 3 = tertiary <INTEGER>
|
|
#define I_GET_ID (GVAR(ifOpen) select 2)
|
|
// 0 = primary, 1 = secondary, 3 = tertiary <INTEGER>
|
|
#define I_GET_TYPE (GVAR(ifOpen) select 3)
|
|
// uiNamespace variable name of interface <STRING>
|
|
#define I_GET_NAME (GVAR(ifOpen) select 4)
|
|
// if interface is a dialog <BOOL>
|
|
#define I_GET_ISDIALOG (GVAR(ifOpen) select 5)
|
|
// display of interface <OBJECT>
|
|
#define I_GET_DISPLAY (uiNamespace getVariable I_GET_NAME) |