I am puzzled about a problem I have.
The code using LAM-1.0 is this:
Lua Code:
for k,craftKey in pairs(blackSmithingRules) do
lam:AddDropdown(panelID, craftKey.."#"..numProfile, getTranslated(craftKey), "", getTranslateTable(sendingType),
function() return getTranslated(BankManager.Saved[craftKey][numProfile]) end,
function(val) changeTranslateTable(val,craftKey,numProfile) end)
end
I was hoping to convert it to 2.0 like this:
Lua Code:
for k, craftKey in pairs(blackSmithingRules) do
{--[17.x]
type = "dropdown",
name = getTranslated(craftKey),
choices = getTranslateTable(sendingType),
getFunc = function() return getTranslated(BankManager.Saved[craftKey][numProfile]) end,
setFunc = function(value) changeTranslateTable(value,craftKey,numProfile) end,
},
end
Sadly I get an error saying: unexpected symbol near 'for'.
Any idea how I can fix this?