mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-18 13:15:56 +00:00
fixes
This commit is contained in:
@@ -2031,6 +2031,7 @@ function ctld.isRepackableUnit(_unitId)
|
|||||||
end
|
end
|
||||||
-- ***************************************************************
|
-- ***************************************************************
|
||||||
function ctld.repackVehicleRequest(_params) -- update rrs table 'repackRequestsStack' with the request
|
function ctld.repackVehicleRequest(_params) -- update rrs table 'repackRequestsStack' with the request
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
local repackableUnit = _params[1]
|
local repackableUnit = _params[1]
|
||||||
local PlayerTransportUnitName = _params[2]
|
local PlayerTransportUnitName = _params[2]
|
||||||
@@ -2040,6 +2041,7 @@ local repackableUnit = _params[1]
|
|||||||
local refCountry = PlayerTransportUnit:getCountry()
|
local refCountry = PlayerTransportUnit:getCountry()
|
||||||
]]--
|
]]--
|
||||||
ctld.repackRequestsStack[#ctld.repackRequestsStack+1] = _params
|
ctld.repackRequestsStack[#ctld.repackRequestsStack+1] = _params
|
||||||
|
ctld.logTrace("FG_ ctld.repackVehicleRequest = %s", ctld.p(mist.utils.tableShow(ctld.repackRequestsStack)))
|
||||||
end
|
end
|
||||||
-- ***************************************************************
|
-- ***************************************************************
|
||||||
function ctld.repackVehicle(_params,t) -- scan rrs table 'repackRequestsStack' to process each request
|
function ctld.repackVehicle(_params,t) -- scan rrs table 'repackRequestsStack' to process each request
|
||||||
@@ -6135,7 +6137,7 @@ function ctld.buildPaginatedMenu(_menuEntries)
|
|||||||
local nextSubMenuPath = ""
|
local nextSubMenuPath = ""
|
||||||
local itemNbSubmenu = 0
|
local itemNbSubmenu = 0
|
||||||
for i, menu in ipairs(_menuEntries) do
|
for i, menu in ipairs(_menuEntries) do
|
||||||
ctld.logTrace("FG ctld.buildPaginatedMenu. [%s] mist.utils.tableShow(menu) = [%s]", i, mist.utils.tableShow(menu))
|
--ctld.logTrace("FG ctld.buildPaginatedMenu. [%s] mist.utils.tableShow(menu) = [%s]", i, mist.utils.tableShow(menu))
|
||||||
if nextSubMenuPath ~= "" and menu.subMenuPath ~= nextSubMenuPath then
|
if nextSubMenuPath ~= "" and menu.subMenuPath ~= nextSubMenuPath then
|
||||||
menu.subMenuPath = nextSubMenuPath
|
menu.subMenuPath = nextSubMenuPath
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user