mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
Fixed spacing in addTransportF10MenuOptions
This commit is contained in:
22
CTLD.lua
22
CTLD.lua
@@ -5237,22 +5237,22 @@ function ctld.addTransportF10MenuOptions(_unitName)
|
|||||||
local itemNb = 0
|
local itemNb = 0
|
||||||
local menuPath = _troopCommandsPath
|
local menuPath = _troopCommandsPath
|
||||||
for _,_loadGroup in pairs(ctld.loadableGroups) do
|
for _,_loadGroup in pairs(ctld.loadableGroups) do
|
||||||
if not _loadGroup.side or _loadGroup.side == _unit:getCoalition() then
|
if not _loadGroup.side or _loadGroup.side == _unit:getCoalition() then
|
||||||
|
|
||||||
-- check size & unit
|
-- check size & unit
|
||||||
if _transportLimit >= _loadGroup.total then
|
if _transportLimit >= _loadGroup.total then
|
||||||
-- add the menu item
|
-- add the menu item
|
||||||
itemNb = itemNb + 1
|
itemNb = itemNb + 1
|
||||||
if itemNb > 8 then -- page limit reached (first item is "unload")
|
if itemNb > 8 then -- page limit reached (first item is "unload")
|
||||||
menuPath = missionCommands.addSubMenuForGroup(_groupId, "Next page", menuPath)
|
menuPath = missionCommands.addSubMenuForGroup(_groupId, "Next page", menuPath)
|
||||||
itemNb = 1
|
itemNb = 1
|
||||||
|
end
|
||||||
|
missionCommands.addCommandForGroup(_groupId, "Load ".._loadGroup.name, menuPath, ctld.loadTroopsFromZone, { _unitName, true,_loadGroup,false })
|
||||||
end
|
end
|
||||||
missionCommands.addCommandForGroup(_groupId, "Load ".._loadGroup.name, menuPath, ctld.loadTroopsFromZone, { _unitName, true,_loadGroup,false })
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
if ctld.unitCanCarryVehicles(_unit) then
|
if ctld.unitCanCarryVehicles(_unit) then
|
||||||
|
|
||||||
local _vehicleCommandsPath = missionCommands.addSubMenuForGroup(_groupId, "Vehicle / FOB Transport", _rootPath)
|
local _vehicleCommandsPath = missionCommands.addSubMenuForGroup(_groupId, "Vehicle / FOB Transport", _rootPath)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user