Модуль:tableofchemicals
| Строка 44: | Строка 44: | ||
templateArgs.actions = getActions(reactPrototype) | templateArgs.actions = getActions(reactPrototype) | ||
-- Берем id ТОЛЬКО из react | |||
templateArgs.id = reactPrototype.id or "" | |||
-- Берем name, color, textColor из chem (из первого реагента или продукта) | |||
local chemData = nil | local chemData = nil | ||
local firstReactantId, firstReactantValue = next(reactPrototype.reactants) | local firstReactantId, firstReactantValue = next(reactPrototype.reactants) | ||
| Строка 64: | Строка 68: | ||
templateArgs.textColor = "#FFFFFF" | templateArgs.textColor = "#FFFFFF" | ||
end | end | ||
local template = "Строка_реакции" | local template = "Строка_реакции" | ||