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

мНет описания правки
мНет описания правки
Строка 168: Строка 168:
     end
     end


     -- Обёртка для GroupSelector
     local weight = groupSelector.weight or "default"
     result = result .. '<div class="group-selector">'
 
     result = result .. string.format('<div class="together" id="%s">', weight)


     for _, child in ipairs(groupSelector.children) do
     for _, child in ipairs(groupSelector.children) do
Строка 175: Строка 176:
             result = result .. handleGroupSelector(child)
             result = result .. handleGroupSelector(child)
         elseif child["!type"] == "AllSelector" then
         elseif child["!type"] == "AllSelector" then
            result = result .. string.format('<div class="AllSelector">')
             result = result .. handleAllSelector(child)
             result = result .. handleAllSelector(child)
            result = result .. '</div>'
         elseif child.id then
         elseif child.id then
             result = result .. formatContent(child)
             result = result .. formatContent(child)
Строка 182: Строка 185:
         end
         end
     end
     end
   
    result = result .. '</div>'


    result = result .. '</div>'
     return result
     return result
end
end