ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   LUA Standard Libraries? (https://www.esoui.com/forums/showthread.php?t=120)

Lodur 02/26/14 02:56 PM

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

zork 02/27/14 07:02 AM

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. ;)

SinusPi 02/27/14 09:58 PM

zork, do you have any other UI source extracted from the esoui files..?

zork 02/28/14 01:32 AM

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.


All times are GMT -6. The time now is 03:53 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI