forked from Kinkkujuustovoileipa/uh-60l
-
Notifications
You must be signed in to change notification settings - Fork 1
/
comm.lua
52 lines (42 loc) · 1.2 KB
/
comm.lua
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
51
52
local openFormation = true
function specialEvent(params)
return staticParamsEvent(Message.wMsgLeaderSpecialCommand, params)
end
local menus = data.menus
data.rootItem =
{
name = _('Main'),
getSubmenu = function(self)
local tbl =
{
name = _('Main'),
items = {}
}
if data.pUnit == nil or data.pUnit:isExist() == false then
return tbl
end
if self.builders ~= nil then
for index, builder in pairs(self.builders) do
builder(self, tbl)
end
end
if #data.menuOther.submenu.items > 0 then
tbl.items[10] =
{
name = _('Other'),
submenu = data.menuOther.submenu
}
end
return tbl
end,
builders = {}
}
local parameters =
{
refueling = true
}
local menus = data.menus
utils.verifyChunk(utils.loadfileIn('Scripts/UI/RadioCommandDialogPanel/Config/Common/ATC.lua', getfenv()))(5, {[Airbase.Category.AIRDROME] = true})
utils.verifyChunk(utils.loadfileIn('Scripts/UI/RadioCommandDialogPanel/Config/Common/Tanker.lua', getfenv()))(6)
utils.verifyChunk(utils.loadfileIn('Scripts/UI/RadioCommandDialogPanel/Config/Common/Cargo.lua', getfenv()))(7)
utils.verifyChunk(utils.loadfileIn('Scripts/UI/RadioCommandDialogPanel/Config/Common/Ground Crew.lua', getfenv()))(8)