WoWInterface - View Single Post - Colorpicker?
Thread: Colorpicker?
View Single Post
07-13-20, 04:47 AM   #6
A Cobalt Mageweaver
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 227
Thanks for the reply!
Originally Posted by Fizzlemizz View Post
1. The vararg needs to go at th end.
Ah, that makes sense! :-)

Originally Posted by Fizzlemizz View Post
2. I'm not sure what you mean by "public"
What I tried to say was, that I would prefer passing something from ShowColorPicker() to changedCallback() in a variable that is only accessible by these two functions.
Originally Posted by Fizzlemizz View Post
local function changedCallback(self)
   if self.WhatEveryYouWantToCheck == xxx then
What exactly is this "self" refering to here? The ColorPicker? In the example it seems like the only argument of the callback functions is "restore" if any. Or does this only apply to the cancelFunc?
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote