View Single Post
05/31/21, 06:37 AM   #3
siruker
Join Date: May 2021
Posts: 4
Originally Posted by Baertram View Post
Controls are not destroyed even if you set them = nil. The garbage collector of lua will keep them until next reloadui afaik
You need to reuse controls via control pools, instead of creating new ones, if possible.
Else only create controls that you really need as you need them.
Okay I was afraid of that. If anybody knows a way for destroying them let me know. Maybe people are lazy as in normal usecases you would never create that many for it to become issue and the way to destroy them isn't known. when I was searching I came across this https://esoapi.uesp.net/100030/data/c/l/e/ClearCustomControl.html

but I have no idea how I would go around using it.

EDIT:

nvm took a look https://esoapi.uesp.net/100030/src/l...g.lua.html#151 it just hides it.

Last edited by siruker : 05/31/21 at 06:40 AM.
  Reply With Quote