Thread Tools Display Modes
02/26/14, 02:56 PM   #1
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
LUA Standard Libraries?

Do plugin's have access to some of the standard LUA library functions? Perhaps an API page for this...

Specifically is loadstring() available?

Thanks
  Reply With Quote
02/27/14, 07:02 AM   #2
zork
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 29
This is what I can tell you for now. There is a file called \esoui\libraries\globals\globalapi.lua.

The variable names of the cached Lua function references are:
Lua Code:
  1. zo_strlower         = LocaleAwareToLower
  2. zo_strupper         = LocaleAwareToUpper
  3.  
  4. string.lowerbybyte  = string.lower
  5. string.upperbybyte  = string.upper
  6.  
  7. string.lower        = zo_strlower
  8. string.upper        = zo_strupper
  9.  
  10. zo_strsub           = string.sub
  11. zo_strgsub          = string.gsub
  12. zo_strlen           = string.len
  13. zo_strmatch         = string.match
  14. zo_strfind          = string.find
  15. zo_plainstrfind     = PlainStringFind
  16. zo_strsplit         = SplitString
  17. zo_loadstring       = LoadString
  18.  
  19. zo_floor            = math.floor
  20. zo_ceil             = math.ceil
  21. zo_mod              = math.fmod
  22. zo_decimalsplit     = math.modf
  23. zo_abs              = math.abs
  24. zo_max              = math.max
  25. zo_min              = math.min
  26. zo_sqrt             = math.sqrt
  27. zo_randomseed       = math.randomseed
  28. zo_random           = math.random

If you look closely you will find your function.

Last edited by zork : 02/27/14 at 09:07 AM.
  Reply With Quote
02/27/14, 09:58 PM   #3
SinusPi
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 18
zork, do you have any other UI source extracted from the esoui files..?
  Reply With Quote
02/28/14, 01:32 AM   #4
zork
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 29
Yes but it is not in my hand to post stuff like this. I asked Cairenn if they have the opportunity to post the full content of the ESOUI folder. That would be a huge help for developing.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » LUA Standard Libraries?


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