Модуль:Prototypes/Хранилище/Предмет: различия между версиями

мНет описания правки
мНет описания правки
Строка 165: Строка 165:
     local wrapperStart, wrapperEnd = "", ""
     local wrapperStart, wrapperEnd = "", ""


    -- Проверка для контейнера EntityTableContainerFill
     if groupSelector.weight and groupSelector.weight ~= "default" then
     if groupSelector.weight and groupSelector.weight ~= "default" then
         wrapperStart = string.format('<div class="together" id="%s">', groupSelector.weight)
         wrapperStart = string.format('<div class="together" id="%s">', groupSelector.weight)
        wrapperEnd = "</div>"
    elseif groupSelector["!type"] == "GroupSelector" and not groupSelector.weight then
        wrapperStart = '<div class="EntityFill">'
         wrapperEnd = "</div>"
         wrapperEnd = "</div>"
     end
     end
Строка 200: Строка 204:
         end
         end


         result[#result + 1] = string.format('<div class="%s">', table.concat(classes, ' '))
         if #classes > 0 then
            result[#result + 1] = string.format('<div class="%s">', table.concat(classes, ' '))
        end
     end
     end


     result[#result + 1] = getTableOutput(nestedSelector.tableId)
     result[#result + 1] = getTableOutput(nestedSelector.tableId)


     if wrapped then
     if wrapped and #result > 0 then
         result[#result + 1] = "</div>"
         result[#result + 1] = "</div>"
     end
     end