Welcome !
I created a tutorial for creating a working stamina bar replacement. It starts with explaining the different files & file structure, and well a lot of stuff. It explains every step & every line of code walking through the creation bit by bit. Its very detailed, and thus pretty long. Its broken into 3 parts,
- creating the working stamina bar,
- working with saved variables (a continuation of the stamina bar project applying savable settings)
- creating settings menus (a continuation of the stamina bar, creating settings menus)
The Creating Settings Menus explains about libraries, library structure (how to set them up), how to save & load settings using the saved variables, ...but in the last section the code for "Creating the Settings Menu" uses LibAddonMenu 1.0, which is out of date. I should fix that.
Its posted on the esoui wiki main page or you can find it here:
Circonians Stamina Bar Tutorial