Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/10/14, 05:42 AM   #2
Sharp
 
Sharp's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 32
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:
  1. 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.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Addon Tutorial, got it to work, changed something, now I can't make it work again.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off