Thread: Colorpicker?
View Single Post
07-13-20, 04:47 AM   #6
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
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
Code:
local function changedCallback(self)
   if self.WhatEveryYouWantToCheck == xxx then
   end
end
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