Hi, I've been trying for a few days to make a selection in LAM (type = "dropdown",) work...
In game I get to see the dropdown. But even if I put data there is no effect (I was trying it with a message in the game chat "d(" but it never worked)
My idea is to show information about some sets.
Since I'm asking around here, and I know many of you are professionals in LUA, I'm going to ask what I would really like to achieve..
I have a "dropdown" in LAM2 (visible, but not functional), I would like for example when selecting Dark Convergence to activate some variables corresponding to that SET.
LAM2 code:
Code:
[4] = {
type = "dropdown",
name = "SETS",
choices = {"Dark Convergence", "Perfected Void Bash"},
getFunc = function() return addonname.Sets end,
setFunc = function(value) addonname.Sets = value end,
},
My main LUA file:
Code:
function addonname.SetData()
addonname.Sets = {
--["Dark Convergence"] = {
[1] = {
PROC_NAME = "Dark Convergence",
PROC_COOLDOWN = 25000,
PROC_ID = 159388,
},
--["Perfected Void Bash"] = {
[2] = {
PROC_NAME = "Perfected Void Bash",
PROC_COOLDOWN = 13000,
PROC_ID = 147744,
},
}
end
I have to say that I see results as I would like BUT without making a selection, that is, I have some 100% functional variables, but the one that I want to make LAM change from one set to another, is not saved. (in short, it doesn't work) So I always see the initial variables of my addon.
That's all, I don't speak English (this post has been translated), regards!