From ESOUI Wiki
This tutorial covers the very basics from folder/file structure, events, layers & levels, up to creating a working stamina bar. What follows is by no means the best way to do everything. It is meant for beginners who have no idea how to get started. I have done my best to check everything for errors, but theres no guaranteee. I'm not an expert but there are limited resources for beginners so I thought I would share what I have learned so far. This turned out a LOT longer than I expected it to when I started, but there is a lot of information here. I hope you enjoy, have fun
In this tutorial we will be building on the previous tutorial Circonians Stamina Bar Tutorial. If you have not worked through it first I suggest you start there. We will be adding the ability to remember the location that a user has moved the stamina bar to on the screen. This way when our addon loads up it will be in the same place the user left it.
In this tutorial we will be building on the previous tutorial Circonians Saved Variables Tutorial. We will be adding a menu in the games settings window to change the width & height of our stamina bar, an option to show or hide it, and a color picker to allow us to change the color of the status bar. This tutorial uses LibAddonMenu-1.0 to create our settings menu so this tutorial also serves as an example on how to incorporate a library into your addon.