×
Create a new article
Write your page title here:
We currently have 277 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    Module:GetPartInfo: Difference between revisions

    Content deleted Content added
    configurables -> configuration
    bigdesc wip
    Line 161: Line 161:
    elseif entryType == "selectable" then
    elseif entryType == "selectable" then
    formatted = formatted .. "\n * "..entryName.." <sup>(selectable)</sup>"
    formatted = formatted .. "\n * "..entryName.." <sup>(selectable)</sup>"
    end
    end

    return string.sub(formatted, 2)
    elseif field == "ConfigurationLarge" then
    local configData = Parts[itemName]["ConfigData"]

    local formatted = ""

    for _, entry in pairs(configData) do
    local entryName = entry[1]
    local entryType = entry[2]
    local default = entry[3]
    local range = entry[4]
    local description = entry[5]



    if entryType == "number" then
    formatted = formatted .. "\n * " ..entryName.." - A number from "..range[1].." to "..range[2]..". Defaults at " .. default.."."
    elseif entryType == "boolean" then
    formatted = formatted .. "\n * "..entryName.." - A boolean; can be set to either true or false."
    elseif entryType == "string" then
    formatted = formatted .. "\n * "..entryName.." - A string; any text can be set."
    elseif entryType == "selectable" then
    formatted = formatted .. "\n * "..entryName.." - A selectable."
    end
    end
    end
    end
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • OKEMOWENDI • 1 hour ago
  • Jo857294 • 9 days ago
  • 116.111.185.163 • 22 days ago
  • 116.111.185.163 • 22 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.