View Single Post
02/14/21, 12:24 AM   #4
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 642
Granted I'm not going in game and doing this to test but unless LAM can't use the new table once you initialize it then I don't see why LAM wouldn't use the modified table.

Code:
function ManipulateTable()
  <<you have to put your own code here>>
  return TableOfValues
end

local panelData = {
  <<snip>>
  registerForRefresh  = true,
}

local optionsData = {
  [1]  = {
    choices = yourManipulatedTable()
    choicesValues = yourManipulatedTable()
    setFunc = function(value)
      YourColor = value
      ManipulateTable()
    end,
  },
  [2]  = {
    choices = yourManipulatedTable()
    choicesValues = yourManipulatedTable()
    setFunc = function(value)
      YourOtherColor = value
      ManipulateTable()
    end,
  },
}

Last edited by Sharlikran : 02/14/21 at 10:20 AM.
  Reply With Quote