Hello ESOUI community,
So for the past 48 hrs (with 10hrs sleep) I've been diligently teaching myself lua and xml in order to create an addon.
My learning materials have consisted of
this beginners guide,
this excellent site (and its crash course + intro)
and this particularly well crafted tutorial by Circonian.
So I've followed Circonian's Stamina Bar tutorial meticulously and I managed to get it working up until the "Final Adjustments" section; after altering the code to suit what's mentioned in the
Final Adjustments section, my addon fails to start and I get these following errors (source code links posted below images):
Here are my source codes:
-lua file
-xml file
-txt file
The images state that things are going wrong during these lines in particular:
The second event trigger
EVENT_MANAGER:RegisterForEvent(CirconianStaminaBar.name, EVENT_POWER_UPDATE, CirconianStaminaBar.UpdateStamina)
|
CirconianStaminaBarWindowLabel:SetText(ourName)
|
CirconianStaminaBar:Initialize()
|
If anyone can advise me on where I'm going wrong and how I can make this addon functional, I would be eternally grateful.
My thanks in advance!