View Single Post
04/27/15, 06:40 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
If you got in XML :

Lua Code:
  1. <Label name="myControl" />

In LUA, it will be :

Lua Code:
  1. mycontrol:SetText(GetUnitName("player"))

There is other ways to do this, but this one is almost quite easy.
  Reply With Quote