Thread Tools Display Modes
01-20-06, 04:56 AM   #1
Doubtfire
A Defias Bandit
Join Date: Jan 2006
Posts: 2
Beginners Question

Hello,

i started playing around with addon-coding, my first "addon" should show the number of factions my char knows . I used a XML-file from a simple clock, and the following (only)function:

function factioncalculate()

local num = GetNumFactions();
local output = string.format("Factions: %d", num);
factionText:SetText(output); <-------This appears in the frame

end

Ok, i used "onShow" in the XML-file, put the function in, and get my factions displayed in the frame when the game is loaded.

BUT: In my charscreen, when i open the reputation-panel, everything is empty

Where is my fault?

Any help is welcome.

Thx in advance,

Doubtfire
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Beginners Question

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