Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/28/14, 02:15 PM   #12
SinusPi
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 18
Even better, if you just use a LOCAL table for the addon object,

Code:
  local MyAddon = {}

  function MyAddon:DoCrap()
  function MyAddon:DoMoreCrap()
... then you can choose to "show" it...

Code:
  _G.MyAddon = MyAddon
... or not.

Of course that only works if your addon is contained in one file.

But if you're REALLY paranoid about not leaving it visible (and don't care about it being debuggable ingame), then you can simply hide it again at the end of the last file to load:

Code:
  _G.MyAddon = nil
... and it's all clean again!
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » globals, locals, and namespaces, oh my


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off