Quantcast
WoWInterface - View Single Post - Colorpicker?
Thread: Colorpicker?
View Single Post
07-13-20, 02:39 PM   #8
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 227
All right. I mean, what I basically want to do is to use the color picker in several different places, changing a different color each time. So I have to let ColorPicker() know what variable it should change. Passing arguments to ColorPicker() like ColorPicker("variableName") ist straight forward, but my question was how I could pass "variableName" on to the callback functions.

Now I understand that I have to do this with another (what I called "public" as it can be accessed from anywhere in my addon) variable (be it ColorPicker.tmpVariableName or local tmpVariableName).

Thanks!
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote