View Single Post
12-08-22, 05:14 AM   #4
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Hi, thanks for your reply.

But I got an error even if I do a trivial copy paste of your relevant part of code:

Lua Code:
  1. local function framehider(self)
  2.     self:Hide();
  3. end
  4.  
  5. ... other code ...
  6.  
  7. TimeManagerClockButton:HookScript("OnShow", framehider);
  8. TimeManagerClockButton:Hide();

But I always finish to get the error:
Lua Code:
  1. attempt to index global 'TimeManagerClockButton' (a nil value)

even if it works nicely if I load your addon ... so I surely miss something important here

Thanks so much for patience and help.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote