View Feature Request | |||||||||||||||
|
Notes | Sort Options |
By: zgrssd - 07/13/14 01:56 PM |
It might be best to give an example: The game only provides naitve Color Pickers/check boxes for a handfull of the 61 Chat Categories. While about 20 are in use and expose, and another 20 are (currently) unused and another 20 are in use but omited on the default Options panel. Those could be set via code. If I wanted to provide Color Pickers for all 61 Chat Categories the way I see it now I would need: 61 versions of the exaclty same get/set function. Except for one integer constant being different (the chat category this setter writes to/getter retrieves from). With LAM 1 I can just store each UI Element ID as they get generated by my for-loop. But since the creation of the elements is held off as long as possible in LAM 2, this is not possible. If I had the Tag I could just set that integer during creation/definition of the data table. I could use the same get/set functions for all 61. And just need to extract that one constant in the setter before doing the work (if it is not already handed in as argument into the callback). |
By: Seerah - 07/13/14 04:27 PM | |
You can store whatever you want in the tables for the controlData. It's just a table, and it gets stored on that object. For example, in slider.lua: Lua Code:
|
By: Seerah - 07/13/14 04:28 PM |
/edit: everything you want (I assume) is already here. |