My first step with this would be to test it in game by doing the following, if possible:
/script local label = GetControl(tabObject, "Text"); label:SetColor({255, 255, 255, 1.0})
If you know the tabObject exists, then that's going to give you some very interesting results, and possibly a way forward with how to proceed. I mean, depending on whether it's still nil or not.
Edit: If it doesn't return nil, it might have something to do with the timing of when the function is run. I've seen weird stuff like that in every lua-enabled game since WoW, where sometimes the passed along self object won't be fully initialised until X happens.
|