-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathXEH_preInit.sqf
50 lines (43 loc) · 1.64 KB
/
XEH_preInit.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "CBA_Setting.hpp"
#include "\MG8\AVFEVFX\cTab\has_cTab.hpp"
//-All Infos from types of task list
if (hasInterface) exitWith {
//-Set task default variables
{
uiNamespace setVariable _x
} count [
["BCE_CAS_9Line_Var", [["NA",0],["NA","",[],[0,0]],["NA",180],["NA",200],["NA",15],["NA","--"],["NA","",[],[0,0],[]],["NA","1111"],["NA","",[],[0,0],""],["NA",0,[],nil,nil],["NA",-1,[]]]],
["BCE_CAS_5Line_Var", [["NA",0],["NA","",[],[0,0],""],["NA","111222"],["NA","--",""],["NA",-1,[]]]]
];
//-Set All IDCs
private _set_TaskBuilder_Vars = {
params ["_config",["_offset",0]];
private _classes = ["CAS_TaskList_9","CAS_TaskList_5"] apply {
"true" configClasses (_config >> "controls" >> _x >> "items");
};
[
(_classes apply {
_x apply {
getArray (_x >> "Expression_idc") apply {_x + _offset}
}
}),
(_classes apply {
_x apply {
[getText (_x >> "textRight"), getText (_x >> "Task_writeDown")]
}
})
]
};
//-Set all Task IDCs
AVT_Task_TaskItems = (configFile >> "RscDisplayAVTerminal") call _set_TaskBuilder_Vars;
#ifdef cTAB_Installed
cTab_Task_TaskItems = [configFile >> "cTab_Tablet_dlg" >> "controls" >> "Task_Builder",17000] call _set_TaskBuilder_Vars;
//- Set Default Devices
ctab_core_personneldevices = ["ItemcTab","ItemcTabMisc","ItemAndroid","ItemAndroidMisc","ItemMicroDAGR","ItemMicroDAGRMisc","ACE_microDAGR"];
ctab_core_leaderDevices = ["ItemcTab","ItemcTabMisc","ItemAndroid","ItemAndroidMisc"];
ctab_core_androidDevices = ["ItemAndroid","ItemAndroidMisc"];
ctab_core_tabDevices = ["ItemcTab","ItemcTabMisc"];
ctab_core_useArmaMarker = false;
ctab_core_bft_mode = 1;
#endif
};