View Single Post
Old 03-09-13, 06:01 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 526
Lua Code:
  1. local Title = f:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  2. Title:SetPoint("Center",0,166)
  3.  
  4. local function Update()
  5. Title:SetText("Title")
  6. end

Your function should be local. And you dont need to create a new fontstring on every update.
With settext you can modify it.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
Rilgamon is offline   Reply With Quote