Basically, I'm making an inventory management addon, and one of the things it will do is have a blacklist and autosell list. They will be managed via multiselect dropdown, where selecting the item means it will be counted in the filter, and deselecting it means it will be ignored (Intended to be a sort of temporarily removing it from the list, but one that will get it's state saved to the DB)
I'm finding it a bit tricky to do this - the logic in my head makes sense, but the API doesn't seem to support this very easily (that I can tell.) Example of the code: http://pastebin.com/34TJe8c3
This has really unexpected results, as it looks like it's printing something out of a hashtable or a memory address for the key parameter, and checked prints "OnValueChanged".
So my first question: How might I go about getting an OnChecked sort of event, with the key that had the state-change (checked/unchecked), so I can handle that?
Second question: Given that the table doesn't seem to contain a checked-state anywhere (It's just a KeyValuePair table where the value is what is printed), I don't see how the state could be saved.
Thanks for any help/advice, and apologies for all the questions today :)