I appreciate all the help.
Im looking to build a list of all character names on account ONLY for one LAM dropdown panel, otherwise am perfectly happy with a NewAccountWide settings in my variables. The purpose is to be able to select ONE of them in the list to NOT auto deposit. Like a main character sort of thing. The rest of my LAM dropdown works perfectly I just need to get a list of names into it for the "CHOICES".
**EDIT
I realize ID's are the preferred method due to them being compatible with name changes etc but NAMES is fine for my needs. Its not a critical feature and it can be changed/updated from any character if a name change does happen.
That function looks pretty clear but how do I get that data into the LAM control HERE:
Code:
{
type = "dropdown",
name = "Disable Gold Deposit",
tooltip = "One character that does not auto deposit per account",
choices = {
"DISABLED",
function() return MyAddon.GetCharacterNamesOnAccount(false) end,--<< HERE
},
getFunc = function() return tostring(MyAddon.savedVariables.noDeposit) end,
setFunc = function(var) MyAddon.savedVariables.noDeposit = (var) end,
disabled = function() return not MyAddon.savedVariables.goldDeposit end,
},