mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
debug #137
This commit is contained in:
24
CTLD.lua
24
CTLD.lua
@@ -5873,9 +5873,9 @@ function ctld.addTransportF10MenuOptions(_unitName)
|
|||||||
ctld.vehicleCommandsPath[_unitName] = mist.utils.deepCopy(_vehicleCommandsPath)
|
ctld.vehicleCommandsPath[_unitName] = mist.utils.deepCopy(_vehicleCommandsPath)
|
||||||
end
|
end
|
||||||
|
|
||||||
if ctld.enableRepackingVehicles then
|
-- if ctld.enableRepackingVehicles then
|
||||||
--ctld.updateRepackMenu(_unitName)
|
-- ctld.updateRepackMenu(_unitName)
|
||||||
end
|
-- end
|
||||||
if ctld.enabledFOBBuilding and ctld.staticBugWorkaround == false then
|
if ctld.enabledFOBBuilding and ctld.staticBugWorkaround == false then
|
||||||
missionCommands.addCommandForGroup(_groupId,
|
missionCommands.addCommandForGroup(_groupId,
|
||||||
ctld.i18n_translate("Load / Unload FOB Crate"), _vehicleCommandsPath,
|
ctld.i18n_translate("Load / Unload FOB Crate"), _vehicleCommandsPath,
|
||||||
@@ -5954,13 +5954,10 @@ function ctld.addTransportF10MenuOptions(_unitName)
|
|||||||
if ctld.vehicleCommandsPath[_unitName] == nil then
|
if ctld.vehicleCommandsPath[_unitName] == nil then
|
||||||
ctld.vehicleCommandsPath[_unitName] = mist.utils.deepCopy(_rootPath)
|
ctld.vehicleCommandsPath[_unitName] = mist.utils.deepCopy(_rootPath)
|
||||||
end
|
end
|
||||||
if ctld.enableRepackingVehicles then
|
-- if ctld.enableRepackingVehicles then
|
||||||
ctld.updateRepackMenu(_unitName)
|
-- ctld.updateRepackMenu(_unitName)
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -6049,7 +6046,8 @@ function ctld.buildPaginatedMenu(_menuEntries)
|
|||||||
menu.menuArgsTable.subMenuPath = mist.utils.deepCopy(menu.subMenuPath) -- copy the table to avoid overwriting the same table in the next loop
|
menu.menuArgsTable.subMenuPath = mist.utils.deepCopy(menu.subMenuPath) -- copy the table to avoid overwriting the same table in the next loop
|
||||||
menu.menuArgsTable.subMenuLineIndex = itemNbSubmenu
|
menu.menuArgsTable.subMenuLineIndex = itemNbSubmenu
|
||||||
missionCommands.addCommandForGroup(menu.groupId, menu.text, menu.subMenuPath, menu.menuFunction, mist.utils.deepCopy(menu.menuArgsTable))
|
missionCommands.addCommandForGroup(menu.groupId, menu.text, menu.subMenuPath, menu.menuFunction, mist.utils.deepCopy(menu.menuArgsTable))
|
||||||
ctld.logTrace("FG_ boucle[%s].menu.menuArgsTable = %s", i, ctld.p(menu.menuArgsTable))
|
--ctld.logTrace("FG_ boucle[%s].menu.menuArgsTable = %s", i, ctld.p(menu.menuArgsTable))
|
||||||
|
ctld.logTrace("FG_ boucle[%s].menu = %s", i, ctld.p(menu))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -6083,12 +6081,6 @@ function ctld.updateRepackMenu(_playerUnitName)
|
|||||||
for i, _vehicle in ipairs(repackableVehicles) do
|
for i, _vehicle in ipairs(repackableVehicles) do
|
||||||
if ctld.isUnitInMenuEntriesTable(menuEntries, _vehicle.desc) == false then
|
if ctld.isUnitInMenuEntriesTable(menuEntries, _vehicle.desc) == false then
|
||||||
_vehicle.playerUnitName = _playerUnitName
|
_vehicle.playerUnitName = _playerUnitName
|
||||||
-- table.insert(menuEntries, { text = ctld.i18n_translate("repack ") .. _vehicle.unit,
|
|
||||||
-- groupId = _groupId,
|
|
||||||
-- subMenuPath = RepackmenuPath,
|
|
||||||
-- menuFunction = ctld.repackVehicleRequest,
|
|
||||||
-- menuArgsTable = mist.utils.deepCopy(_vehicle)
|
|
||||||
-- })
|
|
||||||
menuEntries[i] = { text = ctld.i18n_translate("repack ") .. _vehicle.unit,
|
menuEntries[i] = { text = ctld.i18n_translate("repack ") .. _vehicle.unit,
|
||||||
groupId = _groupId,
|
groupId = _groupId,
|
||||||
subMenuPath = RepackmenuPath,
|
subMenuPath = RepackmenuPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user