Thanks for the reply!
Originally Posted by Fizzlemizz
1. The vararg needs to go at th end.
|
Ah, that makes sense! :-)
Originally Posted by Fizzlemizz
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
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?