Hi everyone. Long time windower fan, new to lua and coding in general. Most of my coding experience is in actionscript and some minor C++ classes.
I'm attempting to write my own addon that will display the Party's HP% on screen, because I can't stand having to look in the corner constantly as a healer. I'm having a little trouble getting it to work. I've been reading through the texts.lua alongside the developer wiki and looking at other code, such as enemybar and tparty. I was hoping someone might find a little time to help me understand a few portions.
p1hpp = texts.new(' HP: ${hpp|(100)}%', my_settings)
This should create a text object, with the settings I've defined (I copied the default from texts.lua and made changes to them as needed) which will display "HP: 100%" as a default, or replace 100, with whatever value is in p1hpp.hpp correct?
When I take the party info, and set party.p1.hpp to p1hpp.hpp, do I need to type cast it as a str?
Do I need to define .hpp inside settings?
Thanks in advance if you make the time to reply!