mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-16 07:56:35 +00:00
Update CTLD.lua
This commit is contained in:
@@ -5732,8 +5732,10 @@ function CTLD:_RefreshLoadCratesMenu(Group,Unit)
|
|||||||
local cargoByName={}
|
local cargoByName={}
|
||||||
for _,crate in pairs(nearby) do
|
for _,crate in pairs(nearby) do
|
||||||
local name=crate:GetName()
|
local name=crate:GetName()
|
||||||
cargoByName[name]=cargoByName[name] or{}
|
if name then
|
||||||
table.insert(cargoByName[name],crate)
|
cargoByName[name]=cargoByName[name] or{}
|
||||||
|
table.insert(cargoByName[name],crate)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local lineIndex=1
|
local lineIndex=1
|
||||||
@@ -5746,7 +5748,7 @@ function CTLD:_RefreshLoadCratesMenu(Group,Unit)
|
|||||||
local label
|
local label
|
||||||
local loadkey = self.gettext:GetEntry("MENU_LOAD_SINGLE",self.locale)
|
local loadkey = self.gettext:GetEntry("MENU_LOAD_SINGLE",self.locale)
|
||||||
if left>=needed then
|
if left>=needed then
|
||||||
label=string.format("%d. %s %s",lineIndex,loadkey, cName)
|
label=string.format("%d. %s %s",cName, lineIndex,loadkey)
|
||||||
i=i+needed
|
i=i+needed
|
||||||
else
|
else
|
||||||
label=string.format("%d. %s %s (%d/%d)",lineIndex,loadkey, cName,left,needed)
|
label=string.format("%d. %s %s (%d/%d)",lineIndex,loadkey, cName,left,needed)
|
||||||
|
|||||||
Reference in New Issue
Block a user