Code:
<TopLevelControl name="MyFirstAddon" mouseEnabled="true">
If you change the name here, you'll need to change it in the LUA because of this code here also in the XML
Code:
<Label name="$(parent)Counter" font="ZoFontWindowTitle" color="CFDCBD" wrapMode="ELLIPSIS" verticalAlignment="CENTER" text="Counter: ">
$(parent)Counder means it will evaluate to MyFirstAddonCounter
And you have to change the LUA here:
Lua Code:
MyFirstAddonCounter:SetText(string.format("Counter: %d", counter))
If you change it from MyFirstAddon, you'll need to replace all instances where it was. Once you change those, it should work.