Changes
no edit summary
end
end
for i = 1, slots_to_show do
for i = 1, slots_to_show do
local equipment, size, icon, color, equipment_type
local equipment, size, estimation, icon, color, equipment_type
if num_of_slots and i > num_of_slots then
if num_of_slots and i > num_of_slots then
equipment, size, icon, color, equipment_type = "- Locked -", false, "", 0, false
equipment, size, estimation, icon, color, equipment_type = "- Locked -", false, false, "", 0, false
else
else
equipment, size = self._ship:slot(i)
equipment, size, estimation = self._ship:slot(i)
if equipment then
if equipment then
icon = equipment:icon()
icon = equipment:icon()
icon = icon,
icon = icon,
equipment = equipment,
equipment = equipment,
slot_size = Formatting:format_slot_size(size),
slot_size = Formatting:format_slot_size(size, estimation),
color = "whitesmoke", --Formatting:format_equipment_back(color),
color = "whitesmoke", --Formatting:format_equipment_back(color),
extra_style = "", --Formatting:extra_style_background_image(false, color >= 4)
extra_style = "", --Formatting:extra_style_background_image(false, color >= 4)