Instale o Steam
iniciar sessão
|
idioma
简体中文 (Chinês simplificado)
繁體中文 (Chinês tradicional)
日本語 (Japonês)
한국어 (Coreano)
ไทย (Tailandês)
Български (Búlgaro)
Čeština (Tcheco)
Dansk (Dinamarquês)
Deutsch (Alemão)
English (Inglês)
Español-España (Espanhol — Espanha)
Español-Latinoamérica (Espanhol — América Latina)
Ελληνικά (Grego)
Français (Francês)
Italiano (Italiano)
Bahasa Indonesia (Indonésio)
Magyar (Húngaro)
Nederlands (Holandês)
Norsk (Norueguês)
Polski (Polonês)
Português (Portugal)
Română (Romeno)
Русский (Russo)
Suomi (Finlandês)
Svenska (Sueco)
Türkçe (Turco)
Tiếng Việt (Vietnamita)
Українська (Ucraniano)
Relatar um problema com a tradução
if params.capacity then
result.personCapacity = {
type = ({"RESIDENTIAL", "COMMERCIAL", "INDUSTRIAL"})[(params.resComInd or 0) + 1],
capacity = params.capacity * 5
}
else
result.personCapacity = nil
end
You can do better than that with an array of capacities, like {0, 5, 10, 20, 50, 100}. More freedom and no more ugly factor 5.
You can also use BUTTON instead of SLIDER, it's nicer to use.
{
key = "resComInd",
name = _("Type"),
uiType = "BUTTON",
values = { _("Residential"), _("Commercial"), _("Industrial") }
},
{
key = "capacity",
name = _("Capacity"),
uiType = "SLIDER",
values = { _("0"), _("5"), _("10"), _("15"), _("20"), _("25"), _("30"), _("35"), _("40"), _("45"), _("50"), }
}
2) At the end of updateFn, add:
if params.capacity and params.capacity > 0 then
result.personCapacity = {
type = ({"RESIDENTIAL", "COMMERCIAL", "INDUSTRIAL"})[(params.resComInd or 0) + 1],
capacity = params.capacity * 5
}
else
result.personCapacity = {}
end